From 33e264832001286eae1f55a3382b704bbb1a7ac6 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Tue, 2 Apr 2019 00:22:31 +0000 Subject: Add XServiceInfo tests to ScAutoFormatObj include/test/sheet/xenhancedmouseclickbroadcaster.hxx Change-Id: I614756e19d25c692093de47d364af4b0e521cf31 Reviewed-on: https://gerrit.libreoffice.org/70098 Tested-by: Jenkins Reviewed-by: Jens Carl --- sc/qa/extras/scautoformatobj.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx index cc48c036ce81..76db8c6a3592 100644 --- a/sc/qa/extras/scautoformatobj.cxx +++ b/sc/qa/extras/scautoformatobj.cxx @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -35,7 +36,8 @@ class ScAutoFormatObj : public CalcUnoApiTest, public apitest::XEnumerationAccess, public apitest::XIndexAccess, public apitest::XNamed, - public apitest::XPropertySet + public apitest::XPropertySet, + public apitest::XServiceInfo { public: ScAutoFormatObj(); @@ -71,6 +73,11 @@ public: CPPUNIT_TEST(testPropertyChangeListener); CPPUNIT_TEST(testVetoableChangeListener); + // XServiceInfo + CPPUNIT_TEST(testGetImplementationName); + CPPUNIT_TEST(testGetSupportedServiceNames); + CPPUNIT_TEST(testSupportsService); + CPPUNIT_TEST_SUITE_END(); private: @@ -82,6 +89,7 @@ ScAutoFormatObj::ScAutoFormatObj() , XElementAccess(cppu::UnoType::get()) , XIndexAccess(16) , XNamed("Default") + , XServiceInfo("ScAutoFormatObj", "com.sun.star.sheet.TableAutoFormat") { } -- cgit