| Index: remoting/host/chromoting_host_unittest.cc
|
| diff --git a/remoting/host/chromoting_host_unittest.cc b/remoting/host/chromoting_host_unittest.cc
|
| index b71c3883052c2b237a661100e27a1dc24949c836..67991955111967cd9a96ca0cb25bfb6d8fd97766 100644
|
| --- a/remoting/host/chromoting_host_unittest.cc
|
| +++ b/remoting/host/chromoting_host_unittest.cc
|
| @@ -11,6 +11,7 @@
|
| #include "remoting/host/chromoting_host.h"
|
| #include "remoting/host/chromoting_host_context.h"
|
| #include "remoting/host/desktop_environment.h"
|
| +#include "remoting/host/fake_mouse_cursor_monitor.h"
|
| #include "remoting/host/fake_screen_capturer.h"
|
| #include "remoting/host/host_mock_objects.h"
|
| #include "remoting/proto/video.pb.h"
|
| @@ -249,6 +250,9 @@ class ChromotingHostTest : public testing::Test {
|
| EXPECT_CALL(*desktop_environment, CreateVideoCapturerPtr())
|
| .Times(AtMost(1))
|
| .WillOnce(Invoke(this, &ChromotingHostTest::CreateVideoCapturer));
|
| + EXPECT_CALL(*desktop_environment, CreateMouseCursorMonitorPtr())
|
| + .Times(AtMost(1))
|
| + .WillOnce(Invoke(this, &ChromotingHostTest::CreateMouseCursorMonitor));
|
| EXPECT_CALL(*desktop_environment, GetCapabilities())
|
| .Times(AtMost(1));
|
| EXPECT_CALL(*desktop_environment, SetCapabilities(_))
|
| @@ -271,6 +275,12 @@ class ChromotingHostTest : public testing::Test {
|
| return new FakeScreenCapturer();
|
| }
|
|
|
| + // Creates a MockMouseCursorMonitor, to mock
|
| + // DesktopEnvironment::CreateMouseCursorMonitor().
|
| + webrtc::MouseCursorMonitor* CreateMouseCursorMonitor() {
|
| + return new FakeMouseCursorMonitor();
|
| + }
|
| +
|
| void DisconnectAllClients() {
|
| host_->DisconnectAllClients();
|
| }
|
|
|