From 3d826d780af366c7ed650ec44e7bcb20b02e2c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 3 Feb 2020 09:59:44 +0000 Subject: make some headers private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as shown with ./bin/find-headers-to-move-inside-modules.py Change-Id: I7662417e76fe00c0fc352957560e104b6c2a3d61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87850 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- test/source/bootstrapfixture.cxx | 3 ++- test/source/setupvcl.cxx | 2 +- test/source/setupvcl.hxx | 26 ++++++++++++++++++++++++++ test/source/vclbootstrapprotector.cxx | 2 +- 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 test/source/setupvcl.hxx (limited to 'test/source') diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx index e0f08b036cd5..7e71b34ccaed 100644 --- a/test/source/bootstrapfixture.cxx +++ b/test/source/bootstrapfixture.cxx @@ -10,7 +10,6 @@ #include #include -#include #include #include #include @@ -30,6 +29,8 @@ #include #include +#include "setupvcl.hxx" + using namespace ::com::sun::star; static void aBasicErrorFunc( const OUString &rErr, const OUString &rAction ) diff --git a/test/source/setupvcl.cxx b/test/source/setupvcl.cxx index 81d53b0f2734..56c0a3b3c84c 100644 --- a/test/source/setupvcl.cxx +++ b/test/source/setupvcl.cxx @@ -15,12 +15,12 @@ #include #include #include -#include #include #include #include #include "isheadless.hxx" +#include "setupvcl.hxx" namespace { diff --git a/test/source/setupvcl.hxx b/test/source/setupvcl.hxx new file mode 100644 index 000000000000..78d4683e50ce --- /dev/null +++ b/test/source/setupvcl.hxx @@ -0,0 +1,26 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * 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/. + */ + +#ifndef INCLUDED_TEST_SETUPVCL_HXX +#define INCLUDED_TEST_SETUPVCL_HXX + +#include + +#include + +namespace test { + +// Calls InitVCL etc.; needed from multiple places in the test infrastructure: +OOO_DLLPUBLIC_TEST_SETUPVCL void setUpVcl(bool forceHeadless = false); + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/test/source/vclbootstrapprotector.cxx b/test/source/vclbootstrapprotector.cxx index 99777f6b483c..f6d1b97620ad 100644 --- a/test/source/vclbootstrapprotector.cxx +++ b/test/source/vclbootstrapprotector.cxx @@ -12,9 +12,9 @@ #include #include #include -#include #include #include +#include "setupvcl.hxx" namespace { -- cgit v1.2.1