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

Add XServiceInfo tests to ScDataPilotFieldsObj

Change-Id: Ie5463178668389c34ad3bee892aa05f2d262de54
Reviewed-on: https://gerrit.libreoffice.org/67270
Tested-by: Jenkins
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 8e99c1fa
......@@ -12,6 +12,7 @@
#include <test/container/xenumerationaccess.hxx>
#include <test/container/xindexaccess.hxx>
#include <test/container/xnameaccess.hxx>
#include <test/lang/xserviceinfo.hxx>
#include <cppu/unotype.hxx>
......@@ -36,7 +37,8 @@ class ScDataPilotFieldsObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
public apitest::XNameAccess
public apitest::XNameAccess,
public apitest::XServiceInfo
{
public:
ScDataPilotFieldsObj();
......@@ -62,6 +64,11 @@ public:
CPPUNIT_TEST(testGetElementNames);
CPPUNIT_TEST(testHasByName);
// XServiceInfo
CPPUNIT_TEST(testGetImplementationName);
CPPUNIT_TEST(testGetSupportedServiceNames);
CPPUNIT_TEST(testSupportsService);
CPPUNIT_TEST_SUITE_END();
private:
......@@ -73,6 +80,7 @@ ScDataPilotFieldsObj::ScDataPilotFieldsObj()
, XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
, XIndexAccess(6)
, XNameAccess("")
, XServiceInfo("ScDataPilotFieldsObj", "com.sun.star.sheet.DataPilotFields")
{
}
......
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