Lines Matching refs:pagelink

527     ScopedFPDFPageLink pagelink(FPDFLink_LoadWebLinks(textpage));  in TEST_F()  local
528 EXPECT_TRUE(pagelink); in TEST_F()
531 EXPECT_EQ(2, FPDFLink_CountWebLinks(pagelink.get())); in TEST_F()
534 EXPECT_EQ(1, FPDFLink_GetURL(pagelink.get(), 2, nullptr, 0)); in TEST_F()
535 EXPECT_EQ(1, FPDFLink_GetURL(pagelink.get(), 1400, nullptr, 0)); in TEST_F()
536 EXPECT_EQ(1, FPDFLink_GetURL(pagelink.get(), -1, nullptr, 0)); in TEST_F()
539 FPDF_PAGELINK pagelink = FPDFLink_LoadWebLinks(textpage); in TEST_F() local
540 EXPECT_TRUE(pagelink); in TEST_F()
543 EXPECT_EQ(25, FPDFLink_GetURL(pagelink, 0, nullptr, 0)); in TEST_F()
544 EXPECT_EQ(26, FPDFLink_GetURL(pagelink, 1, nullptr, 0)); in TEST_F()
554 EXPECT_EQ(1, FPDFLink_GetURL(pagelink, 0, buffer, 1)); in TEST_F()
561 FPDFLink_GetURL(pagelink, 0, buffer, expected_len - 1)); in TEST_F()
568 FPDFLink_GetURL(pagelink, 0, buffer, expected_len)); in TEST_F()
576 FPDFLink_GetURL(pagelink, 0, buffer, 128)); in TEST_F()
582 EXPECT_EQ(1, FPDFLink_CountRects(pagelink, 0)); in TEST_F()
583 EXPECT_EQ(1, FPDFLink_CountRects(pagelink, 1)); in TEST_F()
586 EXPECT_EQ(0, FPDFLink_CountRects(pagelink, -1)); in TEST_F()
587 EXPECT_EQ(0, FPDFLink_CountRects(pagelink, 2)); in TEST_F()
588 EXPECT_EQ(0, FPDFLink_CountRects(pagelink, 10000)); in TEST_F()
595 EXPECT_TRUE(FPDFLink_GetRect(pagelink, 0, 0, &left, &top, &right, &bottom)); in TEST_F()
606 EXPECT_FALSE(FPDFLink_GetRect(pagelink, 0, 1, &left, &top, &right, &bottom)); in TEST_F()
617 EXPECT_FALSE(FPDFLink_GetRect(pagelink, -1, 0, &left, &top, &right, &bottom)); in TEST_F()
623 FPDFLink_CloseWebLinks(pagelink); in TEST_F()
636 FPDF_PAGELINK pagelink = FPDFLink_LoadWebLinks(textpage); in TEST_F() local
637 EXPECT_TRUE(pagelink); in TEST_F()
650 EXPECT_EQ(kNumLinks, FPDFLink_CountWebLinks(pagelink)); in TEST_F()
657 FPDFLink_GetURL(pagelink, i, nullptr, 0)); in TEST_F()
659 FPDFLink_GetURL(pagelink, i, buffer, FX_ArraySize(buffer))); in TEST_F()
663 FPDFLink_CloseWebLinks(pagelink); in TEST_F()
676 FPDF_PAGELINK pagelink = FPDFLink_LoadWebLinks(textpage); in TEST_F() local
677 EXPECT_TRUE(pagelink); in TEST_F()
679 EXPECT_EQ(2, FPDFLink_CountWebLinks(pagelink)); in TEST_F()
685 EXPECT_EQ(kUrlSize, FPDFLink_GetURL(pagelink, 1, nullptr, 0)); in TEST_F()
687 FPDFLink_GetURL(pagelink, 1, buffer, FX_ArraySize(buffer))); in TEST_F()
690 FPDFLink_CloseWebLinks(pagelink); in TEST_F()