diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-01-30 14:31:58 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-01-30 14:31:58 -0800 |
commit | b38a900497ab85c5badd5f1cd1f8c00d0c6f580d (patch) | |
tree | c4bb1612e8e40005c9befe1bbf966a8d8b4ace3f /fpdfsdk/src/fpdfview_embeddertest.cpp | |
parent | 14b2bb0adcd723a463140929cbd9453a799a34e6 (diff) | |
download | pdfium-b38a900497ab85c5badd5f1cd1f8c00d0c6f580d.tar.xz |
Track formhandles in EmbedderTest class itself
This removes some duplicated code from each individual test.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/885403002
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfview_embeddertest.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp index 14a6532a58..d0fc40d417 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) { |