Lines Matching refs:search
310 ScopedFPDFTextFind search(FPDFText_FindStart(textpage, nope.get(), 0, 0)); in TEST_F() local
311 EXPECT_TRUE(search); in TEST_F()
312 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
313 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
316 EXPECT_FALSE(FPDFText_FindNext(search.get())); in TEST_F()
317 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
318 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
321 EXPECT_FALSE(FPDFText_FindPrev(search.get())); in TEST_F()
322 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
323 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
328 ScopedFPDFTextFind search(FPDFText_FindStart(textpage, world.get(), 0, 2)); in TEST_F() local
329 EXPECT_TRUE(search); in TEST_F()
332 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
333 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
336 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
337 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
338 EXPECT_EQ(5, FPDFText_GetSchCount(search.get())); in TEST_F()
341 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
342 EXPECT_EQ(24, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
343 EXPECT_EQ(5, FPDFText_GetSchCount(search.get())); in TEST_F()
346 EXPECT_FALSE(FPDFText_FindNext(search.get())); in TEST_F()
347 EXPECT_EQ(24, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
348 EXPECT_EQ(5, FPDFText_GetSchCount(search.get())); in TEST_F()
351 EXPECT_TRUE(FPDFText_FindPrev(search.get())); in TEST_F()
352 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
353 EXPECT_EQ(5, FPDFText_GetSchCount(search.get())); in TEST_F()
356 EXPECT_FALSE(FPDFText_FindPrev(search.get())); in TEST_F()
357 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
358 EXPECT_EQ(5, FPDFText_GetSchCount(search.get())); in TEST_F()
363 ScopedFPDFTextFind search(FPDFText_FindStart( in TEST_F() local
365 EXPECT_TRUE(search); in TEST_F()
366 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
367 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
368 EXPECT_EQ(5, FPDFText_GetSchCount(search.get())); in TEST_F()
373 ScopedFPDFTextFind search( in TEST_F() local
375 EXPECT_TRUE(search); in TEST_F()
376 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
377 EXPECT_EQ(7, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
378 EXPECT_EQ(5, FPDFText_GetSchCount(search.get())); in TEST_F()
383 ScopedFPDFTextFind search( in TEST_F() local
385 EXPECT_FALSE(FPDFText_FindNext(search.get())); in TEST_F()
386 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
387 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
392 ScopedFPDFTextFind search( in TEST_F() local
394 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
395 EXPECT_EQ(8, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
396 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
401 ScopedFPDFTextFind search(FPDFText_FindStart(textpage, world_substr.get(), in TEST_F() local
403 EXPECT_FALSE(FPDFText_FindNext(search.get())); in TEST_F()
423 ScopedFPDFTextFind search(FPDFText_FindStart(textpage, aaaa.get(), 0, 0)); in TEST_F() local
424 EXPECT_TRUE(search); in TEST_F()
427 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
428 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
431 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
432 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
433 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
436 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
437 EXPECT_EQ(4, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
438 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
441 EXPECT_FALSE(FPDFText_FindNext(search.get())); in TEST_F()
442 EXPECT_EQ(4, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
443 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
446 EXPECT_TRUE(FPDFText_FindPrev(search.get())); in TEST_F()
447 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
448 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
451 EXPECT_FALSE(FPDFText_FindPrev(search.get())); in TEST_F()
452 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
453 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
459 ScopedFPDFTextFind search( in TEST_F() local
461 EXPECT_TRUE(search); in TEST_F()
464 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
465 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
469 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
470 EXPECT_EQ(i, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
471 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
475 EXPECT_FALSE(FPDFText_FindNext(search.get())); in TEST_F()
476 EXPECT_EQ(6, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
477 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
480 EXPECT_TRUE(FPDFText_FindPrev(search.get())); in TEST_F()
481 EXPECT_EQ(i, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
482 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
486 EXPECT_FALSE(FPDFText_FindPrev(search.get())); in TEST_F()
487 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
488 EXPECT_EQ(4, FPDFText_GetSchCount(search.get())); in TEST_F()
514 ScopedFPDFTextFind search(FPDFText_FindStart(textpage, needle, 0, 0)); in TEST_F() local
515 EXPECT_TRUE(search); in TEST_F()
516 EXPECT_EQ(0, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
517 EXPECT_EQ(0, FPDFText_GetSchCount(search.get())); in TEST_F()
520 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
521 EXPECT_EQ(2, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
522 EXPECT_EQ(1, FPDFText_GetSchCount(search.get())); in TEST_F()
523 EXPECT_TRUE(FPDFText_FindNext(search.get())); in TEST_F()
524 EXPECT_EQ(3, FPDFText_GetSchResultIndex(search.get())); in TEST_F()
525 EXPECT_EQ(1, FPDFText_GetSchCount(search.get())); in TEST_F()
527 EXPECT_FALSE(FPDFText_FindNext(search.get())); in TEST_F()