diff options
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf | bin | 0 -> 58008 bytes | |||
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf b/xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf Binary files differnew file mode 100644 index 000000000000..987169eeee32 --- /dev/null +++ b/xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index 4d0ce52c3f7f..dbe33191782f 100644 --- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx +++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx @@ -62,6 +62,8 @@ public: void testPDF16Add(); /// Test a PDF 1.4 document, signed by LO on Windows. void testPDF14LOWin(); + /// Test a PAdES document, signed by LO on Linux. + void testPDFPAdESGood(); CPPUNIT_TEST_SUITE(PDFSigningTest); CPPUNIT_TEST(testPDFAdd); @@ -72,6 +74,7 @@ public: CPPUNIT_TEST(testPDF16Adobe); CPPUNIT_TEST(testPDF16Add); CPPUNIT_TEST(testPDF14LOWin); + CPPUNIT_TEST(testPDFPAdESGood); CPPUNIT_TEST_SUITE_END(); }; @@ -314,6 +317,11 @@ void PDFSigningTest::testPDF14LOWin() verify(m_directories.getURLFromSrc(DATA_DIRECTORY) + "pdf14lowin.pdf", 1, /*rExpectedSubFilter=*/OString()); } +void PDFSigningTest::testPDFPAdESGood() +{ + verify(m_directories.getURLFromSrc(DATA_DIRECTORY) + "good-pades.pdf", 1, "ETSI.CAdES.detached"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(PDFSigningTest); CPPUNIT_PLUGIN_IMPLEMENT(); |