Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.h

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.h
diff --git a/third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.h b/third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.h
deleted file mode 100644
index 3ee386cb601096e62897d3f403096f6a1171f3fa..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/edk/system/message_pipe_test_utils.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_
-
-#include "base/test/test_io_thread.h"
-#include "mojo/public/cpp/system/macros.h"
-#include "third_party/mojo/src/mojo/edk/embedder/simple_platform_support.h"
-#include "third_party/mojo/src/mojo/edk/system/channel.h"
-#include "third_party/mojo/src/mojo/edk/system/test_utils.h"
-#include "third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.h"
-
-namespace mojo {
-namespace system {
-
-class Channel;
-class ChannelEndpoint;
-class MessagePipe;
-
-namespace test {
-
-MojoResult WaitIfNecessary(scoped_refptr<MessagePipe> mp,
- MojoHandleSignals signals,
- HandleSignalsState* signals_state);
-
-class ChannelThread {
- public:
- explicit ChannelThread(embedder::PlatformSupport* platform_support);
- ~ChannelThread();
-
- void Start(embedder::ScopedPlatformHandle platform_handle,
- scoped_refptr<ChannelEndpoint> channel_endpoint);
- void Stop();
-
- private:
- void InitChannelOnIOThread(embedder::ScopedPlatformHandle platform_handle,
- scoped_refptr<ChannelEndpoint> channel_endpoint);
- void ShutdownChannelOnIOThread();
-
- embedder::PlatformSupport* const platform_support_;
- base::TestIOThread test_io_thread_;
- scoped_refptr<Channel> channel_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(ChannelThread);
-};
-
-#if !defined(OS_IOS)
-class MultiprocessMessagePipeTestBase : public testing::Test {
- public:
- MultiprocessMessagePipeTestBase();
- ~MultiprocessMessagePipeTestBase() override;
-
- protected:
- void Init(scoped_refptr<ChannelEndpoint> ep);
-
- embedder::PlatformSupport* platform_support() { return &platform_support_; }
- mojo::test::MultiprocessTestHelper* helper() { return &helper_; }
-
- private:
- embedder::SimplePlatformSupport platform_support_;
- ChannelThread channel_thread_;
- mojo::test::MultiprocessTestHelper helper_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase);
-};
-#endif
-
-} // namespace test
-} // namespace system
-} // namespace mojo
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698