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 5bea81292c9c8cc21fdca7894e05b35cd2557c30..0ecec3cac60678c4cb080d60be6f79a6c67b5f96 100644 |
--- a/remoting/host/ipc_desktop_environment_unittest.cc |
+++ b/remoting/host/ipc_desktop_environment_unittest.cc |
@@ -141,6 +141,10 @@ class IpcDesktopEnvironmentTest : public testing::Test { |
// DesktopEnvironment::CreateVideoCapturer(). |
webrtc::ScreenCapturer* CreateVideoCapturer(); |
+ // Creates a MockMouseCursorMonitor, to mock |
+ // DesktopEnvironment::CreateMouseCursorMonitor |
+ webrtc::MouseCursorMonitor* CreateMouseCursorMonitor(); |
+ |
void DeleteDesktopEnvironment(); |
// Forwards |event| to |clipboard_stub_|. |
@@ -324,6 +328,10 @@ DesktopEnvironment* IpcDesktopEnvironmentTest::CreateDesktopEnvironment() { |
.Times(AtMost(1)) |
.WillOnce(Invoke( |
this, &IpcDesktopEnvironmentTest::CreateVideoCapturer)); |
+ EXPECT_CALL(*desktop_environment, CreateMouseCursorMonitorPtr()) |
+ .Times(AtMost(1)) |
+ .WillOnce(Invoke( |
+ this, &IpcDesktopEnvironmentTest::CreateMouseCursorMonitor)); |
EXPECT_CALL(*desktop_environment, GetCapabilities()) |
.Times(AtMost(1)); |
EXPECT_CALL(*desktop_environment, SetCapabilities(_)) |
@@ -347,6 +355,11 @@ webrtc::ScreenCapturer* IpcDesktopEnvironmentTest::CreateVideoCapturer() { |
return new ScreenCapturerFake(); |
} |
+webrtc::MouseCursorMonitor* |
+IpcDesktopEnvironmentTest::CreateMouseCursorMonitor() { |
+ return new MockMouseCursorMonitor(); |
+} |
+ |
void IpcDesktopEnvironmentTest::DeleteDesktopEnvironment() { |
input_injector_.reset(); |
screen_controls_.reset(); |