summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-29 17:54:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-29 17:54:04 +0200
commit471408327978144dcc11f5f65f8208016867e03a (patch)
treee16998ccbf5786b70198c9cd040b08aa60eac471 /include/test
parent66e2f20c5610eb500b4a9cf22ef024492ba0fd00 (diff)
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 <https://gerrit.libreoffice.org/#/c/28322/16> "tdf#99402: fix Metafile Font handling". Change-Id: I1d609445690b6ee5e331aa322cd4bf434a3de78e
Diffstat (limited to 'include/test')
-rw-r--r--include/test/setupvcl.hxx26
1 files changed, 26 insertions, 0 deletions
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 <sal/config.h>
+
+#include <test/testdllapi.hxx>
+
+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: */