diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2022-03-20 14:24:23 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-29 02:52:57 +0200 |
commit | 5b316462b292b24a9fa5e641b45d7dc7133cf33a (patch) | |
tree | 2866f9dc4a19d2196c21e1ac695626fe065aa6a8 /Tests | |
parent | c98bda8ce6e492e0cb2f8006fbca362f8204b249 (diff) | |
download | serenity-5b316462b292b24a9fa5e641b45d7dc7133cf33a.zip |
LibPDF: Add implementation of the Standard security handler
Security handlers manage encryption and decription of PDF files. The
standard security handler uses RC4/MD5 to perform its crypto (AES as
well, but that is not yet implemented).
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibPDF/TestPDF.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/LibPDF/TestPDF.cpp b/Tests/LibPDF/TestPDF.cpp index 559f3554a4..e666b7ec9c 100644 --- a/Tests/LibPDF/TestPDF.cpp +++ b/Tests/LibPDF/TestPDF.cpp @@ -16,6 +16,7 @@ TEST_CASE(linearized_pdf) auto file = Core::MappedFile::map("linearized.pdf").release_value(); auto document = PDF::Document::create(file->bytes()); EXPECT(!document.is_error()); + EXPECT(!document.value()->initialize().is_error()); EXPECT_EQ(document.value()->get_page_count(), 1U); } @@ -24,6 +25,7 @@ TEST_CASE(non_linearized_pdf) auto file = Core::MappedFile::map("non-linearized.pdf").release_value(); auto document = PDF::Document::create(file->bytes()); EXPECT(!document.is_error()); + EXPECT(!document.value()->initialize().is_error()); EXPECT_EQ(document.value()->get_page_count(), 1U); } @@ -32,6 +34,7 @@ TEST_CASE(complex_pdf) auto file = Core::MappedFile::map("complex.pdf").release_value(); auto document = PDF::Document::create(file->bytes()); EXPECT(!document.is_error()); + EXPECT(!document.value()->initialize().is_error()); EXPECT_EQ(document.value()->get_page_count(), 3U); } |