From 2b9739b9b009de93efa4f24995469c3bb9d82261 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Tue, 18 Dec 2018 19:14:13 +0000 Subject: Add XServiceInfo tests to ScScenariosObj Change-Id: I4d8fb95af78330d488e4b782eb8cdff5b83f1cc2 Reviewed-on: https://gerrit.libreoffice.org/65369 Tested-by: Jenkins Reviewed-by: Jens Carl --- sc/qa/extras/scscenariosobj.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sc/qa') diff --git a/sc/qa/extras/scscenariosobj.cxx b/sc/qa/extras/scscenariosobj.cxx index 22f35f10cb52..a379cf249ece 100644 --- a/sc/qa/extras/scscenariosobj.cxx +++ b/sc/qa/extras/scscenariosobj.cxx @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -43,7 +44,8 @@ class ScScenariosObj : public CalcUnoApiTest, public apitest::XEnumerationAccess, public apitest::XNameAccess, public apitest::XIndexAccess, - public apitest::XScenarios + public apitest::XScenarios, + public apitest::XServiceInfo { public: ScScenariosObj(); @@ -74,6 +76,11 @@ public: CPPUNIT_TEST(testAddNewByName); CPPUNIT_TEST(testRemoveByName); + // XServiceInfo + CPPUNIT_TEST(testGetImplementationName); + CPPUNIT_TEST(testGetSupportedServiceNames); + CPPUNIT_TEST(testSupportsService); + CPPUNIT_TEST_SUITE_END(); private: @@ -85,6 +92,7 @@ ScScenariosObj::ScScenariosObj() , XElementAccess(cppu::UnoType::get()) , XNameAccess("ScScenarios") , XIndexAccess(1) + , XServiceInfo("ScScenariosObj", "com.sun.star.sheet.Scenarios") { } -- cgit