Kaydet (Commit) 5f04be8d authored tarafından Jens Carl's avatar Jens Carl

Add XServiceInfo tests to ScSubTotalDescriptorBase

Change-Id: I1460f6f205bab736d4107675b05cec5654fdb673
Reviewed-on: https://gerrit.libreoffice.org/70042
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst ce7c473d
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <test/container/xelementaccess.hxx> #include <test/container/xelementaccess.hxx>
#include <test/container/xenumerationaccess.hxx> #include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx> #include <test/container/xindexaccess.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <test/sheet/subtotaldescriptor.hxx> #include <test/sheet/subtotaldescriptor.hxx>
#include <test/sheet/xsubtotaldescriptor.hxx> #include <test/sheet/xsubtotaldescriptor.hxx>
#include <cppu/unotype.hxx> #include <cppu/unotype.hxx>
...@@ -41,6 +42,7 @@ class ScSubTotalDescriptorBase : public CalcUnoApiTest, ...@@ -41,6 +42,7 @@ class ScSubTotalDescriptorBase : public CalcUnoApiTest,
public apitest::XEnumerationAccess, public apitest::XEnumerationAccess,
public apitest::XIndexAccess, public apitest::XIndexAccess,
public apitest::XPropertySet, public apitest::XPropertySet,
public apitest::XServiceInfo,
public apitest::XSubTotalDescriptor public apitest::XSubTotalDescriptor
{ {
public: public:
...@@ -77,6 +79,11 @@ public: ...@@ -77,6 +79,11 @@ public:
CPPUNIT_TEST(testAddNew); CPPUNIT_TEST(testAddNew);
CPPUNIT_TEST(testClear); CPPUNIT_TEST(testClear);
// XServiceInfo
CPPUNIT_TEST(testGetImplementationName);
CPPUNIT_TEST(testGetSupportedServiceNames);
CPPUNIT_TEST(testSupportsService);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
...@@ -87,6 +94,7 @@ ScSubTotalDescriptorBase::ScSubTotalDescriptorBase() ...@@ -87,6 +94,7 @@ ScSubTotalDescriptorBase::ScSubTotalDescriptorBase()
: CalcUnoApiTest("/sc/qa/extras/testdocuments") : CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<sheet::XSubTotalField>::get()) , XElementAccess(cppu::UnoType<sheet::XSubTotalField>::get())
, XIndexAccess(1) , XIndexAccess(1)
, XServiceInfo("ScSubTotalDescriptorBase", "com.sun.star.sheet.SubTotalDescriptor")
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment