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

Add XServiceInfo tests to ScChartsObj

Change-Id: Ic85a697939263892c1d1a49b1d0900ee5fb73c1c
Reviewed-on: https://gerrit.libreoffice.org/68991
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 197988d2
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <test/container/xenumerationaccess.hxx> #include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx> #include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx> #include <test/container/xnameaccess.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <cppu/unotype.hxx> #include <cppu/unotype.hxx>
#include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Rectangle.hpp>
...@@ -40,7 +41,8 @@ class ScChartsObj : public CalcUnoApiTest, ...@@ -40,7 +41,8 @@ class ScChartsObj : public CalcUnoApiTest,
public apitest::XEnumerationAccess, public apitest::XEnumerationAccess,
public apitest::XElementAccess, public apitest::XElementAccess,
public apitest::XIndexAccess, public apitest::XIndexAccess,
public apitest::XNameAccess public apitest::XNameAccess,
public apitest::XServiceInfo
{ {
public: public:
ScChartsObj(); ScChartsObj();
...@@ -67,6 +69,11 @@ public: ...@@ -67,6 +69,11 @@ public:
CPPUNIT_TEST(testGetElementNames); CPPUNIT_TEST(testGetElementNames);
CPPUNIT_TEST(testHasByName); CPPUNIT_TEST(testHasByName);
// XServiceInfo
CPPUNIT_TEST(testGetImplementationName);
CPPUNIT_TEST(testGetSupportedServiceNames);
CPPUNIT_TEST(testSupportsService);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
...@@ -78,6 +85,7 @@ ScChartsObj::ScChartsObj() ...@@ -78,6 +85,7 @@ ScChartsObj::ScChartsObj()
, XElementAccess(cppu::UnoType<table::XTableChart>::get()) , XElementAccess(cppu::UnoType<table::XTableChart>::get())
, XIndexAccess(1) , XIndexAccess(1)
, XNameAccess("ScChartsObj") , XNameAccess("ScChartsObj")
, XServiceInfo("ScChartsObj", "com.sun.star.table.TableCharts")
{ {
} }
......
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