Lines Matching refs:ASSERT_EQ
28 ASSERT_EQ(1U, parts.size()); in TEST()
29 ASSERT_EQ("", parts[0]); in TEST()
34 ASSERT_EQ(1U, parts.size()); in TEST()
35 ASSERT_EQ("foo", parts[0]); in TEST()
40 ASSERT_EQ(3U, parts.size()); in TEST()
41 ASSERT_EQ("foo", parts[0]); in TEST()
42 ASSERT_EQ("bar", parts[1]); in TEST()
43 ASSERT_EQ("baz", parts[2]); in TEST()
48 ASSERT_EQ(3U, parts.size()); in TEST()
49 ASSERT_EQ("foo", parts[0]); in TEST()
50 ASSERT_EQ("", parts[1]); in TEST()
51 ASSERT_EQ("bar", parts[2]); in TEST()
56 ASSERT_EQ(3U, parts.size()); in TEST()
57 ASSERT_EQ("foo", parts[0]); in TEST()
58 ASSERT_EQ("bar", parts[1]); in TEST()
59 ASSERT_EQ("", parts[2]); in TEST()
65 ASSERT_EQ(2U, parts.size()); in TEST()
66 ASSERT_EQ("foo", parts[0]); in TEST()
67 ASSERT_EQ("bar", parts[1]); in TEST()
72 ASSERT_EQ(3U, parts.size()); in TEST()
73 ASSERT_EQ("foo", parts[0]); in TEST()
74 ASSERT_EQ("bar", parts[1]); in TEST()
75 ASSERT_EQ("baz", parts[2]); in TEST()
80 ASSERT_EQ(3U, parts.size()); in TEST()
81 ASSERT_EQ("foo", parts[0]); in TEST()
82 ASSERT_EQ("", parts[1]); in TEST()
83 ASSERT_EQ("bar", parts[2]); in TEST()
88 ASSERT_EQ(0U, parts.size()); in TEST()
93 ASSERT_EQ(0U, parts.size()); in TEST()
98 ASSERT_EQ(1U, parts.size()); in TEST()
99 ASSERT_EQ("foo", parts[0]); in TEST()
104 ASSERT_EQ(1U, parts.size()); in TEST()
105 ASSERT_EQ("foo", parts[0]); in TEST()
110 ASSERT_EQ(3U, parts.size()); in TEST()
111 ASSERT_EQ("foo", parts[0]); in TEST()
112 ASSERT_EQ("bar", parts[1]); in TEST()
113 ASSERT_EQ("baz", parts[2]); in TEST()
118 ASSERT_EQ(3U, parts.size()); in TEST()
119 ASSERT_EQ("foo", parts[0]); in TEST()
120 ASSERT_EQ("bar", parts[1]); in TEST()
121 ASSERT_EQ("baz", parts[2]); in TEST()
126 ASSERT_EQ(3U, parts.size()); in TEST()
127 ASSERT_EQ("foo", parts[0]); in TEST()
128 ASSERT_EQ("bar", parts[1]); in TEST()
129 ASSERT_EQ("baz", parts[2]); in TEST()
133 ASSERT_EQ("", android::base::Trim("")); in TEST()
137 ASSERT_EQ("foo", android::base::Trim("foo")); in TEST()
141 ASSERT_EQ("foo", android::base::Trim(" foo")); in TEST()
145 ASSERT_EQ("foo", android::base::Trim("foo ")); in TEST()
149 ASSERT_EQ("foo", android::base::Trim(" foo ")); in TEST()
153 ASSERT_EQ("foo bar", android::base::Trim("foo bar")); in TEST()
157 ASSERT_EQ("foo", android::base::Trim("\v\tfoo\n\f")); in TEST()
165 ASSERT_EQ("foo", android::base::Trim(Foo())); in TEST()
173 ASSERT_EQ("foo", android::base::Trim(Foo())); in TEST()
178 ASSERT_EQ("", android::base::Join(list, ',')); in TEST()
183 ASSERT_EQ("foo", android::base::Join(list, ',')); in TEST()
188 ASSERT_EQ("foo,bar,baz", android::base::Join(list, ',')); in TEST()
193 ASSERT_EQ(",,,", android::base::Join(list, ',')); in TEST()
198 ASSERT_EQ("1,2,3", android::base::Join(list, ',')); in TEST()
364 ASSERT_EQ("foo.bar", s); in TEST()
366 ASSERT_EQ("bar", s); in TEST()
372 ASSERT_EQ("foo.bar", s); in TEST()
374 ASSERT_EQ("foo", s); in TEST()
379 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "z", "Z", false)); in TEST()
380 ASSERT_EQ("", android::base::StringReplace("", "z", "Z", false)); in TEST()
381 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "", "Z", false)); in TEST()
384 ASSERT_EQ("Abcabc", android::base::StringReplace("abcabc", "a", "A", false)); in TEST()
385 ASSERT_EQ("aBcabc", android::base::StringReplace("abcabc", "b", "B", false)); in TEST()
386 ASSERT_EQ("abCabc", android::base::StringReplace("abcabc", "c", "C", false)); in TEST()
389 ASSERT_EQ("foobcabc", android::base::StringReplace("abcabc", "a", "foo", false)); in TEST()
390 ASSERT_EQ("afoocabc", android::base::StringReplace("abcabc", "b", "foo", false)); in TEST()
391 ASSERT_EQ("abfooabc", android::base::StringReplace("abcabc", "c", "foo", false)); in TEST()
394 ASSERT_EQ("xxyz", android::base::StringReplace("abcxyz", "abc", "x", false)); in TEST()
395 ASSERT_EQ("axyz", android::base::StringReplace("abcxyz", "bcx", "x", false)); in TEST()
396 ASSERT_EQ("abcx", android::base::StringReplace("abcxyz", "xyz", "x", false)); in TEST()
401 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "z", "Z", true)); in TEST()
402 ASSERT_EQ("", android::base::StringReplace("", "z", "Z", true)); in TEST()
403 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "", "Z", true)); in TEST()
406 ASSERT_EQ("AbcAbc", android::base::StringReplace("abcabc", "a", "A", true)); in TEST()
407 ASSERT_EQ("aBcaBc", android::base::StringReplace("abcabc", "b", "B", true)); in TEST()
408 ASSERT_EQ("abCabC", android::base::StringReplace("abcabc", "c", "C", true)); in TEST()
411 ASSERT_EQ("foobcfoobc", android::base::StringReplace("abcabc", "a", "foo", true)); in TEST()
412 ASSERT_EQ("afoocafooc", android::base::StringReplace("abcabc", "b", "foo", true)); in TEST()
413 ASSERT_EQ("abfooabfoo", android::base::StringReplace("abcabc", "c", "foo", true)); in TEST()
416 ASSERT_EQ("xxyzx", android::base::StringReplace("abcxyzabc", "abc", "x", true)); in TEST()
417 ASSERT_EQ("<xx>", android::base::StringReplace("<abcabc>", "abc", "x", true)); in TEST()