| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "remoting/protocol/fake_connection_to_client.h" | 5 #include "remoting/protocol/fake_connection_to_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "remoting/codec/video_encoder.h" | 9 #include "remoting/codec/video_encoder.h" |
| 10 #include "remoting/protocol/session.h" | 10 #include "remoting/protocol/session.h" |
| 11 #include "remoting/protocol/video_frame_pump.h" | 11 #include "remoting/protocol/video_frame_pump.h" |
| 12 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 namespace protocol { | 15 namespace protocol { |
| 16 | 16 |
| 17 FakeVideoStream::FakeVideoStream() : weak_factory_(this) {} | 17 FakeVideoStream::FakeVideoStream() : weak_factory_(this) {} |
| 18 FakeVideoStream::~FakeVideoStream() {} | 18 FakeVideoStream::~FakeVideoStream() {} |
| 19 | 19 |
| 20 void FakeVideoStream::Pause(bool pause) {} | 20 void FakeVideoStream::Pause(bool pause) {} |
| 21 | 21 |
| 22 void FakeVideoStream::OnInputEventReceived(int64_t event_timestamp) {} | 22 void FakeVideoStream::OnInputEventReceived(int64_t event_timestamp) {} |
| 23 | 23 |
| 24 void FakeVideoStream::SetLosslessEncode(bool want_lossless) {} | 24 void FakeVideoStream::SetLosslessEncode(bool want_lossless) {} |
| 25 | 25 |
| 26 void FakeVideoStream::SetLosslessColor(bool want_lossless) {} | 26 void FakeVideoStream::SetLosslessColor(bool want_lossless) {} |
| 27 | 27 |
| 28 void FakeVideoStream::SetSizeCallback(const SizeCallback& size_callback) { | 28 void FakeVideoStream::SetObserver(Observer* observer) { |
| 29 size_callback_ = size_callback; | 29 observer_ = observer; |
| 30 } | 30 } |
| 31 | 31 |
| 32 base::WeakPtr<FakeVideoStream> FakeVideoStream::GetWeakPtr() { | 32 base::WeakPtr<FakeVideoStream> FakeVideoStream::GetWeakPtr() { |
| 33 return weak_factory_.GetWeakPtr(); | 33 return weak_factory_.GetWeakPtr(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 FakeConnectionToClient::FakeConnectionToClient(std::unique_ptr<Session> session) | 36 FakeConnectionToClient::FakeConnectionToClient(std::unique_ptr<Session> session) |
| 37 : session_(std::move(session)) {} | 37 : session_(std::move(session)) {} |
| 38 | 38 |
| 39 FakeConnectionToClient::~FakeConnectionToClient() {} | 39 FakeConnectionToClient::~FakeConnectionToClient() {} |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void FakeConnectionToClient::set_host_stub(HostStub* host_stub) { | 92 void FakeConnectionToClient::set_host_stub(HostStub* host_stub) { |
| 93 host_stub_ = host_stub; | 93 host_stub_ = host_stub; |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FakeConnectionToClient::set_input_stub(InputStub* input_stub) { | 96 void FakeConnectionToClient::set_input_stub(InputStub* input_stub) { |
| 97 input_stub_ = input_stub; | 97 input_stub_ = input_stub; |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace protocol | 100 } // namespace protocol |
| 101 } // namespace remoting | 101 } // namespace remoting |
| OLD | NEW |