diff options
Diffstat (limited to 'xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx')
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index 469ded6978c6..2f7ef572c581 100644 --- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx +++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx @@ -57,6 +57,8 @@ public: void testPDFRemoveAll(); /// Test a PDF 1.4 document, signed by Adobe. void testPDF14Adobe(); + /// Test a PDF 1.6 document, signed by Adobe. + void testPDF16Adobe(); CPPUNIT_TEST_SUITE(PDFSigningTest); CPPUNIT_TEST(testPDFAdd); @@ -64,6 +66,7 @@ public: CPPUNIT_TEST(testPDFRemove); CPPUNIT_TEST(testPDFRemoveAll); CPPUNIT_TEST(testPDF14Adobe); + CPPUNIT_TEST(testPDF16Adobe); CPPUNIT_TEST_SUITE_END(); }; @@ -254,6 +257,17 @@ void PDFSigningTest::testPDF14Adobe() #endif } +void PDFSigningTest::testPDF16Adobe() +{ +#ifndef _WIN32 + // Contains a cross-reference stream, object streams and a compressed + // stream with a predictor. And a valid signature. + // Found signatures was 0, as parsing failed due to lack of support for + // these features. + verify(m_directories.getURLFromSrc(DATA_DIRECTORY) + "pdf16adobe.pdf", 1); +#endif +} + CPPUNIT_TEST_SUITE_REGISTRATION(PDFSigningTest); CPPUNIT_PLUGIN_IMPLEMENT(); |