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

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

Issue 1150163002: Update VideoFramePump to pass un-changed frames to encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work-around Visual Studio issue w/ undefined references Created 5 years, 6 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
« no previous file with comments | « remoting/host/fake_desktop_capturer.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 <string> 8 #include <string>
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
11 #include "remoting/codec/video_encoder.h"
11 #include "remoting/host/chromoting_host_context.h" 12 #include "remoting/host/chromoting_host_context.h"
12 #include "remoting/host/client_session.h" 13 #include "remoting/host/client_session.h"
13 #include "remoting/host/client_session_control.h" 14 #include "remoting/host/client_session_control.h"
14 #include "remoting/host/desktop_environment.h" 15 #include "remoting/host/desktop_environment.h"
15 #include "remoting/host/gnubby_auth_handler.h" 16 #include "remoting/host/gnubby_auth_handler.h"
16 #include "remoting/host/host_status_observer.h" 17 #include "remoting/host/host_status_observer.h"
17 #include "remoting/host/input_injector.h" 18 #include "remoting/host/input_injector.h"
18 #include "remoting/host/screen_controls.h" 19 #include "remoting/host/screen_controls.h"
19 #include "remoting/host/screen_resolution.h" 20 #include "remoting/host/screen_resolution.h"
20 #include "remoting/proto/control.pb.h" 21 #include "remoting/proto/control.pb.h"
21 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
22 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" 24 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
23 25
24 namespace base { 26 namespace base {
25 class SingleThreadTaskRunner; 27 class SingleThreadTaskRunner;
26 } // namespace base 28 } // namespace base
27 29
28 namespace remoting { 30 namespace remoting {
29 31
30 class MockDesktopEnvironment : public DesktopEnvironment { 32 class MockDesktopEnvironment : public DesktopEnvironment {
31 public: 33 public:
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 MockMouseCursorMonitor(); 159 MockMouseCursorMonitor();
158 ~MockMouseCursorMonitor() override; 160 ~MockMouseCursorMonitor() override;
159 161
160 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); 162 MOCK_METHOD2(Init, void(Callback* callback, Mode mode));
161 MOCK_METHOD0(Capture, void()); 163 MOCK_METHOD0(Capture, void());
162 164
163 private: 165 private:
164 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); 166 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor);
165 }; 167 };
166 168
169 class MockVideoEncoder : public VideoEncoder {
170 public:
171 MockVideoEncoder();
172 ~MockVideoEncoder() override;
173
174 MOCK_METHOD1(SetLosslessEncode, void(bool));
175 MOCK_METHOD1(SetLosslessColor, void(bool));
176 MOCK_METHOD1(EncodePtr, VideoPacket*(const webrtc::DesktopFrame&));
177
178 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override;
179 };
180
167 } // namespace remoting 181 } // namespace remoting
168 182
169 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 183 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/fake_desktop_capturer.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698