Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: testing/embedder_test.cpp

Issue 2005653002: Distinguish between user and owner passwords. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/embedder_test.h ('k') | testing/resources/encrypted.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/embedder_test.cpp
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index 38a3dcdeca42d4a6da1ac6534d9861bfd5a7f6ed..033313dbe24a0519350ef3650536cc042b67e727 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;
}
« no previous file with comments | « testing/embedder_test.h ('k') | testing/resources/encrypted.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698