diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-04-01 06:35:13 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-04-01 22:42:55 +0200 |
commit | 5f04be8d385f100d0775549cbdd7295cec1d1423 (patch) | |
tree | 3dd022994ea8ab5075890e6f225b630943543e06 | |
parent | ce7c473dfb6a0eeab99811b29e205fa8b5379f9d (diff) |
Add XServiceInfo tests to ScSubTotalDescriptorBase
Change-Id: I1460f6f205bab736d4107675b05cec5654fdb673
Reviewed-on: https://gerrit.libreoffice.org/70042
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
-rw-r--r-- | sc/qa/extras/scsubtotaldescriptorbase.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/qa/extras/scsubtotaldescriptorbase.cxx b/sc/qa/extras/scsubtotaldescriptorbase.cxx index 96c6170a8cf1..24d282ba9c7f 100644 --- a/sc/qa/extras/scsubtotaldescriptorbase.cxx +++ b/sc/qa/extras/scsubtotaldescriptorbase.cxx @@ -12,6 +12,7 @@ #include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> +#include <test/lang/xserviceinfo.hxx> #include <test/sheet/subtotaldescriptor.hxx> #include <test/sheet/xsubtotaldescriptor.hxx> #include <cppu/unotype.hxx> @@ -41,6 +42,7 @@ class ScSubTotalDescriptorBase : public CalcUnoApiTest, public apitest::XEnumerationAccess, public apitest::XIndexAccess, public apitest::XPropertySet, + public apitest::XServiceInfo, public apitest::XSubTotalDescriptor { public: @@ -77,6 +79,11 @@ public: CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testClear); + // XServiceInfo + CPPUNIT_TEST(testGetImplementationName); + CPPUNIT_TEST(testGetSupportedServiceNames); + CPPUNIT_TEST(testSupportsService); + CPPUNIT_TEST_SUITE_END(); private: @@ -87,6 +94,7 @@ ScSubTotalDescriptorBase::ScSubTotalDescriptorBase() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XElementAccess(cppu::UnoType<sheet::XSubTotalField>::get()) , XIndexAccess(1) + , XServiceInfo("ScSubTotalDescriptorBase", "com.sun.star.sheet.SubTotalDescriptor") { } |