From c2913591d895666c7b8019e3307355511a7a5f95 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 1 Nov 2012 13:12:21 +0000 Subject: 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 --- hwpfilter/qa/cppunit/test_hwpfilter.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'hwpfilter/qa') 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")); -- cgit