Searched defs:GetNextPrime (Results 1 - 4 of 4) sorted by relevance

/external/google-breakpad/src/testing/gtest/samples/
H A Dprime_tables.h52 virtual int GetNextPrime(int p) const = 0;
69 virtual int GetNextPrime(int p) const { function in class:OnTheFlyPrimeTable
93 virtual int GetNextPrime(int p) const { function in class:PreCalculatedPrimeTable
H A Dsample8_unittest.cc69 virtual int GetNextPrime(int p) const { function in class:HybridPrimeTable
72 next_prime = precalc_impl_->GetNextPrime(p);
74 return next_prime != -1 ? next_prime : on_the_fly_impl_->GetNextPrime(p);
140 EXPECT_EQ(2, table_->GetNextPrime(0));
141 EXPECT_EQ(3, table_->GetNextPrime(2));
142 EXPECT_EQ(5, table_->GetNextPrime(3));
143 EXPECT_EQ(7, table_->GetNextPrime(5));
144 EXPECT_EQ(11, table_->GetNextPrime(7));
145 EXPECT_EQ(131, table_->GetNextPrime(128));
/external/protobuf/gtest/samples/
H A Dprime_tables.h52 virtual int GetNextPrime(int p) const = 0;
69 virtual int GetNextPrime(int p) const { function in class:OnTheFlyPrimeTable
93 virtual int GetNextPrime(int p) const { function in class:PreCalculatedPrimeTable
H A Dsample8_unittest.cc69 virtual int GetNextPrime(int p) const { function in class:HybridPrimeTable
72 next_prime = precalc_impl_->GetNextPrime(p);
74 return next_prime != -1 ? next_prime : on_the_fly_impl_->GetNextPrime(p);
140 EXPECT_EQ(2, table_->GetNextPrime(0));
141 EXPECT_EQ(3, table_->GetNextPrime(2));
142 EXPECT_EQ(5, table_->GetNextPrime(3));
143 EXPECT_EQ(7, table_->GetNextPrime(5));
144 EXPECT_EQ(11, table_->GetNextPrime(7));
145 EXPECT_EQ(131, table_->GetNextPrime(128));

Completed in 174 milliseconds