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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 12 16:15:53 UTC 2019


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

New commits:
commit 20203f1bf9733f7a1212952920f7973f8fef1abe
Author:     Jens Carl <j.carl43 at gmx.de>
AuthorDate: Tue Feb 12 01:05:14 2019 +0000
Commit:     Jens Carl <j.carl43 at gmx.de>
CommitDate: Tue Feb 12 17:15:29 2019 +0100

    Add XServiceInfo tests to ScDataPilotFieldGroupsObj
    
    Change-Id: Iaa78c63503748c3c953a39193138239babf7a011
    Reviewed-on: https://gerrit.libreoffice.org/67707
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.carl43 at gmx.de>

diff --git a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx b/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
index e35042398686..613678fbed88 100644
--- a/sc/qa/extras/scdatapilotfieldgroupsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldgroupsobj.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 <comphelper/types.hxx>
 #include <rtl/string.hxx>
@@ -48,7 +49,8 @@ class ScDataPilotFieldGroupItemObj : public CalcUnoApiTest,
                                      public apitest::XElementAccess,
                                      public apitest::XEnumerationAccess,
                                      public apitest::XIndexAccess,
-                                     public apitest::XNameAccess
+                                     public apitest::XNameAccess,
+                                     public apitest::XServiceInfo
 {
 public:
     ScDataPilotFieldGroupItemObj();
@@ -75,6 +77,11 @@ public:
     CPPUNIT_TEST(testGetElementNames);
     CPPUNIT_TEST(testHasByName);
 
+    // XServiceInfo
+    CPPUNIT_TEST(testGetImplementationName);
+    CPPUNIT_TEST(testGetSupportedServiceNames);
+    CPPUNIT_TEST(testSupportsService);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -86,6 +93,7 @@ ScDataPilotFieldGroupItemObj::ScDataPilotFieldGroupItemObj()
     , XElementAccess(cppu::UnoType<container::XNameAccess>::get())
     , XIndexAccess(1)
     , XNameAccess("Group1")
+    , XServiceInfo("ScDataPilotFieldGroupsObj", "com.sun.star.sheet.DataPilotFieldGroups")
 {
 }
 


More information about the Libreoffice-commits mailing list