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

Unified Diff: remoting/host/desktop_process_unittest.cc

Issue 2446053002: Use ChannelMojo between the remoting daemon and desktop processes. (Closed)
Patch Set: Created 4 years, 2 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 | « remoting/host/desktop_process_main.cc ('k') | remoting/host/ipc_desktop_environment_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_process_unittest.cc
diff --git a/remoting/host/desktop_process_unittest.cc b/remoting/host/desktop_process_unittest.cc
index a817c2bc40ffef910da1aa442246ad492d520558..5d3315b898139901d1912dd21f93f79fab02f8e5 100644
--- a/remoting/host/desktop_process_unittest.cc
+++ b/remoting/host/desktop_process_unittest.cc
@@ -265,10 +265,10 @@ void DesktopProcessTest::RunDesktopProcess() {
io_task_runner_ = AutoThread::CreateWithType(
"IPC thread", ui_task_runner, base::MessageLoop::TYPE_IO);
- std::string channel_name = IPC::Channel::GenerateUniqueRandomChannelID();
+ mojo::MessagePipe pipe;
daemon_channel_ = IPC::ChannelProxy::Create(
- IPC::ChannelHandle(channel_name), IPC::Channel::MODE_SERVER,
- &daemon_listener_, io_task_runner_.get());
+ pipe.handle0.release(), IPC::Channel::MODE_SERVER, &daemon_listener_,
+ io_task_runner_.get());
std::unique_ptr<MockDesktopEnvironmentFactory> desktop_environment_factory(
new MockDesktopEnvironmentFactory());
@@ -280,7 +280,8 @@ void DesktopProcessTest::RunDesktopProcess() {
.Times(AnyNumber())
.WillRepeatedly(Return(false));
- DesktopProcess desktop_process(ui_task_runner, io_task_runner_, channel_name);
+ DesktopProcess desktop_process(ui_task_runner, io_task_runner_,
+ io_task_runner_, std::move(pipe.handle1));
EXPECT_TRUE(desktop_process.Start(std::move(desktop_environment_factory)));
ui_task_runner = nullptr;
« no previous file with comments | « remoting/host/desktop_process_main.cc ('k') | remoting/host/ipc_desktop_environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698