summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-03-06 19:05:31 +0000
committerJens Carl <j.carl43@gmx.de>2019-03-06 21:13:53 +0100
commit36f9dafc79ccaa7406640cdadc9685bdee04e4ff (patch)
treed46f6e2ed60d458b6963551d0cfbe729c20ef36e
parent221ae913dbeac56ce5674ad4ac3ce3a8d3ba8ae8 (diff)
Add XServiceInfo tests to ScDataPilotFieldObj
Change-Id: I7de8902b6857782acb5d2b3566d5768481baab51 Reviewed-on: https://gerrit.libreoffice.org/68824 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r--sc/qa/extras/scdatapilotfieldobj.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatapilotfieldobj.cxx b/sc/qa/extras/scdatapilotfieldobj.cxx
index cf461616c2ed..b6177bce9d10 100644
--- a/sc/qa/extras/scdatapilotfieldobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldobj.cxx
@@ -10,6 +10,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/beans/xpropertyset.hxx>
#include <test/container/xnamed.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/datapilotfield.hxx>
#include <test/sheet/xdatapilotfield.hxx>
#include <test/sheet/xdatapilotfieldgrouping.hxx>
@@ -33,7 +34,8 @@ class ScDataPilotFieldObj : public CalcUnoApiTest,
public apitest::XDataPilotField,
public apitest::XDataPilotFieldGrouping,
public apitest::XNamed,
- public apitest::XPropertySet
+ public apitest::XPropertySet,
+ public apitest::XServiceInfo
{
public:
virtual void setUp() override;
@@ -70,6 +72,11 @@ public:
CPPUNIT_TEST(testPropertyChangeListener);
CPPUNIT_TEST(testVetoableChangeListener);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -81,6 +88,7 @@ ScDataPilotFieldObj::ScDataPilotFieldObj()
, XNamed("Col1")
, XPropertySet({ "Function", "HasAutoShowInfo", "HasLayoutInfo", "HasSortInfo", "Subtotals",
"Subtotals2" })
+ , XServiceInfo("ScDataPilotFieldObj", "com.sun.star.sheet.DataPilotField")
{
}