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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/remb.cc

Issue 1279543005: Add average rtt to CallStatsObserver and an average rtt histogram. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added guards Created 5 years, 4 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 latest_estimate_bps_(-1), 70 latest_estimate_bps_(-1),
71 last_feedback_ms_(-1), 71 last_feedback_ms_(-1),
72 estimator_(new RemoteBitrateEstimatorAbsSendTime( 72 estimator_(new RemoteBitrateEstimatorAbsSendTime(
73 this, 73 this,
74 &clock_, 74 &clock_,
75 kRemoteBitrateEstimatorMinBitrateBps)) { 75 kRemoteBitrateEstimatorMinBitrateBps)) {
76 std::stringstream ss; 76 std::stringstream ss;
77 ss << "Estimate_" << flow_id_ << "#1"; 77 ss << "Estimate_" << flow_id_ << "#1";
78 estimate_log_prefix_ = ss.str(); 78 estimate_log_prefix_ = ss.str();
79 // Default RTT in RemoteRateControl is 200 ms ; 50 ms is more realistic. 79 // Default RTT in RemoteRateControl is 200 ms ; 50 ms is more realistic.
80 estimator_->OnRttUpdate(50); 80 estimator_->OnRttUpdate(50, 50);
81 } 81 }
82 82
83 RembReceiver::~RembReceiver() { 83 RembReceiver::~RembReceiver() {
84 } 84 }
85 85
86 void RembReceiver::ReceivePacket(int64_t arrival_time_ms, 86 void RembReceiver::ReceivePacket(int64_t arrival_time_ms,
87 const MediaPacket& media_packet) { 87 const MediaPacket& media_packet) {
88 recv_stats_->IncomingPacket(media_packet.header(), 88 recv_stats_->IncomingPacket(media_packet.header(),
89 media_packet.payload_size(), false); 89 media_packet.payload_size(), false);
90 90
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 157 }
158 latest_estimate_bps_ = bps; 158 latest_estimate_bps_ = bps;
159 } 159 }
160 *estimate_bps = latest_estimate_bps_; 160 *estimate_bps = latest_estimate_bps_;
161 return true; 161 return true;
162 } 162 }
163 163
164 } // namespace bwe 164 } // namespace bwe
165 } // namespace testing 165 } // namespace testing
166 } // namespace webrtc 166 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698