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

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

Issue 1680643002: Refactor gmock_mutant.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/it2me/it2me_confirmation_dialog_proxy_unittest.cc ('k') | testing/generate_gmock_mutant.py » ('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 840c2d547712a5c31cde9696435fded46017da38..ba27372e95d167688c8a9a63f4aefe9230e43b05 100644
--- a/remoting/host/win/worker_process_launcher_unittest.cc
+++ b/remoting/host/win/worker_process_launcher_unittest.cc
@@ -424,7 +424,8 @@ TEST_F(WorkerProcessLauncherTest, Restart) {
EXPECT_CALL(server_listener_, OnChannelConnected(_))
.Times(2)
.WillOnce(InvokeWithoutArgs(CreateFunctor(
- this, &WorkerProcessLauncherTest::TerminateWorker,
+ &WorkerProcessLauncherTest::TerminateWorker,
+ base::Unretained(this),
CONTROL_C_EXIT)))
.WillOnce(InvokeWithoutArgs(this,
&WorkerProcessLauncherTest::StopWorker));
@@ -470,7 +471,8 @@ TEST_F(WorkerProcessLauncherTest, PermanentError) {
EXPECT_CALL(server_listener_, OnChannelConnected(_))
.Times(1)
.WillOnce(InvokeWithoutArgs(CreateFunctor(
- this, &WorkerProcessLauncherTest::TerminateWorker,
+ &WorkerProcessLauncherTest::TerminateWorker,
+ base::Unretained(this),
kMinPermanentErrorExitCode)));
EXPECT_CALL(server_listener_, OnPermanentError(_))
.Times(1)
@@ -498,7 +500,8 @@ TEST_F(WorkerProcessLauncherTest, Crash) {
EXPECT_CALL(client_listener_, OnCrash(_, _, _))
.Times(1)
.WillOnce(InvokeWithoutArgs(CreateFunctor(
- this, &WorkerProcessLauncherTest::TerminateWorker,
+ &WorkerProcessLauncherTest::TerminateWorker,
+ base::Unretained(this),
EXCEPTION_BREAKPOINT)));
StartWorker();
« no previous file with comments | « remoting/host/it2me/it2me_confirmation_dialog_proxy_unittest.cc ('k') | testing/generate_gmock_mutant.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698