sc/qa/extras/scdatapilotfieldobj.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit 36f9dafc79ccaa7406640cdadc9685bdee04e4ff Author: Jens Carl <j.car...@gmx.de> AuthorDate: Wed Mar 6 19:05:31 2019 +0000 Commit: Jens Carl <j.car...@gmx.de> CommitDate: Wed Mar 6 21:13:53 2019 +0100 Add XServiceInfo tests to ScDataPilotFieldObj Change-Id: I7de8902b6857782acb5d2b3566d5768481baab51 Reviewed-on: https://gerrit.libreoffice.org/68824 Tested-by: Jenkins Reviewed-by: Jens Carl <j.car...@gmx.de> 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") { } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits