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 /include | |
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 'include')
-rw-r--r-- | include/test/lang/xserviceinfo.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/test/lang/xserviceinfo.hxx b/include/test/lang/xserviceinfo.hxx index 498e5ed8387f..86a92480d970 100644 --- a/include/test/lang/xserviceinfo.hxx +++ b/include/test/lang/xserviceinfo.hxx @@ -10,6 +10,8 @@ #ifndef INCLUDED_TEST_LANG_XSERVICEINFO_HXX #define INCLUDED_TEST_LANG_XSERVICEINFO_HXX +#include <vector> + #include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/uno/Reference.hxx> @@ -24,7 +26,12 @@ class OOO_DLLPUBLIC_TEST XServiceInfo public: XServiceInfo(const OUString& rImplName, const OUString& rServiceName) : m_aImplName(rImplName) - , m_aServiceName(rServiceName) + { + m_aServiceNames.push_back(rServiceName); + } + XServiceInfo(const OUString& rImplName, const std::vector<OUString> rServiceNames) + : m_aImplName(rImplName) + , m_aServiceNames(rServiceNames) { } @@ -39,7 +46,7 @@ protected: private: OUString const m_aImplName; - OUString const m_aServiceName; + std::vector<OUString> m_aServiceNames; }; } // namespace apitest |