Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: webrtc/media/engine/fakewebrtccall.cc

Issue 2793913008: Add PeerConnectionInterface::UpdateCallBitrate. (Closed)
Patch Set: Force update if current bitrate is set. Remove big lambda. Improve parameter validation. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 576
577 webrtc::Call::Stats FakeCall::GetStats() const { 577 webrtc::Call::Stats FakeCall::GetStats() const {
578 return stats_; 578 return stats_;
579 } 579 }
580 580
581 void FakeCall::SetBitrateConfig( 581 void FakeCall::SetBitrateConfig(
582 const webrtc::Call::Config::BitrateConfig& bitrate_config) { 582 const webrtc::Call::Config::BitrateConfig& bitrate_config) {
583 config_.bitrate_config = bitrate_config; 583 config_.bitrate_config = bitrate_config;
584 } 584 }
585 585
586 webrtc::RTCError FakeCall::SetBitrateConfigMask(
587 const webrtc::Call::Config::BitrateConfigMask& mask) {
588 // TODO(zstein): not implemented
589 return webrtc::RTCError::OK();
590 }
591
586 void FakeCall::SignalChannelNetworkState(webrtc::MediaType media, 592 void FakeCall::SignalChannelNetworkState(webrtc::MediaType media,
587 webrtc::NetworkState state) { 593 webrtc::NetworkState state) {
588 switch (media) { 594 switch (media) {
589 case webrtc::MediaType::AUDIO: 595 case webrtc::MediaType::AUDIO:
590 audio_network_state_ = state; 596 audio_network_state_ = state;
591 break; 597 break;
592 case webrtc::MediaType::VIDEO: 598 case webrtc::MediaType::VIDEO:
593 video_network_state_ = state; 599 video_network_state_ = state;
594 break; 600 break;
595 case webrtc::MediaType::DATA: 601 case webrtc::MediaType::DATA:
(...skipping 20 matching lines...) Expand all
616 } 622 }
617 623
618 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 624 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
619 last_sent_packet_ = sent_packet; 625 last_sent_packet_ = sent_packet;
620 if (sent_packet.packet_id >= 0) { 626 if (sent_packet.packet_id >= 0) {
621 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; 627 last_sent_nonnegative_packet_id_ = sent_packet.packet_id;
622 } 628 }
623 } 629 }
624 630
625 } // namespace cricket 631 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698