summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-04-02 00:22:31 +0000
committerJens Carl <j.carl43@gmx.de>2019-04-02 06:43:37 +0200
commit33e264832001286eae1f55a3382b704bbb1a7ac6 (patch)
tree5a51cbb0c4de02d2f1b91eb538be0d913194c972
parenta790aafde5aad4b3bd366f487e793268351c5636 (diff)
Add XServiceInfo tests to ScAutoFormatObj
include/test/sheet/xenhancedmouseclickbroadcaster.hxx Change-Id: I614756e19d25c692093de47d364af4b0e521cf31 Reviewed-on: https://gerrit.libreoffice.org/70098 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--sc/qa/extras/scautoformatobj.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx
index cc48c036ce81..76db8c6a3592 100644
--- a/sc/qa/extras/scautoformatobj.cxx
+++ b/sc/qa/extras/scautoformatobj.cxx
@@ -13,6 +13,7 @@
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnamed.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/tableautoformat.hxx>
#include <cppu/unotype.hxx>
@@ -35,7 +36,8 @@ class ScAutoFormatObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
public apitest::XNamed,
- public apitest::XPropertySet
+ public apitest::XPropertySet,
+ public apitest::XServiceInfo
{
public:
ScAutoFormatObj();
@@ -71,6 +73,11 @@ public:
CPPUNIT_TEST(testPropertyChangeListener);
CPPUNIT_TEST(testVetoableChangeListener);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -82,6 +89,7 @@ ScAutoFormatObj::ScAutoFormatObj()
, XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
, XIndexAccess(16)
, XNamed("Default")
+ , XServiceInfo("ScAutoFormatObj", "com.sun.star.sheet.TableAutoFormat")
{
}