diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-03-29 06:24:58 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-03-30 22:37:21 +0200 |
commit | 940f90f3da170b62379e9d1d33d4e6d690997026 (patch) | |
tree | 4d2c8162b511bc0e08c1e23f41d48cfe6c765f96 /test/inc | |
parent | b16eb0d91f204823339a78b353dc8097aa8f7e56 (diff) |
Add UNO API property tester for common read-only properties.
Add UNO API property tester for read-only properties 'double', 'long',
'short' and 'string'.
Change-Id: I7177e133972058b0272a3cf8493521fbfbcade32
Reviewed-on: https://gerrit.libreoffice.org/52142
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'test/inc')
-rw-r--r-- | test/inc/unoapi_property_testers.hxx | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/test/inc/unoapi_property_testers.hxx b/test/inc/unoapi_property_testers.hxx index 43e0f506c18f..616ab3bc0cb5 100644 --- a/test/inc/unoapi_property_testers.hxx +++ b/test/inc/unoapi_property_testers.hxx @@ -44,6 +44,16 @@ void OOO_DLLPUBLIC_TEST testDoubleProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name, const double& dValue = 42.0); +/** @brief Tester for read-only property type 'double' 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 +testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, + const OUString& name, const double& dValue = 42.0); + /** @brief Tester for property type 'long' of a @see com::sun::star::beans::XPropertySet. * * @param xPropertySet The property set, which contains the property to test against. @@ -54,6 +64,16 @@ void OOO_DLLPUBLIC_TEST testLongProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name, const sal_Int32& nValue = 42); +/** @brief Tester for read-only 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 +testLongReadonlyProperty(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. @@ -64,6 +84,16 @@ void OOO_DLLPUBLIC_TEST testShortProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name, const sal_Int16& nValue = 42); +/** @brief Tester for read-only 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 +testShortReadonlyProperty(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. @@ -73,7 +103,17 @@ testShortProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, c void OOO_DLLPUBLIC_TEST testStringProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name, const OUString& rValue); -} + +/** @brief Tester for read-only 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 +testStringReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, + const OUString& name, const OUString& rValue); +} // namespace apitest #endif // INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |