[Libreoffice-commits] core.git: sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Feb 2 02:40:08 UTC 2019
sc/qa/extras/scdatapilotfieldsobj.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit cec3fe24dd4569bf04b13e0284823bad129dbb86
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sat Feb 2 00:13:56 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sat Feb 2 03:39:38 2019 +0100
Add XServiceInfo tests to ScDataPilotFieldsObj
Change-Id: Ie5463178668389c34ad3bee892aa05f2d262de54
Reviewed-on: https://gerrit.libreoffice.org/67270
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/sc/qa/extras/scdatapilotfieldsobj.cxx b/sc/qa/extras/scdatapilotfieldsobj.cxx
index 24c6adfc9db1..05a88a708beb 100644
--- a/sc/qa/extras/scdatapilotfieldsobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldsobj.cxx
@@ -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")
{
}
More information about the Libreoffice-commits
mailing list