summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2018-03-21 05:12:54 +0000
committerJens Carl <j.carl43@gmx.de>2018-03-21 17:01:01 +0100
commitfc3f43b6fe3df5e46ca869d5934d4c3333444881 (patch)
tree1557eb0fd1f05c2be565747ba65cf203bfa1c7b3 /test
parent655d7340536ed2847d1da873b141d8776f791d12 (diff)
Move UNO API property testers header file
Move the header file form the global include path include/test to the module-specific path test/inc. Change-Id: I72c1f3b420bc387f4f5b9ab75f30f0e8462c1b75 Reviewed-on: https://gerrit.libreoffice.org/51682 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'test')
-rw-r--r--test/Library_subsequenttest.mk5
-rw-r--r--test/Library_test.mk5
-rw-r--r--test/inc/unoapi_property_testers.hxx61
-rw-r--r--test/source/sheet/spreadsheet.cxx2
-rw-r--r--test/source/unoapi_property_testers.cxx2
5 files changed, 73 insertions, 2 deletions
diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk
index 1e8fdb134770..ce88ef80a817 100644
--- a/test/Library_subsequenttest.mk
+++ b/test/Library_subsequenttest.mk
@@ -9,6 +9,11 @@
$(eval $(call gb_Library_Library,subsequenttest))
+$(eval $(call gb_Library_set_include,subsequenttest,\
+ -I$(SRCDIR)/test/inc \
+ $$(INCLUDE) \
+))
+
$(eval $(call gb_Library_add_defs,subsequenttest,\
-DOOO_DLLIMPLEMENTATION_TEST \
))
diff --git a/test/Library_test.mk b/test/Library_test.mk
index 47d0ffbec381..553eb2a3f148 100644
--- a/test/Library_test.mk
+++ b/test/Library_test.mk
@@ -9,6 +9,11 @@
$(eval $(call gb_Library_Library,test))
+$(eval $(call gb_Library_set_include,test,\
+ -I$(SRCDIR)/test/inc \
+ $$(INCLUDE) \
+))
+
$(eval $(call gb_Library_add_defs,test,\
-DOOO_DLLIMPLEMENTATION_TEST \
))
diff --git a/test/inc/unoapi_property_testers.hxx b/test/inc/unoapi_property_testers.hxx
new file mode 100644
index 000000000000..1449df16b719
--- /dev/null
+++ b/test/inc/unoapi_property_testers.hxx
@@ -0,0 +1,61 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX
+#define INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX
+
+#include <com/sun/star/beans/XPropertySet.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+
+#include <sal/config.h>
+#include <test/testdllapi.hxx>
+
+namespace apitest
+{
+/** @brief Tester for test property type 'boolean' of a @see com::sun::star::beans::XPropertySet.
+ *
+ * @param xPropertySet The property set, which contains the property to test against.
+ * @param name Name of property to test.
+ */
+void OOO_DLLPUBLIC_TEST testBooleanProperty(
+ css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name);
+
+/** @brief Tester for test property type 'long' of a @see com::sun::star::beans::XPropertySet.
+ *
+ * @param xPropertySet The property set, which contains the property to test against.
+ * @param name Name of property to test.
+ * @param nValue Value to use when setting a new value.
+ */
+void OOO_DLLPUBLIC_TEST
+testLongProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name,
+ const sal_Int32& nValue = 42);
+
+/** @brief Tester for property type 'short' of a @see com::sun::star::beans::XPropertySet.
+ *
+ * @param xPropertySet The property set, which contains the property to test against.
+ * @param name Name of property to test.
+ * @param nValue Value to use when setting a new value.
+ */
+void OOO_DLLPUBLIC_TEST
+testShortProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name,
+ const sal_Int16& nValue = 42);
+
+/** @brief Tester for property type 'string' of a @see com::sun::star::beans::XPropertySet.
+ *
+ * @param xPropertySet The property set, which contains the property to test against.
+ * @param name Name of property to test.
+ * @param rValue Value to use when setting a new value.
+ */
+void OOO_DLLPUBLIC_TEST
+testStringProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
+ const OUString& name, const OUString& rValue);
+}
+#endif // INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/test/source/sheet/spreadsheet.cxx b/test/source/sheet/spreadsheet.cxx
index 6ff83c475e46..f63c3667deee 100644
--- a/test/source/sheet/spreadsheet.cxx
+++ b/test/source/sheet/spreadsheet.cxx
@@ -8,7 +8,7 @@
*/
#include <test/sheet/spreadsheet.hxx>
-#include <test/unoapi_property_testers.hxx>
+#include <unoapi_property_testers.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
diff --git a/test/source/unoapi_property_testers.cxx b/test/source/unoapi_property_testers.cxx
index 08fde5ebd5d0..756321a7e317 100644
--- a/test/source/unoapi_property_testers.cxx
+++ b/test/source/unoapi_property_testers.cxx
@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#include <test/unoapi_property_testers.hxx>
+#include <unoapi_property_testers.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/Any.hxx>