diff options
-rw-r--r-- | include/osl/test/uniquepipename.hxx (renamed from unotest/source/cpp/uniquepipename.cxx) | 3 | ||||
-rw-r--r-- | include/unotest/uniquepipename.hxx | 37 | ||||
-rw-r--r-- | sal/CppunitTest_sal_osl_pipe.mk | 1 | ||||
-rw-r--r-- | sal/qa/osl/pipe/osl_Pipe.cxx | 2 | ||||
-rw-r--r-- | unotest/Library_unotest.mk | 1 | ||||
-rw-r--r-- | unotest/source/cpp/officeconnection.cxx | 4 |
6 files changed, 5 insertions, 43 deletions
diff --git a/unotest/source/cpp/uniquepipename.cxx b/include/osl/test/uniquepipename.hxx index ed6edcb2a46b..bdffb28ca2c0 100644 --- a/unotest/source/cpp/uniquepipename.cxx +++ b/include/osl/test/uniquepipename.hxx @@ -22,8 +22,8 @@ #include "osl/process.h" #include "rtl/ustring.h" #include "rtl/ustring.hxx" -#include "unotest/uniquepipename.hxx" +namespace osl { namespace test { OUString uniquePipeName(OUString const & name) { @@ -36,5 +36,6 @@ OUString uniquePipeName(OUString const & name) { } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/unotest/uniquepipename.hxx b/include/unotest/uniquepipename.hxx deleted file mode 100644 index f406dc1dd69b..000000000000 --- a/include/unotest/uniquepipename.hxx +++ /dev/null @@ -1,37 +0,0 @@ -/* -*- 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/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef INCLUDED_UNOTEST_UNIQUEPIPENAME_HXX -#define INCLUDED_UNOTEST_UNIQUEPIPENAME_HXX - -#include <sal/config.h> - -#include <rtl/ustring.hxx> -#include <unotest/detail/unotestdllapi.hxx> - -namespace test { - -// Create a system-wide unique name (for use with osl::Pipe): -OOO_DLLPUBLIC_UNOTEST OUString uniquePipeName(OUString const & name); - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/CppunitTest_sal_osl_pipe.mk b/sal/CppunitTest_sal_osl_pipe.mk index 932a1381cd48..cf909ea2090e 100644 --- a/sal/CppunitTest_sal_osl_pipe.mk +++ b/sal/CppunitTest_sal_osl_pipe.mk @@ -15,7 +15,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sal_osl_pipe, \ $(eval $(call gb_CppunitTest_use_libraries,sal_osl_pipe, \ sal \ - unotest \ $(gb_UWINAPI) \ )) diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx index 543b730e05c2..3e7276350397 100644 --- a/sal/qa/osl/pipe/osl_Pipe.cxx +++ b/sal/qa/osl/pipe/osl_Pipe.cxx @@ -24,9 +24,9 @@ #include "cppunit/TestFixture.h" #include "cppunit/extensions/HelperMacros.h" #include "cppunit/plugin/TestPlugIn.h" -#include "unotest/uniquepipename.hxx" #include <rtl/ustring.hxx> +#include <osl/test/uniquepipename.hxx> #include <osl/thread.hxx> #include <osl/mutex.hxx> diff --git a/unotest/Library_unotest.mk b/unotest/Library_unotest.mk index 315447cd6dd0..558b8a745361 100644 --- a/unotest/Library_unotest.mk +++ b/unotest/Library_unotest.mk @@ -39,7 +39,6 @@ $(eval $(call gb_Library_add_exception_objects,unotest,\ unotest/source/cpp/macros_test \ unotest/source/cpp/officeconnection \ unotest/source/cpp/toabsolutefileurl \ - unotest/source/cpp/uniquepipename \ )) # vim: set noet sw=4 ts=4: diff --git a/unotest/source/cpp/officeconnection.cxx b/unotest/source/cpp/officeconnection.cxx index 326b3325868e..51cc6df8de3d 100644 --- a/unotest/source/cpp/officeconnection.cxx +++ b/unotest/source/cpp/officeconnection.cxx @@ -27,12 +27,12 @@ #include "cppuhelper/bootstrap.hxx" #include "cppunit/TestAssert.h" #include "osl/process.h" +#include "osl/test/uniquepipename.hxx" #include "osl/time.h" #include "sal/macros.h" #include "sal/types.h" #include "unotest/officeconnection.hxx" #include "unotest/toabsolutefileurl.hxx" -#include "unotest/uniquepipename.hxx" #include "getargument.hxx" @@ -53,7 +53,7 @@ void OfficeConnection::setUp() { "soffice", &argSoffice)); if (argSoffice.match("path:")) { - desc = "pipe,name=" + uniquePipeName("oootest"); + desc = "pipe,name=" + osl::test::uniquePipeName("oootest"); OUString noquickArg("--quickstart=no"); OUString norestoreArg("--norestore"); OUString nologoArg("--nologo"); |