LibreOffice Module test (master)  1
xserviceinfo.hxx
Go to the documentation of this file.
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.
4  *
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  */
9 
10 #ifndef INCLUDED_TEST_LANG_XSERVICEINFO_HXX
11 #define INCLUDED_TEST_LANG_XSERVICEINFO_HXX
12 
13 #include <vector>
14 
15 #include <com/sun/star/uno/XInterface.hpp>
16 
17 #include <com/sun/star/uno/Reference.hxx>
18 
19 #include <test/testdllapi.hxx>
20 
21 namespace apitest
22 {
24 {
25 public:
26  XServiceInfo(const OUString& rImplName, const OUString& rServiceName)
27  : m_aImplName(rImplName)
28  {
29  m_aServiceNames.push_back(rServiceName);
30  }
31  XServiceInfo(const OUString& rImplName, const std::vector<OUString> rServiceNames)
32  : m_aImplName(rImplName)
33  , m_aServiceNames(rServiceNames)
34  {
35  }
36 
37  virtual css::uno::Reference<css::uno::XInterface> init() = 0;
38 
39  void testGetImplementationName();
40  void testGetSupportedServiceNames();
41  void testSupportsService();
42 
43 protected:
45 
46 private:
47  OUString const m_aImplName;
48  std::vector<OUString> m_aServiceNames;
49 };
50 
51 } // namespace apitest
52 
53 #endif // INCLUDED_TEST_LANG_XSERVICEINFO_HXX
54 
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
XServiceInfo(const OUString &rImplName, const std::vector< OUString > rServiceNames)
XServiceInfo(const OUString &rImplName, const OUString &rServiceName)
std::vector< OUString > m_aServiceNames
FILE * init(int, char **)
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28
OUString const m_aImplName