From dd0155967e0b679b7df3907fcb12e8cbd82cdefb Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Fri, 25 Jan 2019 00:41:35 +0000 Subject: tdf#45904 Move XPropertySet Java tests to C++ Move XPropertySet Java tests to C++ for ScTableValidationObj. Change-Id: If058f40ff73203d2705bf9841d0496d52ff93ed8 Reviewed-on: https://gerrit.libreoffice.org/66890 Tested-by: Jenkins Reviewed-by: Jens Carl --- include/test/beans/xpropertyset.hxx | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'include/test/beans') diff --git a/include/test/beans/xpropertyset.hxx b/include/test/beans/xpropertyset.hxx index 3b110a53db3c..72827aa6ee76 100644 --- a/include/test/beans/xpropertyset.hxx +++ b/include/test/beans/xpropertyset.hxx @@ -10,36 +10,46 @@ #ifndef INCLUDED_TEST_BEANS_XPROPERTYSET_HXX #define INCLUDED_TEST_BEANS_XPROPERTYSET_HXX -#include #include #include +#include + #include +#include #include -namespace apitest { - +namespace apitest +{ class OOO_DLLPUBLIC_TEST XPropertySet { public: - virtual ~XPropertySet(); + XPropertySet() {} + XPropertySet(const std::set rIgnoreValue) + : m_IgnoreValue(rIgnoreValue) + { + } virtual css::uno::Reference init() = 0; void testGetPropertySetInfo(); void testSetPropertyValue(); void testGetPropertyValue(); + void testPropertyChangeListner(); + void testVetoableChangeListner(); protected: + ~XPropertySet(){}; bool isPropertyValueChangeable(const OUString& rName); virtual bool isPropertyIgnored(const OUString& rName); private: void fillPropsToTest(const css::uno::Reference& xPropInfo); - static bool getSinglePropertyValue( - const css::uno::Reference& xPropSet, const OUString& rName); + static bool + getSinglePropertyValue(const css::uno::Reference& xPropSet, + const OUString& rName); struct OOO_DLLPUBLIC_TEST PropsToTest { @@ -54,9 +64,10 @@ private: }; PropsToTest maPropsToTest; + std::set m_IgnoreValue; }; -} +} // namespace apitest #endif -- cgit