Rename link_annots.pdf to annots.pdf and add a widget annotation.
Since link_annots.pdf actually has links, highlights, and popups, rename
it to annots.pdf to reflect its contents. Since it contains several
annotation types already, add a widget annotation to give it even more
variety. The widget annotation will be used in a follow-up CL for
testing.
Change-Id: Icc0915467755bf00b1eda3e67b553f6ac229412e
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/68550
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/fpdf_text_embeddertest.cpp b/fpdfsdk/fpdf_text_embeddertest.cpp
index b85977a..77f015a 100644
--- a/fpdfsdk/fpdf_text_embeddertest.cpp
+++ b/fpdfsdk/fpdf_text_embeddertest.cpp
@@ -772,13 +772,13 @@
}
TEST_F(FPDFTextEmbedderTest, AnnotLinks) {
- ASSERT_TRUE(OpenDocument("link_annots.pdf"));
+ ASSERT_TRUE(OpenDocument("annots.pdf"));
FPDF_PAGE page = LoadPage(0);
ASSERT_TRUE(page);
// Get link count via checking annotation subtype
int annot_count = FPDFPage_GetAnnotCount(page);
- ASSERT_EQ(8, annot_count);
+ ASSERT_EQ(9, annot_count);
int annot_subtype_link_count = 0;
for (int i = 0; i < annot_count; ++i) {
ScopedFPDFAnnotation annot(FPDFPage_GetAnnot(page, i));