#define WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_MOCK_OBJECTS_H_
#include "testing/gmock/include/gmock/gmock.h"
-#include "webrtc/modules/desktop_capture/mouse_cursor_shape.h"
#include "webrtc/modules/desktop_capture/screen_capturer.h"
namespace webrtc {
MOCK_METHOD1(Start, void(Callback* callback));
MOCK_METHOD1(Capture, void(const DesktopRegion& region));
- MOCK_METHOD1(SetMouseShapeObserver, void(
- MouseShapeObserver* mouse_shape_observer));
MOCK_METHOD1(GetScreenList, bool(ScreenList* screens));
MOCK_METHOD1(SelectScreen, bool(ScreenId id));
DISALLOW_COPY_AND_ASSIGN(MockScreenCapturerCallback);
};
-class MockMouseShapeObserver : public ScreenCapturer::MouseShapeObserver {
- public:
- MockMouseShapeObserver() {}
- virtual ~MockMouseShapeObserver() {}
-
- void OnCursorShapeChanged(MouseCursorShape* cursor_shape) OVERRIDE {
- OnCursorShapeChangedPtr(cursor_shape);
- delete cursor_shape;
- }
-
- MOCK_METHOD1(OnCursorShapeChangedPtr,
- void(MouseCursorShape* cursor_shape));
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockMouseShapeObserver);
-};
-
-
} // namespace webrtc
#endif // WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_MOCK_OBJECTS_H_