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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 // TODO(brandtr): Implement when the stats have been designed. | 326 // TODO(brandtr): Implement when the stats have been designed. |
327 webrtc::FlexfecReceiveStream::Stats FakeFlexfecReceiveStream::GetStats() const { | 327 webrtc::FlexfecReceiveStream::Stats FakeFlexfecReceiveStream::GetStats() const { |
328 return webrtc::FlexfecReceiveStream::Stats(); | 328 return webrtc::FlexfecReceiveStream::Stats(); |
329 } | 329 } |
330 | 330 |
331 FakeCall::FakeCall(const webrtc::Call::Config& config) | 331 FakeCall::FakeCall(const webrtc::Call::Config& config) |
332 : config_(config), | 332 : config_(config), |
333 audio_network_state_(webrtc::kNetworkUp), | 333 audio_network_state_(webrtc::kNetworkUp), |
334 video_network_state_(webrtc::kNetworkUp), | 334 video_network_state_(webrtc::kNetworkUp), |
335 num_created_send_streams_(0), | 335 num_created_send_streams_(0), |
336 num_created_receive_streams_(0) {} | 336 num_created_receive_streams_(0), |
| 337 audio_transport_overhead_(0), |
| 338 video_transport_overhead_(0) {} |
337 | 339 |
338 FakeCall::~FakeCall() { | 340 FakeCall::~FakeCall() { |
339 EXPECT_EQ(0u, video_send_streams_.size()); | 341 EXPECT_EQ(0u, video_send_streams_.size()); |
340 EXPECT_EQ(0u, audio_send_streams_.size()); | 342 EXPECT_EQ(0u, audio_send_streams_.size()); |
341 EXPECT_EQ(0u, video_receive_streams_.size()); | 343 EXPECT_EQ(0u, video_receive_streams_.size()); |
342 EXPECT_EQ(0u, audio_receive_streams_.size()); | 344 EXPECT_EQ(0u, audio_receive_streams_.size()); |
343 } | 345 } |
344 | 346 |
345 webrtc::Call::Config FakeCall::GetConfig() const { | 347 webrtc::Call::Config FakeCall::GetConfig() const { |
346 return config_; | 348 return config_; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 } | 599 } |
598 | 600 |
599 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 601 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
600 last_sent_packet_ = sent_packet; | 602 last_sent_packet_ = sent_packet; |
601 if (sent_packet.packet_id >= 0) { | 603 if (sent_packet.packet_id >= 0) { |
602 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 604 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
603 } | 605 } |
604 } | 606 } |
605 | 607 |
606 } // namespace cricket | 608 } // namespace cricket |
OLD | NEW |