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

Side by Side Diff: remoting/host/win/worker_process_launcher_unittest.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/win/worker_process_launcher.h" 5 #include "remoting/host/win/worker_process_launcher.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 base::MessageLoopForIO message_loop_; 160 base::MessageLoopForIO message_loop_;
161 scoped_refptr<AutoThreadTaskRunner> task_runner_; 161 scoped_refptr<AutoThreadTaskRunner> task_runner_;
162 162
163 // Receives messages sent to the worker process. 163 // Receives messages sent to the worker process.
164 MockWorkerListener client_listener_; 164 MockWorkerListener client_listener_;
165 165
166 // Receives messages sent from the worker process. 166 // Receives messages sent from the worker process.
167 MockIpcDelegate server_listener_; 167 MockIpcDelegate server_listener_;
168 168
169 // Implements WorkerProcessLauncher::Delegate. 169 // Implements WorkerProcessLauncher::Delegate.
170 scoped_ptr<MockProcessLauncherDelegate> launcher_delegate_; 170 std::unique_ptr<MockProcessLauncherDelegate> launcher_delegate_;
171 171
172 // The name of the IPC channel. 172 // The name of the IPC channel.
173 std::string channel_name_; 173 std::string channel_name_;
174 174
175 // Client and server ends of the IPC channel. 175 // Client and server ends of the IPC channel.
176 scoped_ptr<IPC::ChannelProxy> channel_client_; 176 std::unique_ptr<IPC::ChannelProxy> channel_client_;
177 scoped_ptr<IPC::ChannelProxy> channel_server_; 177 std::unique_ptr<IPC::ChannelProxy> channel_server_;
178 178
179 WorkerProcessLauncher* event_handler_; 179 WorkerProcessLauncher* event_handler_;
180 180
181 // The worker process launcher. 181 // The worker process launcher.
182 scoped_ptr<WorkerProcessLauncher> launcher_; 182 std::unique_ptr<WorkerProcessLauncher> launcher_;
183 183
184 // An event that is used to emulate the worker process's handle. 184 // An event that is used to emulate the worker process's handle.
185 ScopedHandle worker_process_; 185 ScopedHandle worker_process_;
186 }; 186 };
187 187
188 WorkerProcessLauncherTest::WorkerProcessLauncherTest() 188 WorkerProcessLauncherTest::WorkerProcessLauncherTest()
189 : event_handler_(nullptr) { 189 : event_handler_(nullptr) {
190 } 190 }
191 191
192 WorkerProcessLauncherTest::~WorkerProcessLauncherTest() { 192 WorkerProcessLauncherTest::~WorkerProcessLauncherTest() {
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 EXPECT_CALL(client_listener_, OnCrash(_, _, _)) 527 EXPECT_CALL(client_listener_, OnCrash(_, _, _))
528 .Times(1) 528 .Times(1)
529 .WillOnce(InvokeWithoutArgs( 529 .WillOnce(InvokeWithoutArgs(
530 this, &WorkerProcessLauncherTest::SendFakeMessageToLauncher)); 530 this, &WorkerProcessLauncherTest::SendFakeMessageToLauncher));
531 531
532 StartWorker(); 532 StartWorker();
533 message_loop_.Run(); 533 message_loop_.Run();
534 } 534 }
535 535
536 } // namespace remoting 536 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/worker_process_launcher.cc ('k') | remoting/host/win/wts_session_process_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698