OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 void FakeVideoSendStream::InjectVideoSinkWants( | 263 void FakeVideoSendStream::InjectVideoSinkWants( |
264 const rtc::VideoSinkWants& wants) { | 264 const rtc::VideoSinkWants& wants) { |
265 sink_wants_ = wants; | 265 sink_wants_ = wants; |
266 source_->AddOrUpdateSink(this, wants); | 266 source_->AddOrUpdateSink(this, wants); |
267 } | 267 } |
268 | 268 |
269 FakeVideoReceiveStream::FakeVideoReceiveStream( | 269 FakeVideoReceiveStream::FakeVideoReceiveStream( |
270 webrtc::VideoReceiveStream::Config config) | 270 webrtc::VideoReceiveStream::Config config) |
271 : config_(std::move(config)), receiving_(false) {} | 271 : config_(std::move(config)), receiving_(false) {} |
272 | 272 |
273 const webrtc::VideoReceiveStream::Config& FakeVideoReceiveStream::GetConfig() { | 273 const webrtc::VideoReceiveStream::Config& FakeVideoReceiveStream::GetConfig() |
| 274 const { |
274 return config_; | 275 return config_; |
275 } | 276 } |
276 | 277 |
277 bool FakeVideoReceiveStream::IsReceiving() const { | 278 bool FakeVideoReceiveStream::IsReceiving() const { |
278 return receiving_; | 279 return receiving_; |
279 } | 280 } |
280 | 281 |
281 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame) { | 282 void FakeVideoReceiveStream::InjectFrame(const webrtc::VideoFrame& frame) { |
282 config_.renderer->OnFrame(frame); | 283 config_.renderer->OnFrame(frame); |
283 } | 284 } |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 } | 594 } |
594 | 595 |
595 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 596 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
596 last_sent_packet_ = sent_packet; | 597 last_sent_packet_ = sent_packet; |
597 if (sent_packet.packet_id >= 0) { | 598 if (sent_packet.packet_id >= 0) { |
598 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 599 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
599 } | 600 } |
600 } | 601 } |
601 | 602 |
602 } // namespace cricket | 603 } // namespace cricket |
OLD | NEW |