diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-23 19:24:39 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-24 18:40:32 +0100 |
commit | c1a4ad00786cd08fc2db552de2ce152668a57129 (patch) | |
tree | 0127ce3e485fd1f62003c1e7a8de0e9faa6f6d01 | |
parent | 9b891b0062e550430025b440a31211cdec74f3a8 (diff) |
Add XServiceInfo tests to ScSheetLinksObj
Change-Id: I22269b7faec9a86e5dcec95f920958f56305e57a
Reviewed-on: https://gerrit.libreoffice.org/66820
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r-- | sc/qa/extras/scsheetlinksobj.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
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") { } |