| 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/audio_source.h" | 10 #include "remoting/protocol/audio_source.h" |
| 11 #include "remoting/protocol/audio_stream.h" | 11 #include "remoting/protocol/audio_stream.h" |
| 12 #include "remoting/protocol/session.h" | 12 #include "remoting/protocol/session.h" |
| 13 #include "remoting/protocol/video_frame_pump.h" | 13 #include "remoting/protocol/video_frame_pump.h" |
| 14 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 14 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| 15 | 15 |
| 16 namespace remoting { | 16 namespace remoting { |
| 17 namespace protocol { | 17 namespace protocol { |
| 18 | 18 |
| 19 FakeVideoStream::FakeVideoStream() : weak_factory_(this) {} | 19 FakeVideoStream::FakeVideoStream() : weak_factory_(this) {} |
| 20 FakeVideoStream::~FakeVideoStream() {} | 20 FakeVideoStream::~FakeVideoStream() {} |
| 21 | 21 |
| 22 void FakeVideoStream::SetEventTimestampsSource( |
| 23 scoped_refptr<InputEventTimestampsSource> event_timestamps_source) {} |
| 24 |
| 22 void FakeVideoStream::Pause(bool pause) {} | 25 void FakeVideoStream::Pause(bool pause) {} |
| 23 | 26 |
| 24 void FakeVideoStream::OnInputEventReceived(int64_t event_timestamp) {} | |
| 25 | |
| 26 void FakeVideoStream::SetLosslessEncode(bool want_lossless) {} | 27 void FakeVideoStream::SetLosslessEncode(bool want_lossless) {} |
| 27 | 28 |
| 28 void FakeVideoStream::SetLosslessColor(bool want_lossless) {} | 29 void FakeVideoStream::SetLosslessColor(bool want_lossless) {} |
| 29 | 30 |
| 30 void FakeVideoStream::SetObserver(Observer* observer) { | 31 void FakeVideoStream::SetObserver(Observer* observer) { |
| 31 observer_ = observer; | 32 observer_ = observer; |
| 32 } | 33 } |
| 33 | 34 |
| 34 base::WeakPtr<FakeVideoStream> FakeVideoStream::GetWeakPtr() { | 35 base::WeakPtr<FakeVideoStream> FakeVideoStream::GetWeakPtr() { |
| 35 return weak_factory_.GetWeakPtr(); | 36 return weak_factory_.GetWeakPtr(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void FakeConnectionToClient::set_host_stub(HostStub* host_stub) { | 95 void FakeConnectionToClient::set_host_stub(HostStub* host_stub) { |
| 95 host_stub_ = host_stub; | 96 host_stub_ = host_stub; |
| 96 } | 97 } |
| 97 | 98 |
| 98 void FakeConnectionToClient::set_input_stub(InputStub* input_stub) { | 99 void FakeConnectionToClient::set_input_stub(InputStub* input_stub) { |
| 99 input_stub_ = input_stub; | 100 input_stub_ = input_stub; |
| 100 } | 101 } |
| 101 | 102 |
| 102 } // namespace protocol | 103 } // namespace protocol |
| 103 } // namespace remoting | 104 } // namespace remoting |
| OLD | NEW |