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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 void FakeVideoReceiveStream::SetStats( | 325 void FakeVideoReceiveStream::SetStats( |
326 const webrtc::VideoReceiveStream::Stats& stats) { | 326 const webrtc::VideoReceiveStream::Stats& stats) { |
327 stats_ = stats; | 327 stats_ = stats; |
328 } | 328 } |
329 | 329 |
330 void FakeVideoReceiveStream::EnableEncodedFrameRecording(rtc::PlatformFile file, | 330 void FakeVideoReceiveStream::EnableEncodedFrameRecording(rtc::PlatformFile file, |
331 size_t byte_limit) { | 331 size_t byte_limit) { |
332 rtc::ClosePlatformFile(file); | 332 rtc::ClosePlatformFile(file); |
333 } | 333 } |
334 | 334 |
| 335 void FakeVideoReceiveStream::AddSecondarySink( |
| 336 webrtc::RtpPacketSinkInterface* sink) {} |
| 337 |
| 338 void FakeVideoReceiveStream::RemoveSecondarySink( |
| 339 const webrtc::RtpPacketSinkInterface* sink) {} |
| 340 |
335 FakeFlexfecReceiveStream::FakeFlexfecReceiveStream( | 341 FakeFlexfecReceiveStream::FakeFlexfecReceiveStream( |
336 const webrtc::FlexfecReceiveStream::Config& config) | 342 const webrtc::FlexfecReceiveStream::Config& config) |
337 : config_(config), receiving_(false) {} | 343 : config_(config), receiving_(false) {} |
338 | 344 |
339 const webrtc::FlexfecReceiveStream::Config& | 345 const webrtc::FlexfecReceiveStream::Config& |
340 FakeFlexfecReceiveStream::GetConfig() const { | 346 FakeFlexfecReceiveStream::GetConfig() const { |
341 return config_; | 347 return config_; |
342 } | 348 } |
343 | 349 |
344 void FakeFlexfecReceiveStream::Start() { | 350 void FakeFlexfecReceiveStream::Start() { |
345 receiving_ = true; | 351 receiving_ = true; |
346 } | 352 } |
347 | 353 |
348 void FakeFlexfecReceiveStream::Stop() { | 354 void FakeFlexfecReceiveStream::Stop() { |
349 receiving_ = false; | 355 receiving_ = false; |
350 } | 356 } |
351 | 357 |
352 // TODO(brandtr): Implement when the stats have been designed. | 358 // TODO(brandtr): Implement when the stats have been designed. |
353 webrtc::FlexfecReceiveStream::Stats FakeFlexfecReceiveStream::GetStats() const { | 359 webrtc::FlexfecReceiveStream::Stats FakeFlexfecReceiveStream::GetStats() const { |
354 return webrtc::FlexfecReceiveStream::Stats(); | 360 return webrtc::FlexfecReceiveStream::Stats(); |
355 } | 361 } |
356 | 362 |
| 363 void FakeFlexfecReceiveStream::OnRtpPacket(const webrtc::RtpPacketReceived&) { |
| 364 RTC_NOTREACHED() << "Not implemented."; |
| 365 } |
| 366 |
357 FakeCall::FakeCall(const webrtc::Call::Config& config) | 367 FakeCall::FakeCall(const webrtc::Call::Config& config) |
358 : config_(config), | 368 : config_(config), |
359 audio_network_state_(webrtc::kNetworkUp), | 369 audio_network_state_(webrtc::kNetworkUp), |
360 video_network_state_(webrtc::kNetworkUp), | 370 video_network_state_(webrtc::kNetworkUp), |
361 num_created_send_streams_(0), | 371 num_created_send_streams_(0), |
362 num_created_receive_streams_(0), | 372 num_created_receive_streams_(0), |
363 audio_transport_overhead_(0), | 373 audio_transport_overhead_(0), |
364 video_transport_overhead_(0) {} | 374 video_transport_overhead_(0) {} |
365 | 375 |
366 FakeCall::~FakeCall() { | 376 FakeCall::~FakeCall() { |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 } | 641 } |
632 | 642 |
633 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 643 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
634 last_sent_packet_ = sent_packet; | 644 last_sent_packet_ = sent_packet; |
635 if (sent_packet.packet_id >= 0) { | 645 if (sent_packet.packet_id >= 0) { |
636 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 646 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
637 } | 647 } |
638 } | 648 } |
639 | 649 |
640 } // namespace cricket | 650 } // namespace cricket |
OLD | NEW |