| Index: remoting/host/host_mock_objects.h
|
| diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
|
| index 930828b6583b72284fc59791d8180bd8c8f2a14c..348c591dad315b76470be35227c4cd0a0da14e2e 100644
|
| --- a/remoting/host/host_mock_objects.h
|
| +++ b/remoting/host/host_mock_objects.h
|
| @@ -19,6 +19,7 @@
|
| #include "remoting/host/screen_resolution.h"
|
| #include "remoting/proto/control.pb.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| +#include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
|
|
|
| namespace base {
|
| class SingleThreadTaskRunner;
|
| @@ -35,6 +36,7 @@ class MockDesktopEnvironment : public DesktopEnvironment {
|
| MOCK_METHOD0(CreateInputInjectorPtr, InputInjector*());
|
| MOCK_METHOD0(CreateScreenControlsPtr, ScreenControls*());
|
| MOCK_METHOD0(CreateVideoCapturerPtr, webrtc::ScreenCapturer*());
|
| + MOCK_METHOD0(CreateMouseCursorMonitorPtr, webrtc::MouseCursorMonitor*());
|
| MOCK_CONST_METHOD0(GetCapabilities, std::string());
|
| MOCK_METHOD1(SetCapabilities, void(const std::string&));
|
| MOCK_METHOD1(CreateGnubbyAuthHandlerPtr, GnubbyAuthHandler*(
|
| @@ -47,6 +49,8 @@ class MockDesktopEnvironment : public DesktopEnvironment {
|
| virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
|
| virtual scoped_ptr<GnubbyAuthHandler> CreateGnubbyAuthHandler(
|
| protocol::ClientStub* client_stub) OVERRIDE;
|
| + virtual scoped_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor()
|
| + OVERRIDE;
|
| };
|
|
|
| class MockClientSessionControl : public ClientSessionControl {
|
| @@ -147,6 +151,18 @@ class MockGnubbyAuthHandler : public GnubbyAuthHandler {
|
| DISALLOW_COPY_AND_ASSIGN(MockGnubbyAuthHandler);
|
| };
|
|
|
| +class MockMouseCursorMonitor : public webrtc::MouseCursorMonitor {
|
| + public:
|
| + MockMouseCursorMonitor();
|
| + virtual ~MockMouseCursorMonitor();
|
| +
|
| + MOCK_METHOD2(Init, void(Callback* callback, Mode mode));
|
| + MOCK_METHOD0(Capture, void());
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor);
|
| +};
|
| +
|
| } // namespace remoting
|
|
|
| #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
|
|
|