/external/google-breakpad/src/testing/gtest/samples/ |
D | sample6_unittest.cc | 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() 118 EXPECT_TRUE(this->table_->IsPrime(3)); in TYPED_TEST() 119 EXPECT_TRUE(this->table_->IsPrime(5)); in TYPED_TEST() 120 EXPECT_TRUE(this->table_->IsPrime(7)); in TYPED_TEST() [all …]
|
D | sample8_unittest.cc | 62 virtual bool IsPrime(int n) const { in IsPrime() function in HybridPrimeTable 64 return precalc_impl_->IsPrime(n); in IsPrime() 66 return on_the_fly_impl_->IsPrime(n); in IsPrime() 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() 131 EXPECT_TRUE(table_->IsPrime(2)); in TEST_P() [all …]
|
D | sample1_unittest.cc | 122 EXPECT_FALSE(IsPrime(-1)); in TEST() 123 EXPECT_FALSE(IsPrime(-2)); in TEST() 124 EXPECT_FALSE(IsPrime(INT_MIN)); in TEST() 129 EXPECT_FALSE(IsPrime(0)); in TEST() 130 EXPECT_FALSE(IsPrime(1)); in TEST() 131 EXPECT_TRUE(IsPrime(2)); in TEST() 132 EXPECT_TRUE(IsPrime(3)); in TEST() 137 EXPECT_FALSE(IsPrime(4)); in TEST() 138 EXPECT_TRUE(IsPrime(5)); in TEST() 139 EXPECT_FALSE(IsPrime(6)); in TEST() [all …]
|
D | sample7_unittest.cc | 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() 87 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P() 91 EXPECT_TRUE(table_->IsPrime(2)); in TEST_P() 92 EXPECT_TRUE(table_->IsPrime(3)); in TEST_P() 93 EXPECT_TRUE(table_->IsPrime(5)); in TEST_P() 94 EXPECT_TRUE(table_->IsPrime(7)); in TEST_P() [all …]
|
D | sample5_unittest.cc | 118 TEST_F(IntegerFunctionTest, IsPrime) { in TEST_F() argument 120 EXPECT_FALSE(IsPrime(-1)); in TEST_F() 121 EXPECT_FALSE(IsPrime(-2)); in TEST_F() 122 EXPECT_FALSE(IsPrime(INT_MIN)); in TEST_F() 125 EXPECT_FALSE(IsPrime(0)); in TEST_F() 126 EXPECT_FALSE(IsPrime(1)); in TEST_F() 127 EXPECT_TRUE(IsPrime(2)); in TEST_F() 128 EXPECT_TRUE(IsPrime(3)); in TEST_F() 131 EXPECT_FALSE(IsPrime(4)); in TEST_F() 132 EXPECT_TRUE(IsPrime(5)); in TEST_F() [all …]
|
D | prime_tables.h | 48 virtual bool IsPrime(int n) const = 0; 58 virtual bool IsPrime(int n) const { in IsPrime() function 71 if (IsPrime(n)) return n; in GetNextPrime() 89 virtual bool IsPrime(int n) const { in IsPrime() function
|
D | sample1.h | 41 bool IsPrime(int n);
|
D | sample1.cc | 47 bool IsPrime(int n) { in IsPrime() function
|
/external/googletest/googletest/samples/ |
D | sample6_unittest.cc | 107 EXPECT_FALSE(this->table_->IsPrime(-5)); in TYPED_TEST() 108 EXPECT_FALSE(this->table_->IsPrime(0)); in TYPED_TEST() 109 EXPECT_FALSE(this->table_->IsPrime(1)); in TYPED_TEST() 110 EXPECT_FALSE(this->table_->IsPrime(4)); in TYPED_TEST() 111 EXPECT_FALSE(this->table_->IsPrime(6)); in TYPED_TEST() 112 EXPECT_FALSE(this->table_->IsPrime(100)); in TYPED_TEST() 116 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST() 117 EXPECT_TRUE(this->table_->IsPrime(3)); in TYPED_TEST() 118 EXPECT_TRUE(this->table_->IsPrime(5)); in TYPED_TEST() 119 EXPECT_TRUE(this->table_->IsPrime(7)); in TYPED_TEST() [all …]
|
D | sample8_unittest.cc | 61 bool IsPrime(int n) const override { in IsPrime() function in __anon38e779850111::HybridPrimeTable 63 return precalc_impl_->IsPrime(n); in IsPrime() 65 return on_the_fly_impl_->IsPrime(n); in IsPrime() 114 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P() 115 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P() 116 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P() 117 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P() 118 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P() 119 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P() 123 EXPECT_TRUE(table_->IsPrime(2)); in TEST_P() [all …]
|
D | sample1_unittest.cc | 119 EXPECT_FALSE(IsPrime(-1)); in TEST() 120 EXPECT_FALSE(IsPrime(-2)); in TEST() 121 EXPECT_FALSE(IsPrime(INT_MIN)); in TEST() 126 EXPECT_FALSE(IsPrime(0)); in TEST() 127 EXPECT_FALSE(IsPrime(1)); in TEST() 128 EXPECT_TRUE(IsPrime(2)); in TEST() 129 EXPECT_TRUE(IsPrime(3)); in TEST() 134 EXPECT_FALSE(IsPrime(4)); in TEST() 135 EXPECT_TRUE(IsPrime(5)); in TEST() 136 EXPECT_FALSE(IsPrime(6)); in TEST() [all …]
|
D | sample7_unittest.cc | 80 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P() 81 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P() 82 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P() 83 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P() 84 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P() 85 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P() 89 EXPECT_TRUE(table_->IsPrime(2)); in TEST_P() 90 EXPECT_TRUE(table_->IsPrime(3)); in TEST_P() 91 EXPECT_TRUE(table_->IsPrime(5)); in TEST_P() 92 EXPECT_TRUE(table_->IsPrime(7)); in TEST_P() [all …]
|
D | sample5_unittest.cc | 115 TEST_F(IntegerFunctionTest, IsPrime) { in TEST_F() argument 117 EXPECT_FALSE(IsPrime(-1)); in TEST_F() 118 EXPECT_FALSE(IsPrime(-2)); in TEST_F() 119 EXPECT_FALSE(IsPrime(INT_MIN)); in TEST_F() 122 EXPECT_FALSE(IsPrime(0)); in TEST_F() 123 EXPECT_FALSE(IsPrime(1)); in TEST_F() 124 EXPECT_TRUE(IsPrime(2)); in TEST_F() 125 EXPECT_TRUE(IsPrime(3)); in TEST_F() 128 EXPECT_FALSE(IsPrime(4)); in TEST_F() 129 EXPECT_TRUE(IsPrime(5)); in TEST_F() [all …]
|
D | prime_tables.h | 47 virtual bool IsPrime(int n) const = 0; 57 bool IsPrime(int n) const override { in IsPrime() function 70 if (IsPrime(n)) return n; in GetNextPrime() 88 bool IsPrime(int n) const override { in IsPrime() function
|
D | sample1.h | 39 bool IsPrime(int n);
|
D | sample1.cc | 45 bool IsPrime(int n) { in IsPrime() function
|
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/ |
D | filter.cpp | 5 bool IsPrime(int x) in IsPrime() function 49 return IsPrime(x); in __anon6fc0999b0202() 113 return IsPrime(x); in __anon6fc0999b0402() 181 return IsPrime(x); in __anon6fc0999b0602() 255 return IsPrime(x); in __anon6fc0999b0802() 326 return IsPrime(x); in __anon6fc0999b0a02()
|
D | lift.cpp | 73 bool IsPrime(int x) in IsPrime() function 116 return IsPrime(x); in __anonc28649640202() 179 return IsPrime(x); in __anonc28649640402() 241 return IsPrime(x); in __anonc28649640602()
|