summaryrefslogtreecommitdiff
path: root/filter/qa
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-02-15 10:23:27 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-02-17 05:54:36 +0100
commit68012eaaab9968f6ccfdfc018bcc5befa36a7a2f (patch)
tree4e8bb8efdcca069906f0d1c9d87cc8cc2daf6d8b /filter/qa
parentd338dc277d7dbe381d669728e30a1c2606a4814a (diff)
Move PCD reader from filter module into VCL
Change-Id: Icd23d1343f5231c09dd8197943ca472f4b573bfc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111018 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'filter/qa')
-rw-r--r--filter/qa/cppunit/data/pcd/fail/.gitignore0
-rw-r--r--filter/qa/cppunit/data/pcd/indeterminate/.gitignore1
-rw-r--r--filter/qa/cppunit/data/pcd/pass/.gitignore0
-rw-r--r--filter/qa/cppunit/data/pcd/pass/blank-square.pcdbin788480 -> 0 bytes
-rw-r--r--filter/qa/cppunit/filters-pcd-test.cxx67
5 files changed, 0 insertions, 68 deletions
diff --git a/filter/qa/cppunit/data/pcd/fail/.gitignore b/filter/qa/cppunit/data/pcd/fail/.gitignore
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/filter/qa/cppunit/data/pcd/fail/.gitignore
+++ /dev/null
diff --git a/filter/qa/cppunit/data/pcd/indeterminate/.gitignore b/filter/qa/cppunit/data/pcd/indeterminate/.gitignore
deleted file mode 100644
index 23ad7d155635..000000000000
--- a/filter/qa/cppunit/data/pcd/indeterminate/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pcd-*
diff --git a/filter/qa/cppunit/data/pcd/pass/.gitignore b/filter/qa/cppunit/data/pcd/pass/.gitignore
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/filter/qa/cppunit/data/pcd/pass/.gitignore
+++ /dev/null
diff --git a/filter/qa/cppunit/data/pcd/pass/blank-square.pcd b/filter/qa/cppunit/data/pcd/pass/blank-square.pcd
deleted file mode 100644
index a626b5f2309b..000000000000
--- a/filter/qa/cppunit/data/pcd/pass/blank-square.pcd
+++ /dev/null
Binary files differ
diff --git a/filter/qa/cppunit/filters-pcd-test.cxx b/filter/qa/cppunit/filters-pcd-test.cxx
deleted file mode 100644
index dc32e33469e7..000000000000
--- a/filter/qa/cppunit/filters-pcd-test.cxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#include <unotest/filters-test.hxx>
-#include <test/bootstrapfixture.hxx>
-#include <vcl/FilterConfigItem.hxx>
-#include <tools/stream.hxx>
-#include <vcl/graph.hxx>
-
-extern "C"
-{
- SAL_DLLPUBLIC_EXPORT bool SAL_CALL
- icdGraphicImport(SvStream & rStream, Graphic & rGraphic,
- FilterConfigItem*);
-}
-
-using namespace ::com::sun::star;
-
-/* Implementation of Filters test */
-
-class PcdFilterTest
- : public test::FiltersTest
- , public test::BootstrapFixture
-{
-public:
- PcdFilterTest() : BootstrapFixture(true, false) {}
-
- virtual bool load(const OUString &,
- const OUString &rURL, const OUString &,
- SfxFilterFlags, SotClipboardFormatId, unsigned int) override;
-
- /**
- * Ensure CVEs remain unbroken
- */
- void testCVEs();
-
- CPPUNIT_TEST_SUITE(PcdFilterTest);
- CPPUNIT_TEST(testCVEs);
- CPPUNIT_TEST_SUITE_END();
-};
-
-bool PcdFilterTest::load(const OUString &,
- const OUString &rURL, const OUString &,
- SfxFilterFlags, SotClipboardFormatId, unsigned int)
-{
- SvFileStream aFileStream(rURL, StreamMode::READ);
- Graphic aGraphic;
- return icdGraphicImport(aFileStream, aGraphic, nullptr);
-}
-
-void PcdFilterTest::testCVEs()
-{
- testDir(OUString(),
- m_directories.getURLFromSrc(u"/filter/qa/cppunit/data/pcd/"));
-}
-
-CPPUNIT_TEST_SUITE_REGISTRATION(PcdFilterTest);
-
-CPPUNIT_PLUGIN_IMPLEMENT();
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */