xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf |binary xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 8 ++++++++ 2 files changed, 8 insertions(+)
New commits: commit 568e0394868114457c9dbf7cc1af5bc863ae2a4d Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Wed Nov 30 12:15:12 2016 +0100 CppunitTest_xmlsecurity_pdfsigning: add first PAdES test As a start just make sure we accept "ETSI.CAdES.detached" as a valid SubFilter value. Change-Id: I19f480a5a24df0f451261d6d9a0dd9bd72ff6cc1 Reviewed-on: https://gerrit.libreoffice.org/31414 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf b/xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf new file mode 100644 index 0000000..987169e Binary files /dev/null and b/xmlsecurity/qa/unit/pdfsigning/data/good-pades.pdf differ diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index 4d0ce52..dbe3319 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits