2011-10-12 15:19:21 +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-10-12 15:19:21 +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-10-12 15:19:21 +01:00
|
|
|
*/
|
2013-09-27 14:36:40 +02:00
|
|
|
|
2017-10-23 22:29:05 +02:00
|
|
|
#include <sal/config.h>
|
2013-09-27 14:36:40 +02:00
|
|
|
|
2011-10-12 15:19:21 +01:00
|
|
|
#include <unotest/bootstrapfixturebase.hxx>
|
|
|
|
#include <rtl/bootstrap.hxx>
|
|
|
|
#include <comphelper/processfactory.hxx>
|
2014-05-28 22:33:29 -04:00
|
|
|
#include <basic/sbstar.hxx>
|
2011-10-12 15:19:21 +01:00
|
|
|
|
|
|
|
using namespace ::com::sun::star;
|
|
|
|
|
|
|
|
// NB. this constructor is called before any tests are run, once for each
|
|
|
|
// test function in a rather non-intuitive way. This is why all the 'real'
|
|
|
|
// heavy lifting is deferred until setUp. setUp and tearDown are interleaved
|
|
|
|
// between the tests as you might expect.
|
|
|
|
test::BootstrapFixtureBase::BootstrapFixtureBase()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
test::BootstrapFixtureBase::~BootstrapFixtureBase()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void test::BootstrapFixtureBase::setUp()
|
|
|
|
{
|
2012-04-13 11:13:19 +01:00
|
|
|
m_xContext = comphelper::getProcessComponentContext();
|
2011-10-12 15:19:21 +01:00
|
|
|
m_xFactory = m_xContext->getServiceManager();
|
2015-11-05 12:42:10 +02:00
|
|
|
m_xSFactory.set(m_xFactory, uno::UNO_QUERY_THROW);
|
2011-10-12 15:19:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void test::BootstrapFixtureBase::tearDown()
|
|
|
|
{
|
2014-05-28 22:33:29 -04:00
|
|
|
StarBASIC::DetachAllDocBasicItems();
|
2011-10-12 15:19:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|