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

Unified Diff: remoting/host/win/worker_process_launcher_unittest.cc

Issue 602763003: Remove implicit HANDLE conversions from remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/win/worker_process_launcher.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/worker_process_launcher_unittest.cc
diff --git a/remoting/host/win/worker_process_launcher_unittest.cc b/remoting/host/win/worker_process_launcher_unittest.cc
index e47d2fa2988fc689358eff335be0d930998a8623..32c00c2228fcbcd743ae4290ea2cb2afa47e5d57 100644
--- a/remoting/host/win/worker_process_launcher_unittest.cc
+++ b/remoting/host/win/worker_process_launcher_unittest.cc
@@ -262,14 +262,14 @@ void WorkerProcessLauncherTest::KillProcess() {
event_handler_ = NULL;
if (worker_process_.IsValid()) {
- TerminateProcess(worker_process_, CONTROL_C_EXIT);
+ TerminateProcess(worker_process_.Get(), CONTROL_C_EXIT);
worker_process_.Close();
}
}
void WorkerProcessLauncherTest::TerminateWorker(DWORD exit_code) {
if (worker_process_.IsValid())
- TerminateProcess(worker_process_, exit_code);
+ TerminateProcess(worker_process_.Get(), exit_code);
}
void WorkerProcessLauncherTest::ConnectClient() {
@@ -362,11 +362,12 @@ void WorkerProcessLauncherTest::DoLaunchProcess() {
// Wrap the pipe into an IPC channel.
channel_server_ = IPC::ChannelProxy::Create(
- IPC::ChannelHandle(pipe), IPC::Channel::MODE_SERVER, this, task_runner_);
+ IPC::ChannelHandle(pipe.Get()), IPC::Channel::MODE_SERVER, this,
+ task_runner_);
HANDLE temp_handle;
ASSERT_TRUE(DuplicateHandle(GetCurrentProcess(),
- worker_process_,
+ worker_process_.Get(),
GetCurrentProcess(),
&temp_handle,
0,
« no previous file with comments | « remoting/host/win/worker_process_launcher.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698