Branch libreoffice-5-0-4
[LibreOffice.git] / include / test / unoapi_test.hxx
bloba2f5c2fbffebc73ca8989344207ca5c2653e9e02
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_UNOAPI_TEST_HXX
11 #define INCLUDED_TEST_UNOAPI_TEST_HXX
13 #include <sal/config.h>
14 #include <test/bootstrapfixture.hxx>
15 #include <unotest/macros_test.hxx>
16 #include <com/sun/star/lang/XComponent.hpp>
17 #include <osl/file.hxx>
19 // basic uno api test class
21 class OOO_DLLPUBLIC_TEST UnoApiTest : public test::BootstrapFixture, public unotest::MacrosTest
23 public:
24 UnoApiTest(const OUString& path);
26 void createFileURL(const OUString& aFileBase, OUString& rFilePath);
28 virtual void setUp() SAL_OVERRIDE;
29 virtual void tearDown() SAL_OVERRIDE;
31 protected:
32 void closeDocument( css::uno::Reference< css::lang::XComponent > xDocument );
35 private:
36 OUString m_aBaseString;
39 #endif // INCLUDED_TEST_UNOAPI_TEST_HXX
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */