Searched refs:table_ (Results 1 – 3 of 3) sorted by relevance
63 PrimeTableTest() : table_(CreatePrimeTable<T>()) {} in PrimeTableTest()65 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()74 PrimeTable* const table_; member in PrimeTableTest108 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 …]
70 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 PrimeTableTest82 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 …]
106 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 PrimeTableTest122 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 …]