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

Side by Side Diff: remoting/host/host_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
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/base/capture_data.h" 9 #include "remoting/capturer/capture_data.h"
10 #include "remoting/host/video_frame_capturer.h" 10 #include "remoting/capturer/video_frame_capturer.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/desktop_environment.h" 14 #include "remoting/host/desktop_environment.h"
15 #include "remoting/host/desktop_environment_factory.h" 15 #include "remoting/host/desktop_environment_factory.h"
16 #include "remoting/host/disconnect_window.h" 16 #include "remoting/host/disconnect_window.h"
17 #include "remoting/host/event_executor.h" 17 #include "remoting/host/event_executor.h"
18 #include "remoting/host/host_status_observer.h" 18 #include "remoting/host/host_status_observer.h"
19 #include "remoting/host/local_input_monitor.h" 19 #include "remoting/host/local_input_monitor.h"
20 #include "remoting/host/ui_strings.h" 20 #include "remoting/host/ui_strings.h"
21 #include "remoting/proto/control.pb.h" 21 #include "remoting/proto/control.pb.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 23
24 namespace remoting { 24 namespace remoting {
25 25
26 class MockVideoFrameCapturer : public VideoFrameCapturer {
27 public:
28 MockVideoFrameCapturer();
29 virtual ~MockVideoFrameCapturer();
30
31 MOCK_METHOD1(Start, void(Delegate* delegate));
32 MOCK_METHOD0(Stop, void());
33 MOCK_CONST_METHOD0(pixel_format, media::VideoFrame::Format());
34 MOCK_METHOD1(InvalidateRegion, void(const SkRegion& invalid_region));
35 MOCK_METHOD0(CaptureFrame, void());
36 MOCK_CONST_METHOD0(size_most_recent, const SkISize&());
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturer);
40 };
41
42 class MockVideoFrameCapturerDelegate : public VideoFrameCapturer::Delegate {
43 public:
44 MockVideoFrameCapturerDelegate();
45 virtual ~MockVideoFrameCapturerDelegate();
46
47 virtual void OnCursorShapeChanged(
48 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) OVERRIDE;
49
50 MOCK_METHOD1(OnCaptureCompleted, void(scoped_refptr<CaptureData>));
51 MOCK_METHOD1(OnCursorShapeChangedPtr, void(protocol::CursorShapeInfo*));
52
53 private:
54 DISALLOW_COPY_AND_ASSIGN(MockVideoFrameCapturerDelegate);
55 };
56
57 class MockDisconnectWindow : public DisconnectWindow { 26 class MockDisconnectWindow : public DisconnectWindow {
58 public: 27 public:
59 MockDisconnectWindow(); 28 MockDisconnectWindow();
60 virtual ~MockDisconnectWindow(); 29 virtual ~MockDisconnectWindow();
61 30
62 MOCK_METHOD3(Show, void(const UiStrings& ui_strings, 31 MOCK_METHOD3(Show, void(const UiStrings& ui_strings,
63 const DisconnectCallback& disconnect_callback, 32 const DisconnectCallback& disconnect_callback,
64 const std::string& username)); 33 const std::string& username));
65 MOCK_METHOD0(Hide, void()); 34 MOCK_METHOD0(Hide, void());
66 }; 35 };
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void(const std::string& jid, 121 void(const std::string& jid,
153 const std::string& channel_name, 122 const std::string& channel_name,
154 const protocol::TransportRoute& route)); 123 const protocol::TransportRoute& route));
155 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); 124 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login));
156 MOCK_METHOD0(OnShutdown, void()); 125 MOCK_METHOD0(OnShutdown, void());
157 }; 126 };
158 127
159 } // namespace remoting 128 } // namespace remoting
160 129
161 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 130 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698