| Index: remoting/host/host_mock_objects.h
|
| diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
|
| index b5f1db9b810ff79a231adecc0d8b232710253531..bb1bd5a4380a0dfa2b359f6758ced82ca16cd91e 100644
|
| --- a/remoting/host/host_mock_objects.h
|
| +++ b/remoting/host/host_mock_objects.h
|
| @@ -16,6 +16,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;
|
| @@ -32,6 +33,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&));
|
|
|
| @@ -40,6 +42,8 @@ class MockDesktopEnvironment : public DesktopEnvironment {
|
| virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
|
| virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE;
|
| virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
|
| + virtual scoped_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor()
|
| + OVERRIDE;
|
| };
|
|
|
| class MockClientSessionControl : public ClientSessionControl {
|
| @@ -126,6 +130,18 @@ class MockHostStatusObserver : public HostStatusObserver {
|
| MOCK_METHOD0(OnShutdown, void());
|
| };
|
|
|
| +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_
|
|
|