Home
last modified time | relevance | path

Searched refs:EXPECT_EQ (Results 1 – 25 of 47) sorted by relevance

12

/ndk/sources/android/support/tests/
Dstdio_unittest.cc10 EXPECT_EQ(2, snprintf(char_buff, char_buff_len, "ab")); in TEST()
11 EXPECT_EQ(5, snprintf(char_buff, char_buff_len, "%s", "abcde")); in TEST()
13 EXPECT_EQ(12, snprintf(char_buff, char_buff_len, "%s", kString)); in TEST()
14 EXPECT_EQ(12, snprintf(char_buff, 13, "%s", kString)); in TEST()
16 EXPECT_EQ(12, snprintf(char_buff, 12, "%s", kString)); in TEST()
17 EXPECT_EQ(L'\0', char_buff[11]); in TEST()
18 EXPECT_EQ(12, snprintf(char_buff, 1, "%s", kString)); in TEST()
19 EXPECT_EQ(L'\0', char_buff[0]); in TEST()
21 EXPECT_EQ(20, snprintf(char_buff, char_buff_len, "%a", 3.1415926535)); in TEST()
29 EXPECT_EQ(1, sscanf("0x1p-2", "%a", &f)); in TEST()
[all …]
Dmath_unittest.cc8 EXPECT_EQ(16U, sizeof(long double)); in TEST()
10 EXPECT_EQ(8U, sizeof(long double)); in TEST()
17 EXPECT_EQ(x, nexttoward(x, (long double)x)); in TEST()
24 EXPECT_EQ(x, nexttowardf(x, (long double)x)); in TEST()
31 EXPECT_EQ(x, nexttowardl(x, x)); in TEST()
38 EXPECT_EQ(16., scalbln(2.0, (long int)3)); in TEST()
42 EXPECT_EQ((float)16., scalblnf((float)2.0, (long int)3)); in TEST()
46 EXPECT_EQ((long double)16., scalblnl((long double)2.0, (long int)3)); in TEST()
Dwchar_unittest.cc42 EXPECT_EQ(kString + 0, wcschr(kString, L'a')); in TEST()
43 EXPECT_EQ(kString + 1, wcschr(kString, L'b')); in TEST()
44 EXPECT_EQ(kString + 2, wcschr(kString, L'c')); in TEST()
45 EXPECT_EQ(kString + 3, wcschr(kString, L'd')); in TEST()
47 EXPECT_EQ(kString + 5, wcschr(kString, L'\0')); in TEST()
52 EXPECT_EQ(kString + 4, wcsrchr(kString, L'a')); in TEST()
53 EXPECT_EQ(kString + 1, wcsrchr(kString, L'b')); in TEST()
54 EXPECT_EQ(kString + 2, wcsrchr(kString, L'c')); in TEST()
55 EXPECT_EQ(kString + 3, wcsrchr(kString, L'd')); in TEST()
57 EXPECT_EQ(kString + 5, wcsrchr(kString, L'\0')); in TEST()
[all …]
Dlibdl_unittest.cc22 EXPECT_EQ(h, info.dli_saddr); in TEST()
23 EXPECT_EQ(0, strcmp("libc.so", info.dli_fname)); in TEST()
25 EXPECT_EQ(0, r); in TEST()
/ndk/sources/third_party/googletest/googletest/test/
Dgtest-printers_test.cc254 EXPECT_EQ("-1", Print(kAE1)); in TEST()
255 EXPECT_EQ("1", Print(kAE2)); in TEST()
259 EXPECT_EQ("-2", Print(kEWP1)); in TEST()
260 EXPECT_EQ("42", Print(kEWP2)); in TEST()
264 EXPECT_EQ("kEWS1", Print(kEWS1)); in TEST()
265 EXPECT_EQ("invalid", Print(static_cast<EnumWithStreaming>(0))); in TEST()
269 EXPECT_EQ("kEWPT1", Print(kEWPT1)); in TEST()
270 EXPECT_EQ("invalid", Print(static_cast<EnumWithPrintTo>(0))); in TEST()
276 EXPECT_EQ("42", Print(BiggestIntConvertible())); in TEST()
283 EXPECT_EQ("'\\0'", Print('\0')); in TEST()
[all …]
Dgtest-tuple_test.cc55 EXPECT_EQ(0, +tuple_size<tuple<> >::value); in TEST()
56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value); in TEST()
57 EXPECT_EQ(1, +tuple_size<tuple<char> >::value); in TEST()
58 EXPECT_EQ(1, +(tuple_size<tuple<tuple<int, double> > >::value)); in TEST()
59 EXPECT_EQ(2, +(tuple_size<tuple<int&, const char> >::value)); in TEST()
60 EXPECT_EQ(3, +(tuple_size<tuple<char*, void, const bool&> >::value)); in TEST()
124 EXPECT_EQ(n, get<1>(t)) in TEST()
129 EXPECT_EQ(&n, &(get<1>(t))) in TEST()
134 EXPECT_EQ(2, n) in TEST()
151 EXPECT_EQ(0, get<0>(b1)); in TEST()
[all …]
Dgtest-filepath_test.cc103 EXPECT_EQ(GTEST_PATH_SEP_, cwd.string());
123 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
128 EXPECT_EQ("afile", in TEST()
134 EXPECT_EQ("afile", in TEST()
140 EXPECT_EQ("", in TEST()
146 EXPECT_EQ("afile", in TEST()
152 EXPECT_EQ("afile", in TEST()
164 EXPECT_EQ("afile", FilePath("/afile").RemoveDirectoryName().string()); in TEST()
169 EXPECT_EQ("", FilePath("adir/").RemoveDirectoryName().string()); in TEST()
174 EXPECT_EQ("afile", FilePath("adir/afile").RemoveDirectoryName().string()); in TEST()
[all …]
Dgtest-message_test.cc47 EXPECT_EQ("", msg.GetString()); in TEST()
54 EXPECT_EQ("Hello", msg2.GetString()); in TEST()
60 EXPECT_EQ("Hello", msg.GetString()); in TEST()
90 EXPECT_EQ("(null)", (Message() << p).GetString()); in TEST()
95 EXPECT_EQ("Foo", (Message() << "Foo").GetString()); in TEST()
101 EXPECT_EQ("(null)", (Message() << p).GetString()); in TEST()
107 EXPECT_EQ("Hello", (Message() << str).GetString()); in TEST()
116 EXPECT_EQ("Here's a NUL\\0 and some more string", in TEST()
122 EXPECT_EQ("\\0", (Message() << '\0').GetString()); in TEST()
127 EXPECT_EQ("123", (Message() << 123).GetString()); in TEST()
[all …]
Dgtest-typed-test_test.cc67 virtual ~CommonTest() { EXPECT_EQ(3, value_); } in ~CommonTest()
70 EXPECT_EQ(1, value_); in SetUp()
75 EXPECT_EQ(2, value_); in TearDown()
100 EXPECT_EQ(5, *TestFixture::shared_); in TYPED_TEST()
105 EXPECT_EQ(0U, empty.size()); in TYPED_TEST()
108 EXPECT_EQ(0U, empty2.size()); in TYPED_TEST()
112 EXPECT_EQ(2, this->value_); in TYPED_TEST()
121 EXPECT_EQ(5, *this->shared_); in TYPED_TEST()
124 EXPECT_EQ(static_cast<TypeParam>(2), this->value_); in TYPED_TEST()
163 EXPECT_EQ(0, TypeParam()); in TYPED_TEST()
[all …]
Dgtest-unittest-api_test.cc118 EXPECT_EQ(1 + kTypedTestCases, unit_test->test_case_to_run_count()); in TEST()
119 EXPECT_EQ(2, unit_test->disabled_test_count()); in TEST()
120 EXPECT_EQ(5 + kTypedTests, unit_test->total_test_count()); in TEST()
121 EXPECT_EQ(3 + kTypedTests, unit_test->test_to_run_count()); in TEST()
154 EXPECT_EQ(1, test_case->disabled_test_count()); in TEST()
155 EXPECT_EQ(3, test_case->test_to_run_count()); in TEST()
194 EXPECT_EQ(0, test_case->disabled_test_count()); in TEST()
195 EXPECT_EQ(1, test_case->test_to_run_count()); in TEST()
217 EXPECT_EQ(1, test_case->disabled_test_count()); in TEST()
218 EXPECT_EQ(0, test_case->test_to_run_count()); in TEST()
[all …]
Dgtest_unittest.cc111 EXPECT_EQ("event=TestProgramEnd&passed=1\n", *output()); in TEST_F()
117 EXPECT_EQ("event=TestIterationEnd&passed=1&elapsed_time=0ms\n", *output()); in TEST_F()
123 EXPECT_EQ("event=TestCaseStart&name=FooTest\n", *output()); in TEST_F()
129 EXPECT_EQ("event=TestCaseEnd&passed=1&elapsed_time=0ms\n", *output()); in TEST_F()
135 EXPECT_EQ("event=TestStart&name=Bar\n", *output()); in TEST_F()
141 EXPECT_EQ("event=TestEnd&passed=1&elapsed_time=0ms\n", *output()); in TEST_F()
150 EXPECT_EQ( in TEST_F()
322 EXPECT_EQ(1, GetRandomSeedFromFlag(1)); in TEST()
323 EXPECT_EQ(2, GetRandomSeedFromFlag(2)); in TEST()
324 EXPECT_EQ(kMaxRandomSeed - 1, GetRandomSeedFromFlag(kMaxRandomSeed - 1)); in TEST()
[all …]
Dgtest_prod_test.cc41 EXPECT_EQ(0, a.x_); in TEST()
44 EXPECT_EQ(1, a.x_); in TEST()
53 EXPECT_EQ(0, a.x_); in TEST_F()
56 EXPECT_EQ(2, a.x_); in TEST_F()
Dgtest-test-part_test.cc69 EXPECT_EQ(TestPartResult::kNonFatalFailure, result.type()); in TEST_F()
71 EXPECT_EQ(42, result.line_number()); in TEST_F()
107 EXPECT_EQ(TestPartResult::kSuccess, r1_.type()); in TEST_F()
108 EXPECT_EQ(TestPartResult::kNonFatalFailure, r2_.type()); in TEST_F()
109 EXPECT_EQ(TestPartResult::kFatalFailure, r3_.type()); in TEST_F()
120 EXPECT_EQ(10, r1_.line_number()); in TEST_F()
121 EXPECT_EQ(-1, r2_.line_number()); in TEST_F()
171 EXPECT_EQ(0, results.size()); in TEST_F()
179 EXPECT_EQ(1, results.size()); in TEST_F()
189 EXPECT_EQ(2, results.size()); in TEST_F()
Dgtest-options_test.cc81 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(), in TEST()
87 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(), in TEST()
102 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST()
146 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F()
153 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F()
160 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F()
177 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST_F()
184 EXPECT_EQ(FilePath("c:\\tmp\\filename.abc").string(), in TEST_F()
188 EXPECT_EQ(FilePath("/tmp/filename.abc").string(), in TEST_F()
209 EXPECT_EQ(expected_output_file, output_file.c_str()); in TEST_F()
Dgtest-death-test_test.cc604 EXPECT_EQ(regex_save + 1, regex); in TEST_F()
636 EXPECT_EQ(12, sideeffect); in TEST_F()
641 EXPECT_EQ(0, sideeffect); in TEST_F()
662 EXPECT_EQ(12, sideeffect); in TEST_F()
667 EXPECT_EQ(0, sideeffect); in TEST_F()
991 EXPECT_EQ(0, factory_->AssumeRoleCalls()); in TEST_F()
992 EXPECT_EQ(0, factory_->WaitCalls()); in TEST_F()
993 EXPECT_EQ(0, factory_->PassedCalls()); in TEST_F()
994 EXPECT_EQ(0, factory_->AbortCalls()); in TEST_F()
1006 EXPECT_EQ(1, factory_->AssumeRoleCalls()); in TEST_F()
[all …]
/ndk/sources/android/crazy_linker/src/
Dcrazy_linker_util_unittest.cpp13 EXPECT_EQ(kString + 5, GetBaseNamePtr(kString)); in TEST()
19 EXPECT_EQ(0u, s.size()); in TEST()
20 EXPECT_EQ('\0', s.c_str()[0]); in TEST()
26 EXPECT_EQ(6U, s.size()); in TEST()
32 EXPECT_EQ(3U, s2.size()); in TEST()
39 EXPECT_EQ(6U, s2.size()); in TEST()
45 EXPECT_EQ(1U, s.size()); in TEST()
66 EXPECT_EQ('F', s[0]); in TEST()
67 EXPECT_EQ('o', s[1]); in TEST()
68 EXPECT_EQ('o', s[2]); in TEST()
[all …]
Dcrazy_linker_proc_maps_unittest.cpp56 EXPECT_EQ(0x4005c000, load_address); in TEST()
90 EXPECT_EQ(kData[n].success, FindProtectionFlagsForAddress(address, &prot)); in TEST()
93 EXPECT_EQ(kData[n].prot, prot); in TEST()
115 EXPECT_EQ(kData[n].success, success); in TEST()
118 EXPECT_EQ(kData[n].address, address); in TEST()
121 EXPECT_EQ(kData[n].offset, offset); in TEST()
196 EXPECT_EQ(kData[n].vma_start, entry.vma_start); in TEST()
198 EXPECT_EQ(kData[n].vma_end, entry.vma_end); in TEST()
200 EXPECT_EQ(kData[n].prot_flags, entry.prot_flags); in TEST()
202 EXPECT_EQ(kData[n].load_offset, entry.load_offset); in TEST()
/ndk/sources/third_party/googletest/googletest/samples/
Dsample5_unittest.cc102 EXPECT_EQ(1, Factorial(-5)); in TEST_F()
103 EXPECT_EQ(1, Factorial(-1)); in TEST_F()
107 EXPECT_EQ(1, Factorial(0)); in TEST_F()
110 EXPECT_EQ(1, Factorial(1)); in TEST_F()
111 EXPECT_EQ(2, Factorial(2)); in TEST_F()
112 EXPECT_EQ(6, Factorial(3)); in TEST_F()
113 EXPECT_EQ(40320, Factorial(8)); in TEST_F()
174 EXPECT_EQ(0u, q0_.Size()); in TEST_F()
184 EXPECT_EQ(1, *n); in TEST_F()
185 EXPECT_EQ(0u, q1_.Size()); in TEST_F()
[all …]
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 …]
Dsample1_unittest.cc82 EXPECT_EQ(1, Factorial(-5)); in TEST()
83 EXPECT_EQ(1, Factorial(-1)); in TEST()
104 EXPECT_EQ(1, Factorial(0)); in TEST()
109 EXPECT_EQ(1, Factorial(1)); in TEST()
110 EXPECT_EQ(2, Factorial(2)); in TEST()
111 EXPECT_EQ(6, Factorial(3)); in TEST()
112 EXPECT_EQ(40320, Factorial(8)); in TEST()
Dsample2_unittest.cc74 EXPECT_EQ(0u, s.Length()); in TEST()
82 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
83 EXPECT_EQ(sizeof(kHelloString)/sizeof(kHelloString[0]) - 1, in TEST()
91 EXPECT_EQ(0, strcmp(s2.c_string(), kHelloString)); in TEST()
99 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
104 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
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()
Dsample3_unittest.cc107 EXPECT_EQ(2 * n1->element(), n2->element()); in MapTester()
125 EXPECT_EQ(0u, q0_.Size()); in TEST_F()
135 EXPECT_EQ(1, *n); in TEST_F()
136 EXPECT_EQ(0u, q1_.Size()); in TEST_F()
141 EXPECT_EQ(2, *n); in TEST_F()
142 EXPECT_EQ(1u, q2_.Size()); in TEST_F()
Dsample4_unittest.cc42 EXPECT_EQ(0, c.Increment()); in TEST()
43 EXPECT_EQ(1, c.Increment()); in TEST()
44 EXPECT_EQ(2, c.Increment()); in TEST()
Dsample8_unittest.cc140 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()

12