From 471408327978144dcc11f5f65f8208016867e03a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 29 Aug 2016 17:54:04 +0200 Subject: Remove duplication of "set up VCL" code The "this is called from pyuno" version in test/source/bootstrapfixture.cxx had had an empty deinitHook, but it appears to not hurt to give it the same deinitHook as the version in test/source/vclbootstrapprotector.cxx had had. Make test::setUpVcl accessible from outside module test for an upcoming use in "tdf#99402: fix Metafile Font handling". Change-Id: I1d609445690b6ee5e331aa322cd4bf434a3de78e --- include/test/setupvcl.hxx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/test/setupvcl.hxx (limited to 'include/test') diff --git a/include/test/setupvcl.hxx b/include/test/setupvcl.hxx new file mode 100644 index 000000000000..b2b3afaf7b37 --- /dev/null +++ b/include/test/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 void setUpVcl(); + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit