xmlsecurity/qa/unit/signing/signing.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 1d6438252f6bdfc2814d13c2022b06c97b118c30
Author: Tor Lillqvist <t...@collabora.com>
Date:   Fri Nov 18 19:06:29 2016 +0200

    The PDF tests require HAVE_FEATURE_PDFIMPORT
    
    Change-Id: Iac3d2206388fde23d2f3d7a05b23978851cf2800

diff --git a/xmlsecurity/qa/unit/signing/signing.cxx 
b/xmlsecurity/qa/unit/signing/signing.cxx
index e14b3a7..51e5366 100644
--- a/xmlsecurity/qa/unit/signing/signing.cxx
+++ b/xmlsecurity/qa/unit/signing/signing.cxx
@@ -7,6 +7,8 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#include <config_features.h>
+
 #include <sal/config.h>
 
 #include <type_traits>
@@ -76,12 +78,14 @@ public:
     void testOOXMLRemove();
     /// Test removing all signatures from a document.
     void testOOXMLRemoveAll();
+#if HAVE_FEATURE_PDFIMPORT
     /// Test a typical PDF where the signature is good.
     void testPDFGood();
     /// Test a typical PDF where the signature is bad.
     void testPDFBad();
     /// Test a typical PDF which is not signed.
     void testPDFNo();
+#endif
     void test96097Calc();
     void test96097Doc();
 
@@ -96,9 +100,11 @@ public:
     CPPUNIT_TEST(testOOXMLAppend);
     CPPUNIT_TEST(testOOXMLRemove);
     CPPUNIT_TEST(testOOXMLRemoveAll);
+#if HAVE_FEATURE_PDFIMPORT
     CPPUNIT_TEST(testPDFGood);
     CPPUNIT_TEST(testPDFBad);
     CPPUNIT_TEST(testPDFNo);
+#endif
     CPPUNIT_TEST(test96097Calc);
     CPPUNIT_TEST(test96097Doc);
     CPPUNIT_TEST_SUITE_END();
@@ -399,6 +405,8 @@ void SigningTest::testOOXMLBroken()
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(SignatureState::BROKEN), 
static_cast<int>(pObjectShell->GetDocumentSignatureState()));
 }
 
+#if HAVE_FEATURE_PDFIMPORT
+
 void SigningTest::testPDFGood()
 {
     createDoc(m_directories.getURLFromSrc(DATA_DIRECTORY) + "good.pdf");
@@ -436,6 +444,8 @@ void SigningTest::testPDFNo()
     CPPUNIT_ASSERT_EQUAL(static_cast<int>(SignatureState::NOSIGNATURES), 
static_cast<int>(pObjectShell->GetDocumentSignatureState()));
 }
 
+#endif
+
 void SigningTest::test96097Calc()
 {
     createCalc(m_directories.getURLFromSrc(DATA_DIRECTORY) + "tdf96097.ods");
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to