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

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

Issue 10696134: remoting/host: Rename Capturer to VideoFrameCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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/curtain.h" 10 #include "remoting/host/curtain.h"
11 #include "remoting/host/chromoting_host_context.h" 11 #include "remoting/host/chromoting_host_context.h"
12 #include "remoting/host/client_session.h" 12 #include "remoting/host/client_session.h"
13 #include "remoting/host/continue_window.h" 13 #include "remoting/host/continue_window.h"
14 #include "remoting/host/disconnect_window.h" 14 #include "remoting/host/disconnect_window.h"
15 #include "remoting/host/event_executor.h" 15 #include "remoting/host/event_executor.h"
16 #include "remoting/host/host_status_observer.h" 16 #include "remoting/host/host_status_observer.h"
17 #include "remoting/host/local_input_monitor.h" 17 #include "remoting/host/local_input_monitor.h"
18 #include "remoting/host/user_authenticator.h" 18 #include "remoting/host/user_authenticator.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 20
21 namespace remoting { 21 namespace remoting {
22 22
23 class MockCapturer : public Capturer { 23 class MockVideoFrameCapturer : public VideoFrameCapturer {
24 public: 24 public:
25 MockCapturer(); 25 MockVideoFrameCapturer();
26 virtual ~MockCapturer(); 26 virtual ~MockVideoFrameCapturer();
27 27
28 MOCK_METHOD1(Start, void(const CursorShapeChangedCallback& callback)); 28 MOCK_METHOD1(Start, void(const CursorShapeChangedCallback& callback));
29 MOCK_METHOD0(Stop, void()); 29 MOCK_METHOD0(Stop, void());
30 MOCK_METHOD0(ScreenConfigurationChanged, void()); 30 MOCK_METHOD0(ScreenConfigurationChanged, void());
31 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format()); 31 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format());
32 MOCK_METHOD0(ClearInvalidRegion, void()); 32 MOCK_METHOD0(ClearInvalidRegion, void());
33 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region)); 33 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region));
34 MOCK_METHOD1(InvalidateScreen, void(const SkISize&)); 34 MOCK_METHOD1(InvalidateScreen, void(const SkISize&));
35 MOCK_METHOD0(InvalidateFullScreen, void()); 35 MOCK_METHOD0(InvalidateFullScreen, void());
36 MOCK_METHOD1(CaptureInvalidRegion, 36 MOCK_METHOD1(CaptureInvalidRegion,
37 void(const CaptureCompletedCallback& callback)); 37 void(const CaptureCompletedCallback& callback));
38 MOCK_CONST_METHOD0(size_most_recent, const SkISize&()); 38 MOCK_CONST_METHOD0(size_most_recent, const SkISize&());
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(MockCapturer); 41 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturer);
42 }; 42 };
43 43
44 class MockCurtain : public Curtain { 44 class MockCurtain : public Curtain {
45 public: 45 public:
46 MockCurtain(); 46 MockCurtain();
47 virtual ~MockCurtain(); 47 virtual ~MockCurtain();
48 48
49 MOCK_METHOD1(EnableCurtainMode, void(bool enable)); 49 MOCK_METHOD1(EnableCurtainMode, void(bool enable));
50 }; 50 };
51 51
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 MOCK_METHOD2(Authenticate, bool(const std::string& username, 162 MOCK_METHOD2(Authenticate, bool(const std::string& username,
163 const std::string& password)); 163 const std::string& password));
164 164
165 private: 165 private:
166 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 166 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
167 }; 167 };
168 168
169 } // namespace remoting 169 } // namespace remoting
170 170
171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698