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

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

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Response to comments of honghaiz3 Created 4 years, 1 month 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 case webrtc::MediaType::VIDEO: 496 case webrtc::MediaType::VIDEO:
497 video_network_state_ = state; 497 video_network_state_ = state;
498 break; 498 break;
499 case webrtc::MediaType::DATA: 499 case webrtc::MediaType::DATA:
500 case webrtc::MediaType::ANY: 500 case webrtc::MediaType::ANY:
501 ADD_FAILURE() 501 ADD_FAILURE()
502 << "SignalChannelNetworkState called with unknown parameter."; 502 << "SignalChannelNetworkState called with unknown parameter.";
503 } 503 }
504 } 504 }
505 505
506 void FakeCall::SignalTransportOverheadChange(
507 webrtc::MediaType media,
508 int transport_overhead_per_packet) {
509 switch (media) {
510 case webrtc::MediaType::AUDIO:
511 audio_transport_overhead_ = transport_overhead_per_packet;
512 break;
513 case webrtc::MediaType::VIDEO:
514 video_transport_overhead_ = transport_overhead_per_packet;
515 break;
516 case webrtc::MediaType::DATA:
517 case webrtc::MediaType::ANY:
518 ADD_FAILURE()
519 << "SignalChannelNetworkState called with unknown parameter.";
520 }
521 }
522
506 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 523 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
507 last_sent_packet_ = sent_packet; 524 last_sent_packet_ = sent_packet;
508 if (sent_packet.packet_id >= 0) { 525 if (sent_packet.packet_id >= 0) {
509 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; 526 last_sent_nonnegative_packet_id_ = sent_packet.packet_id;
510 } 527 }
511 } 528 }
512 529
513 } // namespace cricket 530 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698