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

Unified Diff: mojo/edk/system/multiprocess_message_pipe_unittest.cc

Issue 2596363002: [mojo] Delete RemoteMessagePipeBootstrap (Closed)
Patch Set: rebased Created 3 years, 11 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
« no previous file with comments | « mojo/edk/system/core.cc ('k') | mojo/edk/system/remote_message_pipe_bootstrap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/multiprocess_message_pipe_unittest.cc
diff --git a/mojo/edk/system/multiprocess_message_pipe_unittest.cc b/mojo/edk/system/multiprocess_message_pipe_unittest.cc
index 11bb4053ac625bb08e28a5ee23f79ff14a89ec96..2ba0c3885c57018bc5248dfa2e1fe604dcaab7f7 100644
--- a/mojo/edk/system/multiprocess_message_pipe_unittest.cc
+++ b/mojo/edk/system/multiprocess_message_pipe_unittest.cc
@@ -1258,44 +1258,6 @@ TEST_P(MultiprocessMessagePipeTestWithPeerSupport, WriteCloseSendPeer) {
END_CHILD()
}
-DEFINE_TEST_CLIENT_TEST_WITH_PIPE(BootstrapMessagePipeAsyncClient,
- MultiprocessMessagePipeTest, parent) {
- // Receive one end of a platform channel from the parent.
- MojoHandle channel_handle;
- EXPECT_EQ("hi", ReadMessageWithHandles(parent, &channel_handle, 1));
- ScopedPlatformHandle channel;
- EXPECT_EQ(MOJO_RESULT_OK,
- edk::PassWrappedPlatformHandle(channel_handle, &channel));
- ASSERT_TRUE(channel.is_valid());
-
- // Create a new pipe using our end of the channel.
- ScopedMessagePipeHandle pipe = edk::CreateMessagePipe(std::move(channel));
-
- // Ensure that we can read and write on the new pipe.
- VerifyEcho(pipe.get().value(), "goodbye");
-}
-
-TEST_F(MultiprocessMessagePipeTest, BootstrapMessagePipeAsync) {
- // Tests that new cross-process message pipes can be created synchronously
- // using asynchronous negotiation over an arbitrary platform channel.
- RUN_CHILD_ON_PIPE(BootstrapMessagePipeAsyncClient, child)
- // Pass one end of a platform channel to the child.
- PlatformChannelPair platform_channel;
- MojoHandle client_channel_handle;
- EXPECT_EQ(MOJO_RESULT_OK,
- CreatePlatformHandleWrapper(platform_channel.PassClientHandle(),
- &client_channel_handle));
- WriteMessageWithHandles(child, "hi", &client_channel_handle, 1);
-
- // Create a new pipe using our end of the channel.
- ScopedMessagePipeHandle pipe =
- edk::CreateMessagePipe(platform_channel.PassServerHandle());
-
- // Ensure that we can read and write on the new pipe.
- VerifyEcho(pipe.get().value(), "goodbye");
- END_CHILD()
-}
-
DEFINE_TEST_CLIENT_TEST_WITH_PIPE(MessagePipeStatusChangeInTransitClient,
MultiprocessMessagePipeTest, parent) {
// This test verifies that peer closure is detectable through various
« no previous file with comments | « mojo/edk/system/core.cc ('k') | mojo/edk/system/remote_message_pipe_bootstrap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698