summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-11-18 19:06:29 +0200
committerTor Lillqvist <tml@collabora.com>2016-11-18 19:08:52 +0200
commit1d6438252f6bdfc2814d13c2022b06c97b118c30 (patch)
treef52379befeaddb0366954ba9f5cb34c49f4b0473 /xmlsecurity
parent66da98c931e28ed910bac5b45b6d0a794196b6f0 (diff)
The PDF tests require HAVE_FEATURE_PDFIMPORT
Change-Id: Iac3d2206388fde23d2f3d7a05b23978851cf2800
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/qa/unit/signing/signing.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmlsecurity/qa/unit/signing/signing.cxx b/xmlsecurity/qa/unit/signing/signing.cxx
index e14b3a754219..51e536614ad6 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");