| 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" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 MockMouseCursorMonitor(); | 159 MockMouseCursorMonitor(); |
| 160 ~MockMouseCursorMonitor() override; | 160 ~MockMouseCursorMonitor() override; |
| 161 | 161 |
| 162 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); | 162 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); |
| 163 MOCK_METHOD0(Capture, void()); | 163 MOCK_METHOD0(Capture, void()); |
| 164 | 164 |
| 165 private: | 165 private: |
| 166 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); | 166 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); |
| 167 }; | 167 }; |
| 168 | 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 | |
| 181 } // namespace remoting | 169 } // namespace remoting |
| 182 | 170 |
| 183 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |