OLD | NEW |
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" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 MockMouseCursorMonitor(); | 158 MockMouseCursorMonitor(); |
158 ~MockMouseCursorMonitor() override; | 159 ~MockMouseCursorMonitor() override; |
159 | 160 |
160 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); | 161 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); |
161 MOCK_METHOD0(Capture, void()); | 162 MOCK_METHOD0(Capture, void()); |
162 | 163 |
163 private: | 164 private: |
164 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); | 165 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); |
165 }; | 166 }; |
166 | 167 |
| 168 class MockVideoEncoder : public VideoEncoder { |
| 169 public: |
| 170 MockVideoEncoder(); |
| 171 ~MockVideoEncoder() override; |
| 172 |
| 173 MOCK_METHOD1(SetLosslessEncode, void(bool)); |
| 174 MOCK_METHOD1(SetLosslessColor, void(bool)); |
| 175 MOCK_METHOD1(EncodePtr, VideoPacket*(const webrtc::DesktopFrame&)); |
| 176 |
| 177 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override; |
| 178 }; |
| 179 |
167 } // namespace remoting | 180 } // namespace remoting |
168 | 181 |
169 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 182 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |