| 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 |
| 591 void FakeCall::SignalChannelNetworkState(webrtc::MediaType media, | 596 void FakeCall::SignalChannelNetworkState(webrtc::MediaType media, |
| 592 webrtc::NetworkState state) { | 597 webrtc::NetworkState state) { |
| 593 switch (media) { | 598 switch (media) { |
| 594 case webrtc::MediaType::AUDIO: | 599 case webrtc::MediaType::AUDIO: |
| 595 audio_network_state_ = state; | 600 audio_network_state_ = state; |
| 596 break; | 601 break; |
| 597 case webrtc::MediaType::VIDEO: | 602 case webrtc::MediaType::VIDEO: |
| 598 video_network_state_ = state; | 603 video_network_state_ = state; |
| 599 break; | 604 break; |
| 600 case webrtc::MediaType::DATA: | 605 case webrtc::MediaType::DATA: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 621 } | 626 } |
| 622 | 627 |
| 623 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { | 628 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { |
| 624 last_sent_packet_ = sent_packet; | 629 last_sent_packet_ = sent_packet; |
| 625 if (sent_packet.packet_id >= 0) { | 630 if (sent_packet.packet_id >= 0) { |
| 626 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; | 631 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; |
| 627 } | 632 } |
| 628 } | 633 } |
| 629 | 634 |
| 630 } // namespace cricket | 635 } // namespace cricket |
| OLD | NEW |