diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-01 13:12:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-01 13:14:09 +0000 |
commit | c2913591d895666c7b8019e3307355511a7a5f95 (patch) | |
tree | f782e6cee3de6fba62e8c3b62d88fd52d85c227c /hwpfilter/qa | |
parent | XubString->OUString (diff) | |
download | core-c2913591d895666c7b8019e3307355511a7a5f95.tar.gz core-c2913591d895666c7b8019e3307355511a7a5f95.zip |
rework filters test to squeeze through extra flags
that are needed to load .odt, .sxw etc files, and
add a regression test for CVE-2012-4233
Change-Id: Ie178725ded3d76942030d12f23074de519cf62de
Diffstat (limited to 'hwpfilter/qa')
-rw-r--r-- | hwpfilter/qa/cppunit/test_hwpfilter.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hwpfilter/qa/cppunit/test_hwpfilter.cxx b/hwpfilter/qa/cppunit/test_hwpfilter.cxx index 18b6ebf91783..88a09a0d6671 100644 --- a/hwpfilter/qa/cppunit/test_hwpfilter.cxx +++ b/hwpfilter/qa/cppunit/test_hwpfilter.cxx @@ -45,7 +45,11 @@ namespace { public: virtual void setUp(); - virtual bool load(const rtl::OUString &, const rtl::OUString &rURL, const rtl::OUString &); + + virtual bool load(const rtl::OUString &, + const rtl::OUString &rURL, const rtl::OUString &, + unsigned int, unsigned int, unsigned int); + void test(); CPPUNIT_TEST_SUITE(HwpFilterTest); @@ -66,7 +70,8 @@ namespace } bool HwpFilterTest::load(const rtl::OUString &, - const rtl::OUString &rURL, const rtl::OUString &) + const rtl::OUString &rURL, const rtl::OUString &, + unsigned int, unsigned int, unsigned int) { uno::Sequence< beans::PropertyValue > aDescriptor(1); aDescriptor[0].Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL")); |