Index: remoting/host/ipc_desktop_environment_unittest.cc |
diff --git a/remoting/host/ipc_desktop_environment_unittest.cc b/remoting/host/ipc_desktop_environment_unittest.cc |
index 17d29c647d234ba8e4a1a1f71130a6e07fb6df3d..f93e1649267ce1312f7fdf8b1a7db32d6ca6e40e 100644 |
--- a/remoting/host/ipc_desktop_environment_unittest.cc |
+++ b/remoting/host/ipc_desktop_environment_unittest.cc |
@@ -129,6 +129,10 @@ class IpcDesktopEnvironmentTest : public testing::Test { |
// DesktopEnvironment::CreateEventExecutor(). |
EventExecutor* CreateEventExecutor(); |
+ // Creates a dummy SessionController, to mock |
+ // DesktopEnvironment::CreateSessionController(). |
+ SessionController* CreateSessionController(); |
+ |
// Creates a fake media::ScreenCapturer, to mock |
// DesktopEnvironment::CreateVideoCapturer(). |
media::ScreenCapturer* CreateVideoCapturer(); |
@@ -285,6 +289,10 @@ DesktopEnvironment* IpcDesktopEnvironmentTest::CreateDesktopEnvironment() { |
.WillRepeatedly( |
InvokeWithoutArgs(this, |
&IpcDesktopEnvironmentTest::CreateEventExecutor)); |
+ EXPECT_CALL(*desktop_environment, CreateSessionControllerPtr()) |
+ .Times(AnyNumber()) |
+ .WillRepeatedly(InvokeWithoutArgs( |
+ this, &IpcDesktopEnvironmentTest::CreateSessionController)); |
EXPECT_CALL(*desktop_environment, CreateVideoCapturerPtr(_, _)) |
.Times(AnyNumber()) |
.WillRepeatedly( |
@@ -305,6 +313,10 @@ EventExecutor* IpcDesktopEnvironmentTest::CreateEventExecutor() { |
return remote_event_executor_; |
} |
+SessionController* IpcDesktopEnvironmentTest::CreateSessionController() { |
+ return new MockSessionController(); |
+} |
+ |
media::ScreenCapturer* IpcDesktopEnvironmentTest::CreateVideoCapturer() { |
return new media::ScreenCapturerFake(); |
} |