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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 webrtc::Call::Stats FakeCall::GetStats() const { | 582 webrtc::Call::Stats FakeCall::GetStats() const { |
583 return stats_; | 583 return stats_; |
584 } | 584 } |
585 | 585 |
586 void FakeCall::SetBitrateConfig( | 586 void FakeCall::SetBitrateConfig( |
587 const webrtc::Call::Config::BitrateConfig& bitrate_config) { | 587 const webrtc::Call::Config::BitrateConfig& bitrate_config) { |
588 config_.bitrate_config = bitrate_config; | 588 config_.bitrate_config = bitrate_config; |
589 } | 589 } |
590 | 590 |
591 void FakeCall::SetBitrateConfigMask( | |
592 const webrtc::Call::Config::BitrateConfigMask& mask) { | |
593 // TODO(zstein): not implemented | |
594 } | |
595 | |
596 void FakeCall::SignalChannelNetworkState(webrtc::MediaType media, | 591 void FakeCall::SignalChannelNetworkState(webrtc::MediaType media, |
597 webrtc::NetworkState state) { | 592 webrtc::NetworkState state) { |
598 switch (media) { | 593 switch (media) { |
599 case webrtc::MediaType::AUDIO: | 594 case webrtc::MediaType::AUDIO: |
600 audio_network_state_ = state; | 595 audio_network_state_ = state; |
601 break; | 596 break; |
602 case webrtc::MediaType::VIDEO: | 597 case webrtc::MediaType::VIDEO: |
603 video_network_state_ = state; | 598 video_network_state_ = state; |
604 break; | 599 break; |
605 case webrtc::MediaType::DATA: | 600 case webrtc::MediaType::DATA: |
(...skipping 20 matching lines...) Expand all Loading... |
626 } | 621 } |
627 | 622 |
628 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 623 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
629 last_sent_packet_ = sent_packet; | 624 last_sent_packet_ = sent_packet; |
630 if (sent_packet.packet_id >= 0) { | 625 if (sent_packet.packet_id >= 0) { |
631 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 626 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
632 } | 627 } |
633 } | 628 } |
634 | 629 |
635 } // namespace cricket | 630 } // namespace cricket |
OLD | NEW |