Kaydet (Commit) c87ecb0e authored tarafından David Tardon's avatar David Tardon

remove dep on unotest from osl_Pipe test

Change-Id: I5f5862a684e52bd3d1336fa9f8cffa77cdebbe4c
üst d015317f
......@@ -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) {
......@@ -35,6 +35,7 @@ OUString uniquePipeName(OUString const & name) {
return name + OUString::number(info.Ident);
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- 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: */
......@@ -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) \
))
......
......@@ -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>
......
......@@ -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:
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment