1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include <unotest/filters-test.hxx>
11 #include <test/bootstrapfixture.hxx>
12 #include <vcl/FilterConfigItem.hxx>
13 #include <tools/stream.hxx>
14 #include <vcl/graph.hxx>
18 SAL_DLLPUBLIC_EXPORT
bool SAL_CALL
19 iraGraphicImport(SvStream
& rStream
, Graphic
& rGraphic
,
23 using namespace ::com::sun::star
;
25 /* Implementation of Filters test */
28 : public test::FiltersTest
29 , public test::BootstrapFixture
32 RasFilterTest() : BootstrapFixture(true, false) {}
34 virtual bool load(const OUString
&,
35 const OUString
&rURL
, const OUString
&,
36 SfxFilterFlags
, SotClipboardFormatId
, unsigned int) override
;
39 * Ensure CVEs remain unbroken
43 CPPUNIT_TEST_SUITE(RasFilterTest
);
44 CPPUNIT_TEST(testCVEs
);
45 CPPUNIT_TEST_SUITE_END();
48 bool RasFilterTest::load(const OUString
&,
49 const OUString
&rURL
, const OUString
&,
50 SfxFilterFlags
, SotClipboardFormatId
, unsigned int)
52 SvFileStream
aFileStream(rURL
, StreamMode::READ
);
54 return iraGraphicImport(aFileStream
, aGraphic
, nullptr);
57 void RasFilterTest::testCVEs()
60 m_directories
.getURLFromSrc("/filter/qa/cppunit/data/ras/"));
63 CPPUNIT_TEST_SUITE_REGISTRATION(RasFilterTest
);
65 CPPUNIT_PLUGIN_IMPLEMENT();
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */