[Libreoffice-commits] .: test/inc
test/inc/test/beans/xpropertyset.hxx |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit f941184568634e578ce0421908b9000a20eab54a Author: Stephan Bergmann sberg...@redhat.com Date: Sat May 12 16:37:50 2012 +0200 Explicitly export nested struct (needed on Mac OS X) Change-Id: I59b385ce27640845413247d2e117b787f9d8b339 diff --git a/test/inc/test/beans/xpropertyset.hxx b/test/inc/test/beans/xpropertyset.hxx index c69024c..03839ea 100644 --- a/test/inc/test/beans/xpropertyset.hxx +++ b/test/inc/test/beans/xpropertyset.hxx @@ -64,7 +64,7 @@ private: static bool getSinglePropertyValue( const uno::Referencebeans::XPropertySet xPropSet, const rtl::OUString rName); -struct PropsToTest +struct OOO_DLLPUBLIC_TEST PropsToTest { std::vectorrtl::OUString constrained; std::vectorrtl::OUString bound; ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: test/inc test/Library_subsequenttest.mk test/Package_inc.mk test/source
test/Library_subsequenttest.mk|1 test/Package_inc.mk |1 test/inc/test/text/xtextfield.hxx | 48 test/source/text/xtextfield.cxx | 50 ++ 4 files changed, 100 insertions(+) New commits: commit a3b8ddf3b7519b9112fdc7ba05b44209113be47b Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Thu Apr 26 15:30:21 2012 +0200 add test case for xtextfield diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk index 7d865f8..26bbeb5 100644 --- a/test/Library_subsequenttest.mk +++ b/test/Library_subsequenttest.mk @@ -82,6 +82,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ test/source/sheet/xprintareas \ test/source/sheet/xspreadsheetdocument \ test/source/sheet/xspreadsheets2 \ +test/source/text/xtextfield \ test/source/util/xreplaceable \ test/source/util/xsearchable \ )) diff --git a/test/Package_inc.mk b/test/Package_inc.mk index 160d7b0..c44a695 100644 --- a/test/Package_inc.mk +++ b/test/Package_inc.mk @@ -49,6 +49,7 @@ $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/datapilotfield.hxx,tes $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xprintareas.hxx,test/sheet/xprintareas.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xspreadsheetdocument.hxx,test/sheet/xspreadsheetdocument.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xspreadsheets2.hxx,test/sheet/xspreadsheets2.hxx)) +$(eval $(call gb_Package_add_file,test_inc,inc/test/text/xtextfield.hxx,test/text/xtextfield.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/util/xreplaceable.hxx,test/util/xreplaceable.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/util/xsearchable.hxx,test/util/xsearchable.hxx)) diff --git a/test/inc/test/text/xtextfield.hxx b/test/inc/test/text/xtextfield.hxx new file mode 100644 index 000..9798ecc --- /dev/null +++ b/test/inc/test/text/xtextfield.hxx @@ -0,0 +1,48 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Markus Mohrhard markus.mohrh...@googlemail.com (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the GPLv3+), or + * the GNU Lesser General Public License Version 3 or later (the LGPLv3+), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include com/sun/star/uno/Reference.hxx + +using namespace com::sun::star; + +namespace apitest +{ + +class XTextField +{ +public: +virtual ~XTextField() {} + +virtual uno::Reference uno::XInterface init() = 0; + +void testGetPresentation(); +}; + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/test/source/text/xtextfield.cxx b/test/source/text/xtextfield.cxx new file mode 100644 index 000..f13080a --- /dev/null +++ b/test/source/text/xtextfield.cxx @@ -0,0 +1,50 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Markus Mohrhard markus.mohrh...@googlemail.com (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the GPLv3+), or + * the GNU Lesser General Public License Version 3 or later (the LGPLv3+), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + + +#include
[Libreoffice-commits] .: test/inc test/Library_subsequenttest.mk test/Package_inc.mk test/source
test/Library_subsequenttest.mk |1 test/Package_inc.mk |1 test/inc/test/text/xtextcontent.hxx | 55 + test/source/text/xtextcontent.cxx | 78 4 files changed, 135 insertions(+) New commits: commit 1a56bf9536c28ff277a6f60f358f528d0b9da025 Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Thu Apr 26 16:22:03 2012 +0200 add test for XTextContent diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk index 26bbeb5..a7c5e41 100644 --- a/test/Library_subsequenttest.mk +++ b/test/Library_subsequenttest.mk @@ -83,6 +83,7 @@ $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ test/source/sheet/xspreadsheetdocument \ test/source/sheet/xspreadsheets2 \ test/source/text/xtextfield \ +test/source/text/xtextcontent \ test/source/util/xreplaceable \ test/source/util/xsearchable \ )) diff --git a/test/Package_inc.mk b/test/Package_inc.mk index c44a695..1bf7861 100644 --- a/test/Package_inc.mk +++ b/test/Package_inc.mk @@ -50,6 +50,7 @@ $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xprintareas.hxx,test/s $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xspreadsheetdocument.hxx,test/sheet/xspreadsheetdocument.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xspreadsheets2.hxx,test/sheet/xspreadsheets2.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/text/xtextfield.hxx,test/text/xtextfield.hxx)) +$(eval $(call gb_Package_add_file,test_inc,inc/test/text/xtextcontent.hxx,test/text/xtextcontent.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/util/xreplaceable.hxx,test/util/xreplaceable.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/util/xsearchable.hxx,test/util/xsearchable.hxx)) diff --git a/test/inc/test/text/xtextcontent.hxx b/test/inc/test/text/xtextcontent.hxx new file mode 100644 index 000..6009849 --- /dev/null +++ b/test/inc/test/text/xtextcontent.hxx @@ -0,0 +1,55 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Markus Mohrhard markus.mohrh...@googlemail.com (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the GPLv3+), or + * the GNU Lesser General Public License Version 3 or later (the LGPLv3+), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include com/sun/star/uno/Reference.hxx +#include com/sun/star/text/XTextRange.hpp +#include com/sun/star/text/XTextContent.hpp + +using namespace com::sun::star; + +namespace apitest { + +class XTextContent +{ +public: +virtual ~XTextContent() {} + +virtual uno::Reference uno::XInterface init() = 0; +virtual uno::Reference text::XTextRange getTextRange() = 0; +virtual uno::Reference text::XTextContent getTextContent() = 0; +virtual bool isAttachSupported() = 0; + +void testGetAnchor(); +void testAttach(); + + +}; + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/test/source/text/xtextcontent.cxx b/test/source/text/xtextcontent.cxx new file mode 100644 index 000..c6662e7 --- /dev/null +++ b/test/source/text/xtextcontent.cxx @@ -0,0 +1,78 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Markus Mohrhard markus.mohrh...@googlemail.com (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under
[Libreoffice-commits] .: test/inc
test/inc/test/container/xelementaccess.hxx |2 ++ test/inc/test/container/xnamecontainer.hxx |2 ++ test/inc/test/container/xnamereplace.hxx |2 ++ 3 files changed, 6 insertions(+) New commits: commit 976cc2360d4e2c2060cbc82714017f3179f50a5c Author: Tor Lillqvist tlillqv...@suse.com Date: Mon Feb 13 12:24:22 2012 +0200 WaE: class has virtual functions, but destructor is not virtual diff --git a/test/inc/test/container/xelementaccess.hxx b/test/inc/test/container/xelementaccess.hxx index a9b897e..6ec106a 100644 --- a/test/inc/test/container/xelementaccess.hxx +++ b/test/inc/test/container/xelementaccess.hxx @@ -43,6 +43,8 @@ public: virtual uno::Reference uno::XInterface init() = 0; +virtual ~XElementAccess() {} + private: uno::Type maType; }; diff --git a/test/inc/test/container/xnamecontainer.hxx b/test/inc/test/container/xnamecontainer.hxx index 6f296d7..152edca 100644 --- a/test/inc/test/container/xnamecontainer.hxx +++ b/test/inc/test/container/xnamecontainer.hxx @@ -46,6 +46,8 @@ public: void testRemoveByName(); +virtual ~XNameContainer() {} + private: rtl::OUString maNameToRemove; }; diff --git a/test/inc/test/container/xnamereplace.hxx b/test/inc/test/container/xnamereplace.hxx index e91d5a7..71000c7 100644 --- a/test/inc/test/container/xnamereplace.hxx +++ b/test/inc/test/container/xnamereplace.hxx @@ -46,6 +46,8 @@ public: virtual uno::Any getAnyElementForNameReplace() = 0; +virtual ~XNameReplace() {} + private: rtl::OUString maName; ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: test/inc test/source
test/inc/test/sheet/xdatapilotdescriptor.hxx |2 -- test/source/sheet/xdatapilotdescriptor.cxx |2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) New commits: commit 2525c93e08f9b6256c298171a792add6b7fa0c29 Author: Stephan Bergmann sberg...@redhat.com Date: Tue Jan 31 08:39:07 2012 +0100 Move definition of static data member to .cxx diff --git a/test/inc/test/sheet/xdatapilotdescriptor.hxx b/test/inc/test/sheet/xdatapilotdescriptor.hxx index 9eca14c..eb5b8c1 100644 --- a/test/inc/test/sheet/xdatapilotdescriptor.hxx +++ b/test/inc/test/sheet/xdatapilotdescriptor.hxx @@ -60,8 +60,6 @@ private: static std::vectorrtl::OUString maFieldNames; }; -std::vector rtl::OUString XDataPilotDescriptor::maFieldNames; - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/test/source/sheet/xdatapilotdescriptor.cxx b/test/source/sheet/xdatapilotdescriptor.cxx index aa39416..eaddff5 100644 --- a/test/source/sheet/xdatapilotdescriptor.cxx +++ b/test/source/sheet/xdatapilotdescriptor.cxx @@ -41,6 +41,8 @@ using namespace com::sun::star::uno; namespace apitest { +std::vector rtl::OUString XDataPilotDescriptor::maFieldNames; + void XDataPilotDescriptor::testTag() { rtl::OUString aTag(RTL_CONSTASCII_USTRINGPARAM(DataPilotDescriptor_Tag)); ___ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] .: test/inc test/Library_subsequenttest.mk test/Package_inc.mk test/source
test/Library_subsequenttest.mk |2 test/Package_inc.mk|2 test/inc/test/container/xelementaccess.hxx | 52 +++ test/inc/test/container/xindexaccess.hxx | 53 test/source/container/xelementaccess.cxx | 51 +++ test/source/container/xindexaccess.cxx | 76 + 6 files changed, 236 insertions(+) New commits: commit 6c0a26274629ae4f83105aa5f038d21b5c8ca7d0 Author: Markus Mohrhard markus.mohrh...@googlemail.com Date: Mon Jan 23 22:28:27 2012 +0100 add new interface tests for some common data structures diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk index 649fa1e..d1c383d 100644 --- a/test/Library_subsequenttest.mk +++ b/test/Library_subsequenttest.mk @@ -67,6 +67,8 @@ $(eval $(call gb_Library_use_external,subsequenttest,cppunit)) $(eval $(call gb_Library_add_exception_objects,subsequenttest,\ test/source/unoapi_test \ +test/source/container/xelementaccess \ +test/source/container/xindexaccess \ test/source/container/xnamecontainer \ test/source/sheet/cellproperties \ test/source/sheet/datapilotfield \ diff --git a/test/Package_inc.mk b/test/Package_inc.mk index aeb82f1..666a52b 100644 --- a/test/Package_inc.mk +++ b/test/Package_inc.mk @@ -34,6 +34,8 @@ $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xcellrangesquery.hxx,t $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xnamedranges.hxx,test/sheet/xnamedranges.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xnamedrange.hxx,test/sheet/xnamedrange.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xdatabaserange.hxx,test/sheet/xdatabaserange.hxx)) +$(eval $(call gb_Package_add_file,test_inc,inc/test/container/xelementaccess.hxx,test/container/xelementaccess.hxx)) +$(eval $(call gb_Package_add_file,test_inc,inc/test/container/xindexaccess.hxx,test/container/xindexaccess.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/container/xnamecontainer.hxx,test/container/xnamecontainer.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/cellproperties.hxx,test/sheet/cellproperties.hxx)) $(eval $(call gb_Package_add_file,test_inc,inc/test/sheet/xdatapilottable.hxx,test/sheet/xdatapilottable.hxx)) diff --git a/test/inc/test/container/xelementaccess.hxx b/test/inc/test/container/xelementaccess.hxx new file mode 100644 index 000..a9b897e --- /dev/null +++ b/test/inc/test/container/xelementaccess.hxx @@ -0,0 +1,52 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Markus Mohrhard markus.mohrh...@googlemail.com (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the GPLv3+), or + * the GNU Lesser General Public License Version 3 or later (the LGPLv3+), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include com/sun/star/uno/Type.hxx +#include com/sun/star/uno/Reference.hxx + +using namespace com::sun::star; + +namespace apitest { + +class XElementAccess +{ +public: +XElementAccess(uno::Type rType): maType(rType) {} + +void testGetElementType(); +void testHasElements(); + +virtual uno::Reference uno::XInterface init() = 0; + +private: +uno::Type maType; +}; + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/test/inc/test/container/xindexaccess.hxx b/test/inc/test/container/xindexaccess.hxx new file mode 100644 index 000..bd09a8f --- /dev/null +++ b/test/inc/test/container/xindexaccess.hxx @@ -0,0 +1,53 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express
[Libreoffice-commits] .: test/inc test/source
test/inc/test/filters-test.hxx | 78 test/source/filters-test.cxx | 129 + 2 files changed, 207 insertions(+) New commits: commit bebf836275b749ddfa80ddb5c84b54379120f662 Author: Caolán McNamara caol...@redhat.com Date: Fri Sep 30 13:02:01 2011 +0100 new files diff --git a/test/inc/test/filters-test.hxx b/test/inc/test/filters-test.hxx new file mode 100644 index 000..721f442 --- /dev/null +++ b/test/inc/test/filters-test.hxx @@ -0,0 +1,78 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Initial Developer of the Original Code is + * Caolán McNamara caol...@redhat.com + * Portions created by the Initial Developer are Copyright (C) 2011 the + * Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Caolán McNamara caol...@redhat.com + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the GPLv3+), or + * the GNU Lesser General Public License Version 3 or later (the LGPLv3+), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include rtl/ustring.hxx +#include test/bootstrapfixture.hxx +#include test/testdllapi.hxx + +namespace test { + +enum filterStatus +{ +fail = 0, +pass = 1, +indeterminate = 2 +}; + +/* Implementation of Filters test */ + +class OOO_DLLPUBLIC_TEST FiltersTest : public test::BootstrapFixture +{ +public: +FiltersTest(bool bAssertOnDialog = true, bool bNeedUCB = true) +: BootstrapFixture(bAssertOnDialog, bNeedUCB) +{} + +virtual void setUp() {} +virtual void tearDown() {} + +void testDir( +//filter name +const rtl::OUString rFilter, +//root dir of test files, must contain pass, fail, indeterminate +const rtl::OUString rURL, +//additional filter data for SfxFilter +const rtl::OUString rUserData); + +virtual bool load( +const rtl::OUString rFilter, +const rtl::OUString rURL, +const rtl::OUString rUserData) = 0; + +protected: +void recursiveScan( +const rtl::OUString rFilter, +const rtl::OUString rURL, +const rtl::OUString rUserData, +filterStatus nExpected); +}; + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/test/source/filters-test.cxx b/test/source/filters-test.cxx new file mode 100644 index 000..d274320 --- /dev/null +++ b/test/source/filters-test.cxx @@ -0,0 +1,129 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the License); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an AS IS basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Initial Developer of the Original Code is + * Caolán McNamara caol...@redhat.com + * Portions created by the Initial Developer are Copyright (C) 2011 the + * Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Caolán McNamara caol...@redhat.com + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the GPLv3+), or + * the GNU Lesser General Public License Version 3 or later (the LGPLv3+), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include test/filters-test.hxx +#include osl/file.hxx +#include osl/thread.h + +using namespace ::com::sun::star; + +namespace test { + +bool decode(const rtl::OUString rIn, const rtl::OUString rOut) +{ +rtlCipher cipher = rtl_cipher_create(rtl_Cipher_AlgorithmARCFOUR, rtl_Cipher_ModeStream); +CPPUNIT_ASSERT_MESSAGE(cipher creation failed, cipher = 0); +rtl_cipher_destroy(cipher); +} + +void FiltersTest::recursiveScan(const rtl::OUString rFilter, const rtl::OUString rURL, const rtl::OUString rUserData, +filterStatus nExpected) +{ +osl::Directory aDir(rURL); + +