• Home
  • Raw
  • Download

Lines Matching refs:StringPiece

15   ASSERT_TRUE( (StringPiece((x)) op StringPiece((y))));               \  in TEST()
16 ASSERT_TRUE( (StringPiece((x)).compare(StringPiece((y))) op 0)) in TEST()
19 ASSERT_FALSE(StringPiece((x)) op StringPiece((y))); \ in TEST()
20 ASSERT_FALSE(StringPiece((x)).compare(StringPiece((y))) op 0) in TEST()
97 StringPiece a("abcdefghijklmnopqrstuvwxyz"); in TEST()
98 StringPiece b("abc"); in TEST()
99 StringPiece c("xyz"); in TEST()
100 StringPiece d("foobar"); in TEST()
101 StringPiece e; in TEST()
105 StringPiece f(temp); in TEST()
166 ASSERT_EQ(StringPiece::npos, std::string::npos); in TEST()
169 ASSERT_EQ(a.find(b, 1), StringPiece::npos); in TEST()
172 ASSERT_EQ(a.find(c, StringPiece::npos), StringPiece::npos); in TEST()
173 ASSERT_EQ(b.find(c), StringPiece::npos); in TEST()
174 ASSERT_EQ(b.find(c, StringPiece::npos), StringPiece::npos); in TEST()
179 StringPiece g("xx not found bb"); in TEST()
180 ASSERT_EQ(a.find(g), StringPiece::npos); in TEST()
182 ASSERT_EQ(d.find(b), StringPiece::npos); in TEST()
183 ASSERT_EQ(e.find(b), StringPiece::npos); in TEST()
184 ASSERT_EQ(d.find(b, 4), StringPiece::npos); in TEST()
185 ASSERT_EQ(e.find(b, 7), StringPiece::npos); in TEST()
200 ASSERT_EQ(a.find('$'), StringPiece::npos); in TEST()
201 ASSERT_EQ(a.find('\0'), StringPiece::npos); in TEST()
208 ASSERT_EQ(a.find('b', 5), StringPiece::npos); in TEST()
210 ASSERT_EQ(d.find('\0'), StringPiece::npos); in TEST()
211 ASSERT_EQ(e.find('\0'), StringPiece::npos); in TEST()
212 ASSERT_EQ(d.find('\0', 4), StringPiece::npos); in TEST()
213 ASSERT_EQ(e.find('\0', 7), StringPiece::npos); in TEST()
214 ASSERT_EQ(d.find('x'), StringPiece::npos); in TEST()
215 ASSERT_EQ(e.find('x'), StringPiece::npos); in TEST()
216 ASSERT_EQ(d.find('x', 4), StringPiece::npos); in TEST()
217 ASSERT_EQ(e.find('x', 7), StringPiece::npos); in TEST()
222 ASSERT_EQ(a.rfind(c, 22U), StringPiece::npos); in TEST()
223 ASSERT_EQ(a.rfind(c, 1U), StringPiece::npos); in TEST()
224 ASSERT_EQ(a.rfind(c, 0U), StringPiece::npos); in TEST()
225 ASSERT_EQ(b.rfind(c), StringPiece::npos); in TEST()
226 ASSERT_EQ(b.rfind(c, 0U), StringPiece::npos); in TEST()
231 ASSERT_EQ(a.rfind(g), StringPiece::npos); in TEST()
232 ASSERT_EQ(d.rfind(b), StringPiece::npos); in TEST()
233 ASSERT_EQ(e.rfind(b), StringPiece::npos); in TEST()
234 ASSERT_EQ(d.rfind(b, 4), StringPiece::npos); in TEST()
235 ASSERT_EQ(e.rfind(b, 7), StringPiece::npos); in TEST()
247 ASSERT_EQ(g.rfind('q'), StringPiece::npos); in TEST()
250 ASSERT_EQ(g.rfind('o', 3), StringPiece::npos); in TEST()
256 ASSERT_EQ(d.rfind('o'), StringPiece::npos); in TEST()
257 ASSERT_EQ(e.rfind('o'), StringPiece::npos); in TEST()
258 ASSERT_EQ(d.rfind('o', 4), StringPiece::npos); in TEST()
259 ASSERT_EQ(e.rfind('o', 7), StringPiece::npos); in TEST()
265 ASSERT_EQ(a.find_first_of(b, 3), StringPiece::npos); in TEST()
270 ASSERT_EQ(a.find_first_of(c, 26), StringPiece::npos); in TEST()
273 ASSERT_EQ(a.find_first_of(f), StringPiece::npos); in TEST()
274 ASSERT_EQ(f.find_first_of(a), StringPiece::npos); in TEST()
276 ASSERT_EQ(a.find_first_of(d), StringPiece::npos); in TEST()
277 ASSERT_EQ(a.find_first_of(e), StringPiece::npos); in TEST()
278 ASSERT_EQ(d.find_first_of(b), StringPiece::npos); in TEST()
279 ASSERT_EQ(e.find_first_of(b), StringPiece::npos); in TEST()
280 ASSERT_EQ(d.find_first_of(d), StringPiece::npos); in TEST()
281 ASSERT_EQ(e.find_first_of(d), StringPiece::npos); in TEST()
282 ASSERT_EQ(d.find_first_of(e), StringPiece::npos); in TEST()
283 ASSERT_EQ(e.find_first_of(e), StringPiece::npos); in TEST()
287 ASSERT_EQ(b.find_first_not_of(a), StringPiece::npos); in TEST()
288 ASSERT_EQ(c.find_first_not_of(a), StringPiece::npos); in TEST()
294 ASSERT_EQ(d.find_first_not_of(a), StringPiece::npos); in TEST()
295 ASSERT_EQ(e.find_first_not_of(a), StringPiece::npos); in TEST()
296 ASSERT_EQ(d.find_first_not_of(d), StringPiece::npos); in TEST()
297 ASSERT_EQ(e.find_first_not_of(d), StringPiece::npos); in TEST()
298 ASSERT_EQ(d.find_first_not_of(e), StringPiece::npos); in TEST()
299 ASSERT_EQ(e.find_first_not_of(e), StringPiece::npos); in TEST()
301 StringPiece h("===="); in TEST()
302 ASSERT_EQ(h.find_first_not_of('='), StringPiece::npos); in TEST()
303 ASSERT_EQ(h.find_first_not_of('=', 3), StringPiece::npos); in TEST()
310 ASSERT_EQ(d.find_first_not_of('x'), StringPiece::npos); in TEST()
311 ASSERT_EQ(e.find_first_not_of('x'), StringPiece::npos); in TEST()
312 ASSERT_EQ(d.find_first_not_of('\0'), StringPiece::npos); in TEST()
313 ASSERT_EQ(e.find_first_not_of('\0'), StringPiece::npos); in TEST()
316 StringPiece i("56"); in TEST()
317 ASSERT_EQ(h.find_last_of(a), StringPiece::npos); in TEST()
327 ASSERT_EQ(a.find_last_of('b', 0), StringPiece::npos); in TEST()
329 ASSERT_EQ(a.find_last_of('z', 24), StringPiece::npos); in TEST()
332 ASSERT_EQ(f.find_last_of(a, 4), StringPiece::npos); in TEST()
334 ASSERT_EQ(f.find_last_of(d), StringPiece::npos); in TEST()
335 ASSERT_EQ(f.find_last_of(e), StringPiece::npos); in TEST()
336 ASSERT_EQ(f.find_last_of(d, 4), StringPiece::npos); in TEST()
337 ASSERT_EQ(f.find_last_of(e, 4), StringPiece::npos); in TEST()
338 ASSERT_EQ(d.find_last_of(d), StringPiece::npos); in TEST()
339 ASSERT_EQ(d.find_last_of(e), StringPiece::npos); in TEST()
340 ASSERT_EQ(e.find_last_of(d), StringPiece::npos); in TEST()
341 ASSERT_EQ(e.find_last_of(e), StringPiece::npos); in TEST()
342 ASSERT_EQ(d.find_last_of(f), StringPiece::npos); in TEST()
343 ASSERT_EQ(e.find_last_of(f), StringPiece::npos); in TEST()
344 ASSERT_EQ(d.find_last_of(d, 4), StringPiece::npos); in TEST()
345 ASSERT_EQ(d.find_last_of(e, 4), StringPiece::npos); in TEST()
346 ASSERT_EQ(e.find_last_of(d, 4), StringPiece::npos); in TEST()
347 ASSERT_EQ(e.find_last_of(e, 4), StringPiece::npos); in TEST()
348 ASSERT_EQ(d.find_last_of(f, 4), StringPiece::npos); in TEST()
349 ASSERT_EQ(e.find_last_of(f, 4), StringPiece::npos); in TEST()
353 ASSERT_EQ(b.find_last_not_of(a), StringPiece::npos); in TEST()
354 ASSERT_EQ(b.find_last_not_of(b), StringPiece::npos); in TEST()
358 ASSERT_EQ(a.find_last_not_of(b, 2), StringPiece::npos); in TEST()
364 ASSERT_EQ(d.find_last_not_of(d), StringPiece::npos); in TEST()
365 ASSERT_EQ(d.find_last_not_of(e), StringPiece::npos); in TEST()
366 ASSERT_EQ(e.find_last_not_of(d), StringPiece::npos); in TEST()
367 ASSERT_EQ(e.find_last_not_of(e), StringPiece::npos); in TEST()
368 ASSERT_EQ(d.find_last_not_of(f), StringPiece::npos); in TEST()
369 ASSERT_EQ(e.find_last_not_of(f), StringPiece::npos); in TEST()
370 ASSERT_EQ(d.find_last_not_of(d, 4), StringPiece::npos); in TEST()
371 ASSERT_EQ(d.find_last_not_of(e, 4), StringPiece::npos); in TEST()
372 ASSERT_EQ(e.find_last_not_of(d, 4), StringPiece::npos); in TEST()
373 ASSERT_EQ(e.find_last_not_of(e, 4), StringPiece::npos); in TEST()
374 ASSERT_EQ(d.find_last_not_of(f, 4), StringPiece::npos); in TEST()
375 ASSERT_EQ(e.find_last_not_of(f, 4), StringPiece::npos); in TEST()
378 ASSERT_EQ(h.find_last_not_of('='), StringPiece::npos); in TEST()
381 ASSERT_EQ(h.find_last_not_of('=', 2), StringPiece::npos); in TEST()
384 ASSERT_EQ(d.find_last_not_of('x'), StringPiece::npos); in TEST()
385 ASSERT_EQ(e.find_last_not_of('x'), StringPiece::npos); in TEST()
386 ASSERT_EQ(d.find_last_not_of('\0'), StringPiece::npos); in TEST()
387 ASSERT_EQ(e.find_last_not_of('\0'), StringPiece::npos); in TEST()
403 StringPiece a("foobar"); in TEST()
407 StringPiece b(s1); in TEST()
408 StringPiece e; in TEST()
455 StringPiece c(a); in TEST()
501 StringPiece s(NULL); in TEST()
511 StringPiece abc("abcdefghijklmnopqrstuvwxyz"); in TEST()
514 ASSERT_TRUE(abc == StringPiece("abcdefghijklmnopqrstuvwxyz")); in TEST()
515 ASSERT_TRUE(abc.compare(StringPiece("abcdefghijklmnopqrstuvwxyz")) == 0); in TEST()
517 ASSERT_TRUE(abc < StringPiece("abcdefghijklmnopqrstuvwxzz")); in TEST()
518 ASSERT_TRUE(abc.compare(StringPiece("abcdefghijklmnopqrstuvwxzz")) < 0); in TEST()
520 ASSERT_TRUE(abc > StringPiece("abcdefghijklmnopqrstuvwxyy")); in TEST()
521 ASSERT_TRUE(abc.compare(StringPiece("abcdefghijklmnopqrstuvwxyy")) > 0); in TEST()
540 ASSERT_TRUE(StringPiece("hello") == std::string("hello")); in TEST()
541 ASSERT_TRUE("hello" == StringPiece("hello")); in TEST()