[Libreoffice-commits] core.git: sc/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jan 13 18:33:38 UTC 2019
sc/qa/extras/scdatabaserangesobj.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 7e81bf57baf2f47ecd7ded9d10bc7f96713261cf
Author: Jens Carl <j.carl43 at gmx.de>
AuthorDate: Sun Jan 13 06:05:57 2019 +0000
Commit: Jens Carl <j.carl43 at gmx.de>
CommitDate: Sun Jan 13 19:33:17 2019 +0100
Add XServiceInfo tests to ScDatabaseRangesObj.
Change-Id: I693a464e528180f81b785d63715a9443f1790c3e
Reviewed-on: https://gerrit.libreoffice.org/66252
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/sc/qa/extras/scdatabaserangesobj.cxx b/sc/qa/extras/scdatabaserangesobj.cxx
index 21abd61b1bd8..39c190f310d7 100644
--- a/sc/qa/extras/scdatabaserangesobj.cxx
+++ b/sc/qa/extras/scdatabaserangesobj.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 <test/sheet/xdatabaseranges.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -37,7 +38,8 @@ class ScDatabaseRangesObj : public CalcUnoApiTest,
public apitest::XElementAccess,
public apitest::XEnumerationAccess,
public apitest::XIndexAccess,
- public apitest::XNameAccess
+ public apitest::XNameAccess,
+ public apitest::XServiceInfo
{
public:
ScDatabaseRangesObj();
@@ -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:
@@ -78,6 +85,7 @@ ScDatabaseRangesObj::ScDatabaseRangesObj()
, XElementAccess(cppu::UnoType<sheet::XDatabaseRange>::get())
, XIndexAccess(1)
, XNameAccess("DbRange")
+ , XServiceInfo("ScDatabaseRangesObj", "com.sun.star.sheet.DatabaseRanges")
{
}
More information about the Libreoffice-commits
mailing list