[Libreoffice-commits] core.git: sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 18 01:12:03 UTC 2019
sc/qa/extras/scddelinksobj.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit b8e450a54936560cdac00ab4c70ef80c20cfaf99
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Thu Jan 17 23:03:19 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Fri Jan 18 02:11:36 2019 +0100
Add XServiceInfo tests to ScDDELinksObj
Change-Id: Iacd44465e4b4b3a1a6657abcf274ffe7f8eb808b
Reviewed-on: https://gerrit.libreoffice.org/66560
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
index 667c1b180243..721478ba839d 100644
--- a/sc/qa/extras/scddelinksobj.cxx
+++ b/sc/qa/extras/scddelinksobj.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>
#include <rtl/ustring.hxx>
@@ -40,7 +41,8 @@ class ScDDELinksObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
- public apitest::XNameAccess
+ public apitest::XNameAccess,
+ public apitest::XServiceInfo
{
public:
ScDDELinksObj();
@@ -67,6 +69,11 @@ public:
CPPUNIT_TEST(testGetElementNames);
CPPUNIT_TEST(testHasByName);
+ // XServiceInfo
+ CPPUNIT_TEST(testGetImplementationName);
+ CPPUNIT_TEST(testGetSupportedServiceNames);
+ CPPUNIT_TEST(testSupportsService);
+
CPPUNIT_TEST_SUITE_END();
private:
@@ -80,6 +87,7 @@ ScDDELinksObj::ScDDELinksObj()
, XNameAccess("soffice|"
+ m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods")
+ "!Sheet1.A1")
+ , XServiceInfo("ScDDELinksObj", "com.sun.star.sheet.DDELinks")
{
}
More information about the Libreoffice-commits
mailing list