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

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

Issue 2126793002: Reset InterArrival if arrival time clock makes a jump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix a few test issues. Created 4 years, 5 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 RembReceiver::RembReceiver(int flow_id, bool plot) 66 RembReceiver::RembReceiver(int flow_id, bool plot)
67 : BweReceiver(flow_id), 67 : BweReceiver(flow_id),
68 estimate_log_prefix_(), 68 estimate_log_prefix_(),
69 plot_estimate_(plot), 69 plot_estimate_(plot),
70 clock_(0), 70 clock_(0),
71 recv_stats_(ReceiveStatistics::Create(&clock_)), 71 recv_stats_(ReceiveStatistics::Create(&clock_)),
72 latest_estimate_bps_(-1), 72 latest_estimate_bps_(-1),
73 last_feedback_ms_(-1), 73 last_feedback_ms_(-1),
74 estimator_(new RemoteBitrateEstimatorAbsSendTime(this)) { 74 estimator_(new RemoteBitrateEstimatorAbsSendTime(this, &clock_)) {
75 std::stringstream ss; 75 std::stringstream ss;
76 ss << "Estimate_" << flow_id_ << "#1"; 76 ss << "Estimate_" << flow_id_ << "#1";
77 estimate_log_prefix_ = ss.str(); 77 estimate_log_prefix_ = ss.str();
78 // Default RTT in RemoteRateControl is 200 ms ; 50 ms is more realistic. 78 // Default RTT in RemoteRateControl is 200 ms ; 50 ms is more realistic.
79 estimator_->OnRttUpdate(50, 50); 79 estimator_->OnRttUpdate(50, 50);
80 estimator_->SetMinBitrate(kRemoteBitrateEstimatorMinBitrateBps); 80 estimator_->SetMinBitrate(kRemoteBitrateEstimatorMinBitrateBps);
81 } 81 }
82 82
83 RembReceiver::~RembReceiver() { 83 RembReceiver::~RembReceiver() {
84 } 84 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 latest_estimate_bps_ = bps; 156 latest_estimate_bps_ = bps;
157 } 157 }
158 *estimate_bps = latest_estimate_bps_; 158 *estimate_bps = latest_estimate_bps_;
159 return true; 159 return true;
160 } 160 }
161 161
162 } // namespace bwe 162 } // namespace bwe
163 } // namespace testing 163 } // namespace testing
164 } // namespace webrtc 164 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698