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

Side by Side Diff: media/video/capture/screen/screen_capturer_mock_objects.h

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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 MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_MOCK_OBJECTS_H_
6 #define MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_MOCK_OBJECTS_H_
7
8 #include "media/video/capture/screen/mouse_cursor_shape.h"
9 #include "media/video/capture/screen/screen_capture_data.h"
10 #include "media/video/capture/screen/screen_capturer.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 namespace media {
14
15 class MockScreenCapturer : public ScreenCapturer {
16 public:
17 MockScreenCapturer();
18 virtual ~MockScreenCapturer();
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(MockScreenCapturer);
27 };
28
29 class MockScreenCapturerDelegate : public ScreenCapturer::Delegate {
30 public:
31 MockScreenCapturerDelegate();
32 virtual ~MockScreenCapturerDelegate();
33
34 void OnCursorShapeChanged(scoped_ptr<MouseCursorShape> cursor_shape) OVERRIDE;
35
36 MOCK_METHOD1(OnCaptureCompleted, void(scoped_refptr<ScreenCaptureData>));
37 MOCK_METHOD1(OnCursorShapeChangedPtr,
38 void(MouseCursorShape* cursor_shape));
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(MockScreenCapturerDelegate);
42 };
43
44 } // namespace media
45
46 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURER_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « media/video/capture/screen/screen_capturer_mac_unittest.cc ('k') | media/video/capture/screen/screen_capturer_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698