summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-01-13 20:26:44 +0000
committerJens Carl <j.carl43@gmx.de>2019-01-14 05:20:39 +0100
commit74db00dc36cec6390329e44636deda7f43e2891a (patch)
tree44f1a516ea5fb8e12cc8612f3b9cf69e50953321 /sc
parentc73cc08f0a4af4578e1d061d042f2c11ce0b51ae (diff)
Add XServiceInfo tests to ScDataPilotTablesObj
Change-Id: Ic7a786d63b17760c2b18fd60bb3e2e01947522ae Reviewed-on: https://gerrit.libreoffice.org/66274 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/scdatapilottablesobj.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatapilottablesobj.cxx b/sc/qa/extras/scdatapilottablesobj.cxx
index 9713fbd3177d..3aed492b7e06 100644
--- a/sc/qa/extras/scdatapilottablesobj.cxx
+++ b/sc/qa/extras/scdatapilottablesobj.cxx
@@ -12,6 +12,7 @@
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/xdatapilottables.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -42,7 +43,8 @@ class ScDataPilotTablesObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
- public apitest::XNameAccess
+ public apitest::XNameAccess,
+ public apitest::XServiceInfo
{
public:
ScDataPilotTablesObj();
@@ -73,6 +75,11 @@ public:
CPPUNIT_TEST(testGetElementNames);
CPPUNIT_TEST(testHasByName);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -84,6 +91,7 @@ ScDataPilotTablesObj::ScDataPilotTablesObj()
, XElementAccess(cppu::UnoType<sheet::XDataPilotTable2>::get())
, XIndexAccess(1)
, XNameAccess("DataPilotTable")
+ , XServiceInfo("ScDataPilotTablesObj", "com.sun.star.sheet.DataPilotTables")
{
}