diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-05-03 00:33:02 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-05-03 03:32:45 +0200 |
commit | de529f32120e2eaa73d804a53ce519979da38438 (patch) | |
tree | 72f8567cf606f6284d08371db40ee99734ce4f2f /test | |
parent | 15c39bb2e75df40c30bcbf789d815376dd2e31ce (diff) |
Enable testing of multiple service names
Enable testing of multiple service names of the object supports this, by
storing all possible names in a vector.
Change-Id: Iff2c974cc30a0729cb26b07002582e0786a4de44
Reviewed-on: https://gerrit.libreoffice.org/71713
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/lang/xserviceinfo.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/lang/xserviceinfo.cxx b/test/source/lang/xserviceinfo.cxx index 9db9e4b1cbe3..3f7e6541fa85 100644 --- a/test/source/lang/xserviceinfo.cxx +++ b/test/source/lang/xserviceinfo.cxx @@ -18,7 +18,6 @@ #include <cppunit/extensions/HelperMacros.h> using namespace css; -using namespace css::uno; namespace apitest { @@ -41,7 +40,8 @@ void XServiceInfo::testSupportsService() { uno::Reference<lang::XServiceInfo> xSI(init(), uno::UNO_QUERY_THROW); - CPPUNIT_ASSERT(xSI->supportsService(m_aServiceName)); + for (const auto& aServiceName : m_aServiceNames) + CPPUNIT_ASSERT(xSI->supportsService(aServiceName)); } } // namespace apitest |