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 <com/sun/star/document/XFilter.hpp>
14 #include <comphelper/propertyvalue.hxx>
15 #include <osl/file.hxx>
16 #include <osl/process.h>
17 #include <osl/thread.h>
19 using namespace ::com::sun::star
;
24 : public test::FiltersTest
25 , public test::BootstrapFixture
29 virtual bool load(const OUString
&,
30 const OUString
&rURL
, const OUString
&,
31 SfxFilterFlags
, SotClipboardFormatId
, unsigned int) override
;
35 CPPUNIT_TEST_SUITE(HwpFilterTest
);
37 CPPUNIT_TEST_SUITE_END();
40 bool HwpFilterTest::load(const OUString
&,
41 const OUString
&rURL
, const OUString
&,
42 SfxFilterFlags
, SotClipboardFormatId
, unsigned int)
44 uno::Reference
<document::XFilter
> xFilter(m_xSFactory
->createInstance(u
"com.sun.comp.hwpimport.HwpImportFilter"_ustr
),
45 uno::UNO_QUERY_THROW
);
47 return xFilter
->filter({ comphelper::makePropertyValue(u
"URL"_ustr
, rURL
) });
50 void HwpFilterTest::test()
53 m_directories
.getURLFromSrc(u
"/hwpfilter/qa/cppunit/data/"));
56 CPPUNIT_TEST_SUITE_REGISTRATION(HwpFilterTest
);
59 CPPUNIT_PLUGIN_IMPLEMENT();
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */