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

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

Issue 17261013: Change the daemon start type to 'manual' if the host ID has been deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 7 years, 6 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/worker_process_ipc_delegate.h » ('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 6991996e4096c261e7c83cf36c89342847bb8435..a8f3c830faff0feaf0a50adba10d379be78fb6ec 100644
--- a/remoting/host/win/worker_process_launcher_unittest.cc
+++ b/remoting/host/win/worker_process_launcher_unittest.cc
@@ -62,7 +62,7 @@ class MockIpcDelegate : public WorkerProcessIpcDelegate {
// WorkerProcessIpcDelegate interface.
MOCK_METHOD1(OnChannelConnected, void(int32));
MOCK_METHOD1(OnMessageReceived, bool(const IPC::Message&));
- MOCK_METHOD0(OnPermanentError, void());
+ MOCK_METHOD1(OnPermanentError, void(int));
private:
DISALLOW_COPY_AND_ASSIGN(MockIpcDelegate);
@@ -387,7 +387,7 @@ TEST_F(WorkerProcessLauncherTest, Start) {
EXPECT_CALL(server_listener_, OnChannelConnected(_))
.Times(0);
- EXPECT_CALL(server_listener_, OnPermanentError())
+ EXPECT_CALL(server_listener_, OnPermanentError(_))
.Times(0);
StartWorker();
@@ -407,7 +407,7 @@ TEST_F(WorkerProcessLauncherTest, StartAndConnect) {
.Times(1)
.WillOnce(InvokeWithoutArgs(this,
&WorkerProcessLauncherTest::StopWorker));
- EXPECT_CALL(server_listener_, OnPermanentError())
+ EXPECT_CALL(server_listener_, OnPermanentError(_))
.Times(0);
StartWorker();
@@ -430,7 +430,7 @@ TEST_F(WorkerProcessLauncherTest, Restart) {
.WillOnce(InvokeWithoutArgs(this,
&WorkerProcessLauncherTest::StopWorker));
- EXPECT_CALL(server_listener_, OnPermanentError())
+ EXPECT_CALL(server_listener_, OnPermanentError(_))
.Times(0);
StartWorker();
@@ -453,7 +453,7 @@ TEST_F(WorkerProcessLauncherTest, DropIpcChannel) {
.WillOnce(InvokeWithoutArgs(
this, &WorkerProcessLauncherTest::StopWorker));
- EXPECT_CALL(server_listener_, OnPermanentError())
+ EXPECT_CALL(server_listener_, OnPermanentError(_))
.Times(0);
StartWorker();
@@ -473,7 +473,7 @@ TEST_F(WorkerProcessLauncherTest, PermanentError) {
.WillOnce(InvokeWithoutArgs(CreateFunctor(
this, &WorkerProcessLauncherTest::TerminateWorker,
kMinPermanentErrorExitCode)));
- EXPECT_CALL(server_listener_, OnPermanentError())
+ EXPECT_CALL(server_listener_, OnPermanentError(_))
.Times(1)
.WillOnce(InvokeWithoutArgs(this,
&WorkerProcessLauncherTest::StopWorker));
« no previous file with comments | « remoting/host/win/worker_process_launcher.cc ('k') | remoting/host/worker_process_ipc_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698