diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-25 18:45:11 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-26 01:17:35 +0100 |
commit | 3424004cca7cb61043800f0ff0acc9de64768276 (patch) | |
tree | bdd656dc69c88c089d52b06d61fe47d9630eeb8d | |
parent | 3a4d46c586352939a37e3b07fa74cbce81abd722 (diff) |
Add XServiceInfo tests to ScSpreadsheetSettings
Change-Id: Ib3de198dfe9147897a972bf2ce0a9b20e68bb155
Reviewed-on: https://gerrit.libreoffice.org/66927
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r-- | sc/qa/extras/scspreadsheetsettings.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sc/qa/extras/scspreadsheetsettings.cxx b/sc/qa/extras/scspreadsheetsettings.cxx index 5835877e2dc0..a06d65cd5060 100644 --- a/sc/qa/extras/scspreadsheetsettings.cxx +++ b/sc/qa/extras/scspreadsheetsettings.cxx @@ -9,6 +9,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/beans/xpropertyset.hxx> +#include <test/lang/xserviceinfo.hxx> #include <test/sheet/globalsheetsettings.hxx> #include <com/sun/star/lang/XComponent.hpp> @@ -26,7 +27,8 @@ namespace sc_apitest { class ScSpreadsheetSettings : public CalcUnoApiTest, public apitest::GlobalSheetSettings, - public apitest::XPropertySet + public apitest::XPropertySet, + public apitest::XServiceInfo { public: ScSpreadsheetSettings(); @@ -47,6 +49,11 @@ public: CPPUNIT_TEST(testPropertyChangeListener); CPPUNIT_TEST(testVetoableChangeListener); + // XServiceInfo + CPPUNIT_TEST(testGetImplementationName); + CPPUNIT_TEST(testGetSupportedServiceNames); + CPPUNIT_TEST(testSupportsService); + CPPUNIT_TEST_SUITE_END(); private: @@ -56,6 +63,8 @@ private: ScSpreadsheetSettings::ScSpreadsheetSettings() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XPropertySet({ "LinkUpdateMode", "UsePrinterMetrics", "UserLists" }) + , XServiceInfo("stardiv.StarCalc.ScSpreadsheetSettings", + "com.sun.star.sheet.GlobalSheetSettings") { } |