OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_CAPTURER_VIDEO_CAPTURER_MOCK_OBJECTS_H_ | |
6 #define REMOTING_CAPTURER_VIDEO_CAPTURER_MOCK_OBJECTS_H_ | |
7 | |
8 #include "remoting/capturer/capture_data.h" | |
9 #include "remoting/capturer/mouse_cursor_shape.h" | |
10 #include "remoting/capturer/video_frame_capturer.h" | |
11 #include "testing/gmock/include/gmock/gmock.h" | |
12 | |
13 namespace remoting { | |
14 | |
15 class MockVideoFrameCapturer : public VideoFrameCapturer { | |
16 public: | |
17 MockVideoFrameCapturer(); | |
18 virtual ~MockVideoFrameCapturer(); | |
19 | |
20 MOCK_METHOD1(Start, void(Delegate* delegate)); | |
21 MOCK_METHOD0(Stop, void()); | |
22 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region)); | |
23 MOCK_METHOD0(CaptureFrame, void()); | |
24 | |
25 private: | |
26 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturer); | |
27 }; | |
28 | |
29 class MockVideoFrameCapturerDelegate : public VideoFrameCapturer::Delegate { | |
30 public: | |
31 MockVideoFrameCapturerDelegate(); | |
32 virtual ~MockVideoFrameCapturerDelegate(); | |
33 | |
34 void OnCursorShapeChanged(scoped_ptr<MouseCursorShape> cursor_shape) OVERRIDE; | |
35 | |
36 MOCK_METHOD1(OnCaptureCompleted, void(scoped_refptr<CaptureData>)); | |
37 MOCK_METHOD1(OnCursorShapeChangedPtr, | |
38 void(MouseCursorShape* cursor_shape)); | |
39 | |
40 private: | |
41 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturerDelegate); | |
42 }; | |
43 | |
44 } // namespace remoting | |
45 | |
46 #endif // REMOTING_CAPTURER_VIDEO_CAPTURER_MOCK_OBJECTS_H_ | |
OLD | NEW |