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

Side by Side Diff: remoting/host/host_mock_objects.h

Issue 10790075: Rename Capturer to VideoFrameCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased. Created 8 years, 5 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
« no previous file with comments | « remoting/host/event_executor_win.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
7 7
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "remoting/host/capturer.h" 9 #include "remoting/host/video_frame_capturer.h"
10 #include "remoting/host/chromoting_host_context.h" 10 #include "remoting/host/chromoting_host_context.h"
11 #include "remoting/host/client_session.h" 11 #include "remoting/host/client_session.h"
12 #include "remoting/host/continue_window.h" 12 #include "remoting/host/continue_window.h"
13 #include "remoting/host/disconnect_window.h" 13 #include "remoting/host/disconnect_window.h"
14 #include "remoting/host/event_executor.h" 14 #include "remoting/host/event_executor.h"
15 #include "remoting/host/host_status_observer.h" 15 #include "remoting/host/host_status_observer.h"
16 #include "remoting/host/local_input_monitor.h" 16 #include "remoting/host/local_input_monitor.h"
17 #include "remoting/host/user_authenticator.h" 17 #include "remoting/host/user_authenticator.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 19
20 namespace remoting { 20 namespace remoting {
21 21
22 class MockCaptureCompletedCallback { 22 class MockCaptureCompletedCallback {
23 public: 23 public:
24 MockCaptureCompletedCallback(); 24 MockCaptureCompletedCallback();
25 virtual ~MockCaptureCompletedCallback(); 25 virtual ~MockCaptureCompletedCallback();
26 26
27 MOCK_METHOD1(CaptureCompletedPtr, void(CaptureData* capture_data)); 27 MOCK_METHOD1(CaptureCompletedPtr, void(CaptureData* capture_data));
28 void CaptureCompleted(scoped_refptr<CaptureData> capture_data); 28 void CaptureCompleted(scoped_refptr<CaptureData> capture_data);
29 29
30 private: 30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockCaptureCompletedCallback); 31 DISALLOW_COPY_AND_ASSIGN(MockCaptureCompletedCallback);
32 }; 32 };
33 33
34 class MockCapturer : public Capturer { 34 class MockVideoFrameCapturer : public VideoFrameCapturer {
35 public: 35 public:
36 MockCapturer(); 36 MockVideoFrameCapturer();
37 virtual ~MockCapturer(); 37 virtual ~MockVideoFrameCapturer();
38 38
39 MOCK_METHOD1(Start, void(const CursorShapeChangedCallback& callback)); 39 MOCK_METHOD1(Start, void(const CursorShapeChangedCallback& callback));
40 MOCK_METHOD0(Stop, void()); 40 MOCK_METHOD0(Stop, void());
41 MOCK_METHOD0(ScreenConfigurationChanged, void()); 41 MOCK_METHOD0(ScreenConfigurationChanged, void());
42 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format()); 42 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format());
43 MOCK_METHOD0(ClearInvalidRegion, void()); 43 MOCK_METHOD0(ClearInvalidRegion, void());
44 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region)); 44 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region));
45 MOCK_METHOD1(InvalidateScreen, void(const SkISize&)); 45 MOCK_METHOD1(InvalidateScreen, void(const SkISize&));
46 MOCK_METHOD0(InvalidateFullScreen, void()); 46 MOCK_METHOD0(InvalidateFullScreen, void());
47 MOCK_METHOD1(CaptureInvalidRegion, 47 MOCK_METHOD1(CaptureInvalidRegion,
48 void(const CaptureCompletedCallback& callback)); 48 void(const CaptureCompletedCallback& callback));
49 MOCK_CONST_METHOD0(size_most_recent, const SkISize&()); 49 MOCK_CONST_METHOD0(size_most_recent, const SkISize&());
50 50
51 private: 51 private:
52 DISALLOW_COPY_AND_ASSIGN(MockCapturer); 52 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturer);
53 }; 53 };
54 54
55 class MockDisconnectWindow : public DisconnectWindow { 55 class MockDisconnectWindow : public DisconnectWindow {
56 public: 56 public:
57 MockDisconnectWindow(); 57 MockDisconnectWindow();
58 virtual ~MockDisconnectWindow(); 58 virtual ~MockDisconnectWindow();
59 59
60 MOCK_METHOD3(Show, void(remoting::ChromotingHost* host, 60 MOCK_METHOD3(Show, void(remoting::ChromotingHost* host,
61 const DisconnectCallback& disconnect_callback, 61 const DisconnectCallback& disconnect_callback,
62 const std::string& username)); 62 const std::string& username));
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 MOCK_METHOD2(Authenticate, bool(const std::string& username, 165 MOCK_METHOD2(Authenticate, bool(const std::string& username,
166 const std::string& password)); 166 const std::string& password));
167 167
168 private: 168 private:
169 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 169 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
170 }; 170 };
171 171
172 } // namespace remoting 172 } // namespace remoting
173 173
174 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 174 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/event_executor_win.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698