2011-11-30 16:12:48 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This file is part of the LibreOffice project.
|
2011-11-30 16:12:48 +01:00
|
|
|
*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-11-30 16:12:48 +01:00
|
|
|
*/
|
|
|
|
|
2014-06-02 02:31:45 +00:00
|
|
|
#ifndef INCLUDED_TEST_UNOAPI_TEST_HXX
|
|
|
|
#define INCLUDED_TEST_UNOAPI_TEST_HXX
|
|
|
|
|
2011-11-30 16:12:48 +01:00
|
|
|
#include <sal/config.h>
|
|
|
|
#include <test/bootstrapfixture.hxx>
|
|
|
|
#include <unotest/macros_test.hxx>
|
2012-01-21 12:02:46 +01:00
|
|
|
#include <com/sun/star/lang/XComponent.hpp>
|
2011-11-30 16:12:48 +01:00
|
|
|
#include <osl/file.hxx>
|
|
|
|
|
|
|
|
// basic uno api test class
|
|
|
|
|
|
|
|
class OOO_DLLPUBLIC_TEST UnoApiTest : public test::BootstrapFixture, public unotest::MacrosTest
|
|
|
|
{
|
|
|
|
public:
|
2013-01-30 01:58:32 -02:00
|
|
|
UnoApiTest(const OUString& path);
|
2011-11-30 16:12:48 +01:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
void createFileURL(const OUString& aFileBase, OUString& rFilePath);
|
2011-11-30 16:12:48 +01:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void setUp() override;
|
2011-11-30 16:12:48 +01:00
|
|
|
|
2012-01-21 12:02:46 +01:00
|
|
|
protected:
|
2016-07-07 15:59:48 +02:00
|
|
|
void closeDocument( css::uno::Reference< css::lang::XComponent > const & xDocument );
|
2012-01-21 12:02:46 +01:00
|
|
|
|
2011-11-30 16:12:48 +01:00
|
|
|
|
|
|
|
private:
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString m_aBaseString;
|
2011-11-30 16:12:48 +01:00
|
|
|
};
|
|
|
|
|
2014-06-02 02:31:45 +00:00
|
|
|
#endif // INCLUDED_TEST_UNOAPI_TEST_HXX
|
|
|
|
|
2011-11-30 16:12:48 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|