summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview_embeddertest.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-01-30 14:41:50 -0800
committerTom Sepez <tsepez@chromium.org>2015-01-30 14:41:50 -0800
commitda8189e65547f87a9c7ba3ebb72f78ecdb47e120 (patch)
treebf8b076d906a28d728735cda767007e8180d6329 /fpdfsdk/src/fpdfview_embeddertest.cpp
parent09dc51a44ba2c084ca553d8a52ba6e2e669f4f9c (diff)
downloadpdfium-da8189e65547f87a9c7ba3ebb72f78ecdb47e120.tar.xz
Merge to XFA: track formhandles in embeddder test class itself
TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/891763003
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r--fpdfsdk/src/fpdfview_embeddertest.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp
index 76dd9a5798..4827f76839 100644
--- a/fpdfsdk/src/fpdfview_embeddertest.cpp
+++ b/fpdfsdk/src/fpdfview_embeddertest.cpp
@@ -27,14 +27,12 @@ TEST_F(FPDFViewEmbeddertest, Document) {
TEST_F(FPDFViewEmbeddertest, Page) {
EXPECT_TRUE(OpenDocument("testing/resources/about_blank.pdf"));
- FPDF_FORMHANDLE form_handle = SetFormFillEnvironment();
- FPDF_PAGE page = LoadPage(0, form_handle);
+ FPDF_PAGE page = LoadPage(0);
EXPECT_NE(nullptr, page);
EXPECT_EQ(612.0, FPDF_GetPageWidth(page));
EXPECT_EQ(792.0, FPDF_GetPageHeight(page));
- UnloadPage(page, form_handle);
- EXPECT_EQ(nullptr, LoadPage(1, form_handle));
- ClearFormFillEnvironment(form_handle);
+ UnloadPage(page);
+ EXPECT_EQ(nullptr, LoadPage(1));
}
TEST_F(FPDFViewEmbeddertest, ViewerRef) {