Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: remoting/capturer/capturer_mock_objects.h

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_CAPTURER_MOCK_OBJECTS_H_
Wez 2012/12/11 05:23:18 nit: Rename this video_capturer_mock_objects.h?
Sergey Ulanov 2012/12/12 18:31:12 Done.
6 #define REMOTING_CAPTURER_CAPTURER_MOCK_OBJECTS_H_
Wez 2012/12/11 05:23:18 Code review seems to have this as a new file, rath
Sergey Ulanov 2012/12/12 18:31:12 It's correct. I've moved only parts of host_mock_o
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_CONST_METHOD0(pixel_format, media::VideoFrame::Format());
23 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region));
24 MOCK_METHOD0(CaptureFrame, void());
25 MOCK_CONST_METHOD0(size_most_recent, const SkISize&());
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturer);
29 };
30
31 class MockVideoFrameCapturerDelegate : public VideoFrameCapturer::Delegate {
32 public:
33 MockVideoFrameCapturerDelegate();
34 virtual ~MockVideoFrameCapturerDelegate();
35
36 MOCK_METHOD1(OnCursorShapeChanged,
37 void(const MouseCursorShape& cursor_shape));
38 MOCK_METHOD1(OnCaptureCompleted, void(scoped_refptr<CaptureData>));
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturerDelegate);
42 };
43
44 } // namespace remoting
45
46 #endif // REMOTING_CAPTURER_CAPTURER_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698