diff options
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r-- | testing/embedder_test.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index bb202bff1c..ccc98b4dcd 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -131,9 +131,22 @@ bool EmbedderTest::CreateEmptyDocument() { return true; } -bool EmbedderTest::OpenDocument(const std::string& filename, - const char* password, - bool must_linearize) { +bool EmbedderTest::OpenDocument(const std::string& filename) { + return OpenDocumentWithOptions(filename, nullptr, false); +} + +bool EmbedderTest::OpenDocumentLinearized(const std::string& filename) { + return OpenDocumentWithOptions(filename, nullptr, true); +} + +bool EmbedderTest::OpenDocumentWithPassword(const std::string& filename, + const char* password) { + return OpenDocumentWithOptions(filename, password, false); +} + +bool EmbedderTest::OpenDocumentWithOptions(const std::string& filename, + const char* password, + bool must_linearize) { std::string file_path; if (!PathService::GetTestFilePath(filename, &file_path)) return false; |