Home
last modified time | relevance | path

Searched refs:GetNextPrime (Results 1 – 4 of 4) sorted by relevance

/ndk/sources/third_party/googletest/googletest/samples/
Dsample6_unittest.cc126 EXPECT_EQ(2, this->table_->GetNextPrime(0)); in TYPED_TEST()
127 EXPECT_EQ(3, this->table_->GetNextPrime(2)); in TYPED_TEST()
128 EXPECT_EQ(5, this->table_->GetNextPrime(3)); in TYPED_TEST()
129 EXPECT_EQ(7, this->table_->GetNextPrime(5)); in TYPED_TEST()
130 EXPECT_EQ(11, this->table_->GetNextPrime(7)); in TYPED_TEST()
131 EXPECT_EQ(131, this->table_->GetNextPrime(128)); in TYPED_TEST()
190 EXPECT_EQ(2, this->table_->GetNextPrime(0)); in TYPED_TEST_P()
191 EXPECT_EQ(3, this->table_->GetNextPrime(2)); in TYPED_TEST_P()
192 EXPECT_EQ(5, this->table_->GetNextPrime(3)); in TYPED_TEST_P()
193 EXPECT_EQ(7, this->table_->GetNextPrime(5)); in TYPED_TEST_P()
[all …]
Dsample8_unittest.cc69 virtual int GetNextPrime(int p) const { in GetNextPrime() function in HybridPrimeTable
72 next_prime = precalc_impl_->GetNextPrime(p); in GetNextPrime()
74 return next_prime != -1 ? next_prime : on_the_fly_impl_->GetNextPrime(p); in GetNextPrime()
140 EXPECT_EQ(2, table_->GetNextPrime(0)); in TEST_P()
141 EXPECT_EQ(3, table_->GetNextPrime(2)); in TEST_P()
142 EXPECT_EQ(5, table_->GetNextPrime(3)); in TEST_P()
143 EXPECT_EQ(7, table_->GetNextPrime(5)); in TEST_P()
144 EXPECT_EQ(11, table_->GetNextPrime(7)); in TEST_P()
145 EXPECT_EQ(131, table_->GetNextPrime(128)); in TEST_P()
Dsample7_unittest.cc100 EXPECT_EQ(2, table_->GetNextPrime(0)); in TEST_P()
101 EXPECT_EQ(3, table_->GetNextPrime(2)); in TEST_P()
102 EXPECT_EQ(5, table_->GetNextPrime(3)); in TEST_P()
103 EXPECT_EQ(7, table_->GetNextPrime(5)); in TEST_P()
104 EXPECT_EQ(11, table_->GetNextPrime(7)); in TEST_P()
105 EXPECT_EQ(131, table_->GetNextPrime(128)); in TEST_P()
Dprime_tables.h52 virtual int GetNextPrime(int p) const = 0;
69 virtual int GetNextPrime(int p) const { in GetNextPrime() function
93 virtual int GetNextPrime(int p) const { in GetNextPrime() function