• Home
  • Raw
  • Download

Lines Matching refs:EXPECT_EQ

34   EXPECT_EQ("", path);  in TEST()
38 EXPECT_EQ("foo.h", path); in TEST()
42 EXPECT_EQ("foo.h", path); in TEST()
46 EXPECT_EQ("foo/bar.h", path); in TEST()
50 EXPECT_EQ("x/bar.h", path); in TEST()
54 EXPECT_EQ("bar.h", path); in TEST()
58 EXPECT_EQ("foo/bar", path); in TEST()
62 EXPECT_EQ("bar", path); in TEST()
66 EXPECT_EQ("../bar.h", path); in TEST()
70 EXPECT_EQ("foo", path); in TEST()
74 EXPECT_EQ("foo", path); in TEST()
78 EXPECT_EQ("foo/.hidden_bar", path); in TEST()
82 EXPECT_EQ("/foo", path); in TEST()
87 EXPECT_EQ("//foo", path); in TEST()
89 EXPECT_EQ("/foo", path); in TEST()
94 EXPECT_EQ("", path); in TEST()
98 EXPECT_EQ("", path); in TEST()
102 EXPECT_EQ(".", path); in TEST()
106 EXPECT_EQ(".", path); in TEST()
110 EXPECT_EQ(".", path); in TEST()
118 EXPECT_EQ("", path); in TEST()
122 EXPECT_EQ("foo.h", path); in TEST()
126 EXPECT_EQ("foo.h", path); in TEST()
130 EXPECT_EQ("foo/bar.h", path); in TEST()
134 EXPECT_EQ("x/bar.h", path); in TEST()
138 EXPECT_EQ("bar.h", path); in TEST()
142 EXPECT_EQ("foo/bar", path); in TEST()
146 EXPECT_EQ("bar", path); in TEST()
150 EXPECT_EQ("../bar.h", path); in TEST()
154 EXPECT_EQ("foo", path); in TEST()
158 EXPECT_EQ("foo", path); in TEST()
162 EXPECT_EQ("foo/.hidden_bar", path); in TEST()
166 EXPECT_EQ("/foo", path); in TEST()
170 EXPECT_EQ("//foo", path); in TEST()
174 EXPECT_EQ("", path); in TEST()
183 EXPECT_EQ("foo.h", path); in TEST()
184 EXPECT_EQ(0, slash_bits); in TEST()
188 EXPECT_EQ("a/foo.h", path); in TEST()
189 EXPECT_EQ(1, slash_bits); in TEST()
193 EXPECT_EQ("a/bcd/efh/foo.h", path); in TEST()
194 EXPECT_EQ(4, slash_bits); in TEST()
198 EXPECT_EQ("a/bcd/efh/foo.h", path); in TEST()
199 EXPECT_EQ(5, slash_bits); in TEST()
203 EXPECT_EQ("a/bcd/efh/foo.h", path); in TEST()
204 EXPECT_EQ(7, slash_bits); in TEST()
208 EXPECT_EQ("a/bcd/efh/foo.h", path); in TEST()
209 EXPECT_EQ(0, slash_bits); in TEST()
213 EXPECT_EQ("a/efh/foo.h", path); in TEST()
214 EXPECT_EQ(3, slash_bits); in TEST()
218 EXPECT_EQ("efh/foo.h", path); in TEST()
219 EXPECT_EQ(1, slash_bits); in TEST()
223 EXPECT_EQ("a/b/c/d/e/f/g/foo.h", path); in TEST()
224 EXPECT_EQ(127, slash_bits); in TEST()
228 EXPECT_EQ("g/foo.h", path); in TEST()
229 EXPECT_EQ(1, slash_bits); in TEST()
233 EXPECT_EQ("g/foo.h", path); in TEST()
234 EXPECT_EQ(1, slash_bits); in TEST()
238 EXPECT_EQ("a/g/foo.h", path); in TEST()
239 EXPECT_EQ(3, slash_bits); in TEST()
243 EXPECT_EQ("a/g/foo.h", path); in TEST()
244 EXPECT_EQ(1, slash_bits); in TEST()
248 EXPECT_EQ("a/foo.h", path); in TEST()
249 EXPECT_EQ(1, slash_bits); in TEST()
253 EXPECT_EQ("a/foo.h", path); in TEST()
254 EXPECT_EQ(0, slash_bits); in TEST()
258 EXPECT_EQ("a/foo.h", path); in TEST()
259 EXPECT_EQ(1, slash_bits); in TEST()
268 EXPECT_EQ(0, strncmp("foo/bar/baz.h", buf, size)); in TEST()
269 EXPECT_EQ(2, slash_bits); // Not including the trailing one. in TEST()
280 EXPECT_EQ(slash_bits, 0x0); in TEST()
290 EXPECT_EQ(slash_bits, 0xffffffff); in TEST()
296 EXPECT_EQ(slash_bits, 0x0); in TEST()
305 EXPECT_EQ(slash_bits, 0x1ffffffff); in TEST()
311 EXPECT_EQ(58, std::count(path.begin(), path.end(), '/')); in TEST()
313 EXPECT_EQ(slash_bits, 0x0); in TEST()
321 EXPECT_EQ(58, std::count(path.begin(), path.end(), '\\')); in TEST()
323 EXPECT_EQ(slash_bits, 0x3ffffffffffffff); in TEST()
331 EXPECT_EQ("../../foo/bar.h", path); in TEST()
335 EXPECT_EQ("../foo/bar.h", path); in TEST()
342 EXPECT_EQ("/usr/include/stdio.h", path); in TEST()
353 EXPECT_EQ(strlen("foo"), len); in TEST()
354 EXPECT_EQ("foo/. bar/.", string(path)); in TEST()
359 EXPECT_EQ(strlen("file"), len); in TEST()
360 EXPECT_EQ("file ./file bar/.", string(path)); in TEST()
367 EXPECT_EQ("\"foo bar\\\\\\\"'$@d!st!c'\\path'\\\\\"", result); in TEST()
371 EXPECT_EQ("'foo bar\"/'\\''$@d!st!c'\\''/path'\\'''", result); in TEST()
379 EXPECT_EQ(path, result); in TEST()
383 EXPECT_EQ(path, result); in TEST()
391 EXPECT_EQ(path, result); in TEST()
396 EXPECT_EQ("foo", stripped); in TEST()
399 EXPECT_EQ("foo", stripped); in TEST()
407 EXPECT_EQ("affixmgr.cxx:286:15: warning: using the result... [-Wparentheses]", in TEST()
413 EXPECT_EQ(input, ElideMiddle(input, 80)); in TEST()
414 EXPECT_EQ(input, ElideMiddle(input, 38)); in TEST()
415 EXPECT_EQ("", ElideMiddle(input, 0)); in TEST()
416 EXPECT_EQ(".", ElideMiddle(input, 1)); in TEST()
417 EXPECT_EQ("..", ElideMiddle(input, 2)); in TEST()
418 EXPECT_EQ("...", ElideMiddle(input, 3)); in TEST()
424 EXPECT_EQ("012...789", elided); in TEST()
425 EXPECT_EQ("01234567...23456789", ElideMiddle(input, 19)); in TEST()