summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-05-03 00:39:49 +0000
committerJens Carl <j.carl43@gmx.de>2019-05-03 04:32:12 +0200
commit2f9cd77c1cd480244f8c17221c2f74f3f97df57f (patch)
tree74abb1926745b4a0a0dc175627080470e6d32bec /sc/qa
parentde529f32120e2eaa73d804a53ce519979da38438 (diff)
Add XServiceInfo tests to ScCellSearchObj
Change-Id: I0ce55a8a6771a0c774c0009f0001fb00cfcc23b7 Reviewed-on: https://gerrit.libreoffice.org/71714 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/extras/sccellsearchobj.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sc/qa/extras/sccellsearchobj.cxx b/sc/qa/extras/sccellsearchobj.cxx
index a06010ca0c32..f91046072e66 100644
--- a/sc/qa/extras/sccellsearchobj.cxx
+++ b/sc/qa/extras/sccellsearchobj.cxx
@@ -9,6 +9,7 @@
#include <test/calc_unoapi_test.hxx>
#include <test/beans/xpropertyset.hxx>
+#include <test/lang/xserviceinfo.hxx>
#include <test/util/searchdescriptor.hxx>
#include <test/util/xreplacedescriptor.hxx>
#include <test/util/xsearchdescriptor.hxx>
@@ -31,7 +32,8 @@ class ScCellSearchObj : public CalcUnoApiTest,
public apitest::SearchDescriptor,
public apitest::XPropertySet,
public apitest::XReplaceDescriptor,
- public apitest::XSearchDescriptor
+ public apitest::XSearchDescriptor,
+ public apitest::XServiceInfo
{
public:
ScCellSearchObj();
@@ -58,6 +60,11 @@ public:
// XSearchDescriptor
CPPUNIT_TEST(testGetSetSearchString);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -66,6 +73,8 @@ private:
ScCellSearchObj::ScCellSearchObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
+ , XServiceInfo("ScCellSearchObj",
+ { "com.sun.star.util.ReplaceDescriptor", "com.sun.star.util.SearchDescriptor" })
{
}