diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-03-27 23:25:38 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-03-28 06:27:41 +0100 |
commit | eb0653ee80ad7249fde9ff752b56316fb98c4592 (patch) | |
tree | d1da181c69de496591d294f5611599750bf77b55 /sc | |
parent | f897e80d063436be07356049f595efe5afb04859 (diff) |
tdf#45904 Move XServiceInfo Java tests to C++
Move XServiceInfo Java tests to C++ for ScDrawPageObj.
Change-Id: Icc2c97296f549763068475be18c00a23b7cd73dc
Reviewed-on: https://gerrit.libreoffice.org/69872
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scdrawpageobj.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/qa/extras/scdrawpageobj.cxx b/sc/qa/extras/scdrawpageobj.cxx index 9f8e9194598d..de8d8baa4e9c 100644 --- a/sc/qa/extras/scdrawpageobj.cxx +++ b/sc/qa/extras/scdrawpageobj.cxx @@ -11,6 +11,7 @@ #include <test/helper/shape.hxx> #include <test/container/xelementaccess.hxx> #include <test/container/xindexaccess.hxx> +#include <test/lang/xserviceinfo.hxx> #include <cppu/unotype.hxx> #include <com/sun/star/drawing/XDrawPage.hpp> @@ -30,7 +31,8 @@ namespace sc_apitest { class ScDrawPageObj : public CalcUnoApiTest, public apitest::XElementAccess, - public apitest::XIndexAccess + public apitest::XIndexAccess, + public apitest::XServiceInfo { public: ScDrawPageObj(); @@ -49,6 +51,11 @@ public: CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetCount); + // XServiceInfo + CPPUNIT_TEST(testGetImplementationName); + CPPUNIT_TEST(testGetSupportedServiceNames); + CPPUNIT_TEST(testSupportsService); + CPPUNIT_TEST_SUITE_END(); private: @@ -59,6 +66,7 @@ ScDrawPageObj::ScDrawPageObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") , XElementAccess(cppu::UnoType<drawing::XShape>::get()) , XIndexAccess(2) + , XServiceInfo("ScPageObj", "com.sun.star.sheet.SpreadsheetDrawPage") { } |