diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2017-11-10 20:27:23 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-10 20:27:23 +0000 |
commit | 8baea3c694900581fef42ee64795aa5307c6373d (patch) | |
tree | 12f1a4415b4bc4906b1faa06efeba5fe72753a45 /core/fpdfapi/parser | |
parent | 267d2a862fd9ec7bc722533914e8e5af8a19df26 (diff) | |
download | pdfium-8baea3c694900581fef42ee64795aa5307c6373d.tar.xz |
Stop using m_SavedPage in embedder tests.chromium/3265
Change-Id: Id53f57085fecfe331c8cbfa6bb372b5ea5044442
Reviewed-on: https://pdfium-review.googlesource.com/18332
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp b/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp index 91e625ab26..834ed8c48d 100644 --- a/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp +++ b/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp @@ -81,11 +81,11 @@ TEST_F(CPDFSecurityHandlerEmbeddertest, PasswordAfterGenerateSave) { for (const auto& test : tests) { OpenSavedDocument(test.password); - LoadSavedPage(); - VerifySavedRendering(612, 792, md5); + FPDF_PAGE page = LoadSavedPage(0); + VerifySavedRendering(page, 612, 792, md5); EXPECT_EQ(test.permissions, FPDF_GetDocPermissions(m_SavedDocument)); - CloseSavedPage(); + CloseSavedPage(page); CloseSavedDocument(); } } |