| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 video_receive_streams_.end(), | 426 video_receive_streams_.end(), |
| 427 static_cast<FakeVideoReceiveStream*>(receive_stream)); | 427 static_cast<FakeVideoReceiveStream*>(receive_stream)); |
| 428 if (it == video_receive_streams_.end()) { | 428 if (it == video_receive_streams_.end()) { |
| 429 ADD_FAILURE() << "DestroyVideoReceiveStream called with unknown parameter."; | 429 ADD_FAILURE() << "DestroyVideoReceiveStream called with unknown parameter."; |
| 430 } else { | 430 } else { |
| 431 delete *it; | 431 delete *it; |
| 432 video_receive_streams_.erase(it); | 432 video_receive_streams_.erase(it); |
| 433 } | 433 } |
| 434 } | 434 } |
| 435 | 435 |
| 436 webrtc::FlexfecReceiveStream* FakeCall::CreateFlexfecReceiveStream( |
| 437 webrtc::FlexfecReceiveStream::Config config) { |
| 438 // TODO(brandtr): Implement when adding integration with WebRtcVideoEngine2. |
| 439 return nullptr; |
| 440 } |
| 441 |
| 442 void FakeCall::DestroyFlexfecReceiveStream( |
| 443 webrtc::FlexfecReceiveStream* receive_stream) { |
| 444 // TODO(brandtr): Implement when adding integration with WebRtcVideoEngine2. |
| 445 } |
| 446 |
| 436 webrtc::PacketReceiver* FakeCall::Receiver() { | 447 webrtc::PacketReceiver* FakeCall::Receiver() { |
| 437 return this; | 448 return this; |
| 438 } | 449 } |
| 439 | 450 |
| 440 FakeCall::DeliveryStatus FakeCall::DeliverPacket( | 451 FakeCall::DeliveryStatus FakeCall::DeliverPacket( |
| 441 webrtc::MediaType media_type, | 452 webrtc::MediaType media_type, |
| 442 const uint8_t* packet, | 453 const uint8_t* packet, |
| 443 size_t length, | 454 size_t length, |
| 444 const webrtc::PacketTime& packet_time) { | 455 const webrtc::PacketTime& packet_time) { |
| 445 EXPECT_GE(length, 12u); | 456 EXPECT_GE(length, 12u); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 } | 515 } |
| 505 | 516 |
| 506 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 517 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
| 507 last_sent_packet_ = sent_packet; | 518 last_sent_packet_ = sent_packet; |
| 508 if (sent_packet.packet_id >= 0) { | 519 if (sent_packet.packet_id >= 0) { |
| 509 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 520 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
| 510 } | 521 } |
| 511 } | 522 } |
| 512 | 523 |
| 513 } // namespace cricket | 524 } // namespace cricket |
| OLD | NEW |