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

Unified Diff: ppapi/proxy/ppapi_proxy_test.cc

Issue 2484943004: Remove unused parts of IPC::ChannelHandle. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « ppapi/nacl_irt/irt_start.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppapi_proxy_test.cc
diff --git a/ppapi/proxy/ppapi_proxy_test.cc b/ppapi/proxy/ppapi_proxy_test.cc
index 0c61439deab6caed6a63d28b4cfa68f85c5187a8..587d0de315dd4ec5c99593c2abb8046ba764ce72 100644
--- a/ppapi/proxy/ppapi_proxy_test.cc
+++ b/ppapi/proxy/ppapi_proxy_test.cc
@@ -547,19 +547,18 @@ void TwoWayTest::SetUp() {
io_thread_.StartWithOptions(options);
plugin_thread_.Start();
- IPC::ChannelHandle local_handle, remote_handle;
- IPC::Channel::GenerateMojoChannelHandlePair("TwoWayTestChannel",
- &local_handle, &remote_handle);
+ mojo::MessagePipe pipe;
base::WaitableEvent remote_harness_set_up(
base::WaitableEvent::ResetPolicy::MANUAL,
base::WaitableEvent::InitialState::NOT_SIGNALED);
plugin_thread_.task_runner()->PostTask(
- FROM_HERE, base::Bind(&SetUpRemoteHarness, remote_harness_, remote_handle,
- base::RetainedRef(io_thread_.task_runner()),
- &shutdown_event_, &remote_harness_set_up));
+ FROM_HERE,
+ base::Bind(&SetUpRemoteHarness, remote_harness_, pipe.handle0.release(),
+ base::RetainedRef(io_thread_.task_runner()), &shutdown_event_,
+ &remote_harness_set_up));
remote_harness_set_up.Wait();
local_harness_->SetUpHarnessWithChannel(
- local_handle, io_thread_.task_runner().get(), &shutdown_event_,
+ pipe.handle1.release(), io_thread_.task_runner().get(), &shutdown_event_,
true); // is_client
}
« no previous file with comments | « ppapi/nacl_irt/irt_start.cc ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698