From 5f04be8d385f100d0775549cbdd7295cec1d1423 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Mon, 1 Apr 2019 06:35:13 +0000 Subject: Add XServiceInfo tests to ScSubTotalDescriptorBase Change-Id: I1460f6f205bab736d4107675b05cec5654fdb673 Reviewed-on: https://gerrit.libreoffice.org/70042 Tested-by: Jenkins Reviewed-by: Jens Carl --- sc/qa/extras/scsubtotaldescriptorbase.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #include #include +#include #include #include #include @@ -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::get()) , XIndexAccess(1) + , XServiceInfo("ScSubTotalDescriptorBase", "com.sun.star.sheet.SubTotalDescriptor") { } -- cgit