From 27ddf161579f79510b361d0016ccc7f0cdffdc6d Mon Sep 17 00:00:00 2001 From: thestig Date: Mon, 23 May 2016 15:06:59 -0700 Subject: Distinguish between user and owner passwords. BUG=pdfium:496 Review-Url: https://codereview.chromium.org/2005653002 --- testing/embedder_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testing/embedder_test.cpp') diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 38a3dcdeca..033313dbe2 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -111,6 +111,7 @@ bool EmbedderTest::CreateEmptyDocument() { } bool EmbedderTest::OpenDocument(const std::string& filename, + const char* password, bool must_linearize) { std::string file_path; if (!PathService::GetTestFilePath(filename, &file_path)) @@ -133,7 +134,7 @@ bool EmbedderTest::OpenDocument(const std::string& filename, avail_ = FPDFAvail_Create(&file_avail_, &file_access_); if (FPDFAvail_IsLinearized(avail_) == PDF_LINEARIZED) { - document_ = FPDFAvail_GetDocument(avail_, nullptr); + document_ = FPDFAvail_GetDocument(avail_, password); if (!document_) { return false; } -- cgit v1.2.3