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

New commits:
commit c1a4ad00786cd08fc2db552de2ce152668a57129
Author:     Jens Carl <j.car...@gmx.de>
AuthorDate: Wed Jan 23 19:24:39 2019 +0000
Commit:     Jens Carl <j.car...@gmx.de>
CommitDate: Thu Jan 24 18:40:32 2019 +0100

    Add XServiceInfo tests to ScSheetLinksObj
    
    Change-Id: I22269b7faec9a86e5dcec95f920958f56305e57a
    Reviewed-on: https://gerrit.libreoffice.org/66820
    Tested-by: Jenkins
    Reviewed-by: Jens Carl <j.car...@gmx.de>

diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 481be884ae41..5715a20fec8e 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.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 <cppu/unotype.hxx>
 #include <rtl/string.hxx>
@@ -36,7 +37,8 @@ class ScSheetLinksObj : public CalcUnoApiTest,
                         public apitest::XElementAccess,
                         public apitest::XEnumerationAccess,
                         public apitest::XIndexAccess,
-                        public apitest::XNameAccess
+                        public apitest::XNameAccess,
+                        public apitest::XServiceInfo
 {
 public:
     ScSheetLinksObj();
@@ -63,6 +65,11 @@ public:
     CPPUNIT_TEST(testGetElementNames);
     CPPUNIT_TEST(testHasByName);
 
+    // XServiceInfo
+    CPPUNIT_TEST(testGetImplementationName);
+    CPPUNIT_TEST(testGetSupportedServiceNames);
+    CPPUNIT_TEST(testSupportsService);
+
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -74,6 +81,7 @@ ScSheetLinksObj::ScSheetLinksObj()
     , XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
     , XIndexAccess(1)
     , 
XNameAccess(m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/ScSheetLinksObj.ods"))
+    , XServiceInfo("ScSheetLinksObj", "com.sun.star.sheet.SheetLinks")
 {
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to