summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2018-12-18 19:14:13 +0000
committerJens Carl <j.carl43@gmx.de>2018-12-18 23:55:18 +0100
commit2b9739b9b009de93efa4f24995469c3bb9d82261 (patch)
treef78e491134408c1ad627447d18a79a8fd46b9eab /sc/qa
parent6aaae44da382f4bc3eafc287b4a21734b740cf21 (diff)
Add XServiceInfo tests to ScScenariosObj
Change-Id: I4d8fb95af78330d488e4b782eb8cdff5b83f1cc2 Reviewed-on: https://gerrit.libreoffice.org/65369 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/extras/scscenariosobj.cxx10
1 files changed, 9 insertions, 1 deletions
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 <test/container/xenumerationaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <test/container/xindexaccess.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/xscenarios.hxx>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -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<sheet::XScenario>::get())
, XNameAccess("ScScenarios")
, XIndexAccess(1)
+ , XServiceInfo("ScScenariosObj", "com.sun.star.sheet.Scenarios")
{
}