sc/qa/extras/scdatapilottablesobj.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit 74db00dc36cec6390329e44636deda7f43e2891a Author: Jens Carl <j.car...@gmx.de> AuthorDate: Sun Jan 13 20:26:44 2019 +0000 Commit: Jens Carl <j.car...@gmx.de> CommitDate: Mon Jan 14 05:20:39 2019 +0100 Add XServiceInfo tests to ScDataPilotTablesObj Change-Id: Ic7a786d63b17760c2b18fd60bb3e2e01947522ae Reviewed-on: https://gerrit.libreoffice.org/66274 Tested-by: Jenkins Reviewed-by: Jens Carl <j.car...@gmx.de> 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") { } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits