Home
last modified time | relevance | path

Searched refs:table_ (Results 1 – 3 of 3) sorted by relevance

/ndk/sources/third_party/googletest/googletest/samples/
Dsample6_unittest.cc63 PrimeTableTest() : table_(CreatePrimeTable<T>()) {} in PrimeTableTest()
65 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
74 PrimeTable* const table_; member in PrimeTableTest
108 EXPECT_FALSE(this->table_->IsPrime(-5)); in TYPED_TEST()
109 EXPECT_FALSE(this->table_->IsPrime(0)); in TYPED_TEST()
110 EXPECT_FALSE(this->table_->IsPrime(1)); in TYPED_TEST()
111 EXPECT_FALSE(this->table_->IsPrime(4)); in TYPED_TEST()
112 EXPECT_FALSE(this->table_->IsPrime(6)); in TYPED_TEST()
113 EXPECT_FALSE(this->table_->IsPrime(100)); in TYPED_TEST()
117 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST()
[all …]
Dsample7_unittest.cc70 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
71 virtual void SetUp() { table_ = (*GetParam())(); } in SetUp()
73 delete table_; in TearDown()
74 table_ = NULL; in TearDown()
78 PrimeTable* table_; member in PrimeTableTest
82 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
83 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
84 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
85 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
86 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
[all …]
Dsample8_unittest.cc106 table_ = new HybridPrimeTable(force_on_the_fly, max_precalculated); in SetUp()
109 delete table_; in TearDown()
110 table_ = NULL; in TearDown()
112 HybridPrimeTable* table_; member in PrimeTableTest
122 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
123 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
124 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
125 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
126 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
127 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P()
[all …]