Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / test / lang / xserviceinfo.hxx
blob29cc17dc07bdebde392fee5df9ad8974af5a5e8a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_TEST_LANG_XSERVICEINFO_HXX
11 #define INCLUDED_TEST_LANG_XSERVICEINFO_HXX
13 #include <utility>
14 #include <vector>
16 #include <com/sun/star/uno/XInterface.hpp>
18 #include <com/sun/star/uno/Reference.hxx>
20 #include <test/testdllapi.hxx>
22 namespace apitest
24 class OOO_DLLPUBLIC_TEST XServiceInfo
26 public:
27 XServiceInfo(OUString aImplName, const OUString& rServiceName)
28 : m_aImplName(std::move(aImplName))
30 m_aServiceNames.push_back(rServiceName);
32 XServiceInfo(OUString aImplName, const std::vector<OUString> rServiceNames)
33 : m_aImplName(std::move(aImplName))
34 , m_aServiceNames(rServiceNames)
38 virtual css::uno::Reference<css::uno::XInterface> init() = 0;
40 void testGetImplementationName();
41 void testGetSupportedServiceNames();
42 void testSupportsService();
44 protected:
45 ~XServiceInfo() {}
47 private:
48 OUString const m_aImplName;
49 std::vector<OUString> m_aServiceNames;
52 } // namespace apitest
54 #endif // INCLUDED_TEST_LANG_XSERVICEINFO_HXX
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */