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

Add XServiceInfo tests to ScDrawPagesObj

Change-Id: Ide03e22eb52d22d3a367e2a75af5e08d2c86909c
Reviewed-on: https://gerrit.libreoffice.org/66762
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 8ff4d23e
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <test/container/xelementaccess.hxx> #include <test/container/xelementaccess.hxx>
#include <test/container/xindexaccess.hxx> #include <test/container/xindexaccess.hxx>
#include <test/drawing/xdrawpages.hxx> #include <test/drawing/xdrawpages.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <com/sun/star/drawing/XDrawPage.hpp> #include <com/sun/star/drawing/XDrawPage.hpp>
#include <com/sun/star/drawing/XDrawPages.hpp> #include <com/sun/star/drawing/XDrawPages.hpp>
...@@ -31,7 +32,8 @@ namespace sc_apitest ...@@ -31,7 +32,8 @@ namespace sc_apitest
class ScDrawPagesObj : public CalcUnoApiTest, class ScDrawPagesObj : public CalcUnoApiTest,
public apitest::XDrawPages, public apitest::XDrawPages,
public apitest::XElementAccess, public apitest::XElementAccess,
public apitest::XIndexAccess public apitest::XIndexAccess,
public apitest::XServiceInfo
{ {
public: public:
ScDrawPagesObj(); ScDrawPagesObj();
...@@ -54,6 +56,11 @@ public: ...@@ -54,6 +56,11 @@ public:
CPPUNIT_TEST(testGetByIndex); CPPUNIT_TEST(testGetByIndex);
CPPUNIT_TEST(testGetCount); CPPUNIT_TEST(testGetCount);
// XServiceInfo
CPPUNIT_TEST(testGetImplementationName);
CPPUNIT_TEST(testGetSupportedServiceNames);
CPPUNIT_TEST(testSupportsService);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
...@@ -64,6 +71,7 @@ ScDrawPagesObj::ScDrawPagesObj() ...@@ -64,6 +71,7 @@ ScDrawPagesObj::ScDrawPagesObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments") : CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<drawing::XDrawPage>::get()) , XElementAccess(cppu::UnoType<drawing::XDrawPage>::get())
, XIndexAccess(3) , XIndexAccess(3)
, XServiceInfo("ScDrawPagesObj", "com.sun.star.drawing.DrawPages")
{ {
} }
......
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