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

Unified Diff: remoting/host/desktop_process_unittest.cc

Issue 1830853002: Make PlatformFileForTransit a class on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from mseaborn. Created 4 years, 9 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/daemon_process_win.cc ('k') | remoting/host/desktop_session_agent.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 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_ =
« no previous file with comments | « remoting/host/daemon_process_win.cc ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698