| Index: remoting/host/client_session_unittest.cc
|
| diff --git a/remoting/host/client_session_unittest.cc b/remoting/host/client_session_unittest.cc
|
| index 7cd21ee831213a6bc42dee1a2c25c9d2d1ff8801..d390cd634767afdb84dc75b199061f3c6be574e2 100644
|
| --- a/remoting/host/client_session_unittest.cc
|
| +++ b/remoting/host/client_session_unittest.cc
|
| @@ -83,6 +83,10 @@ class ClientSessionTest : public testing::Test {
|
| // DesktopEnvironment::CreateVideoCapturer().
|
| webrtc::ScreenCapturer* CreateVideoCapturer();
|
|
|
| + // Creates a MockMouseCursorMonitor, to mock
|
| + // DesktopEnvironment::CreateMouseCursorMonitor
|
| + webrtc::MouseCursorMonitor* CreateMouseCursorMonitor();
|
| +
|
| // Notifies the client session that the client connection has been
|
| // authenticated and channels have been connected. This effectively enables
|
| // the input pipe line and starts video capturing.
|
| @@ -198,6 +202,8 @@ DesktopEnvironment* ClientSessionTest::CreateDesktopEnvironment() {
|
| .Times(AtMost(1));
|
| EXPECT_CALL(*desktop_environment, CreateVideoCapturerPtr())
|
| .WillOnce(Invoke(this, &ClientSessionTest::CreateVideoCapturer));
|
| + EXPECT_CALL(*desktop_environment, CreateMouseCursorMonitorPtr())
|
| + .WillOnce(Invoke(this, &ClientSessionTest::CreateMouseCursorMonitor));
|
| EXPECT_CALL(*desktop_environment, GetCapabilities())
|
| .Times(AtMost(1));
|
| EXPECT_CALL(*desktop_environment, SetCapabilities(_))
|
| @@ -215,6 +221,10 @@ webrtc::ScreenCapturer* ClientSessionTest::CreateVideoCapturer() {
|
| return new ScreenCapturerFake();
|
| }
|
|
|
| +webrtc::MouseCursorMonitor* ClientSessionTest::CreateMouseCursorMonitor() {
|
| + return new MockMouseCursorMonitor();
|
| +}
|
| +
|
| void ClientSessionTest::ConnectClientSession() {
|
| client_session_->OnConnectionAuthenticated(client_session_->connection());
|
| client_session_->OnConnectionChannelsConnected(client_session_->connection());
|
|
|