[Libreoffice-commits] core.git: sc/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 14 04:20:59 UTC 2019


 sc/qa/extras/scdatapilottablesobj.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 74db00dc36cec6390329e44636deda7f43e2891a
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sun Jan 13 20:26:44 2019 +0000
Commit:     Jens Carl <j.carl43 at 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.carl43 at 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")
 {
 }
 


More information about the Libreoffice-commits mailing list