Index: remoting/host/desktop_process_unittest.cc |
diff --git a/remoting/host/desktop_process_unittest.cc b/remoting/host/desktop_process_unittest.cc |
index 97d0249d803218a851c593c8d0090d3bbbfefa05..1cde44e6eab7f8f890c481855cc4148807c82802 100644 |
--- a/remoting/host/desktop_process_unittest.cc |
+++ b/remoting/host/desktop_process_unittest.cc |
@@ -17,6 +17,7 @@ |
#include "base/run_loop.h" |
#include "base/single_thread_task_runner.h" |
#include "build/build_config.h" |
+#include "ipc/attachment_broker_privileged.h" |
#include "ipc/ipc_channel.h" |
#include "ipc/ipc_channel_proxy.h" |
#include "ipc/ipc_listener.h" |
@@ -172,6 +173,7 @@ DesktopProcessTest::~DesktopProcessTest() { |
} |
void DesktopProcessTest::SetUp() { |
+ IPC::AttachmentBrokerPrivileged::CreateBrokerForSingleProcessTests(); |
} |
void DesktopProcessTest::TearDown() { |
@@ -183,7 +185,7 @@ void DesktopProcessTest::ConnectNetworkChannel( |
#if defined(OS_POSIX) |
IPC::ChannelHandle channel_handle(std::string(), desktop_process); |
#elif defined(OS_WIN) |
- IPC::ChannelHandle channel_handle(desktop_process); |
+ IPC::ChannelHandle channel_handle(desktop_process.GetHandle()); |
#endif // defined(OS_WIN) |
network_channel_ = |