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

Side by Side Diff: webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h

Issue 2422063002: Use bayesian estimate of acked bitrate. (Closed)
Patch Set: Tests for both with and w/o experiment. 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void RateIncreaseRtpTimestampsTestHelper(int expected_iterations); 155 void RateIncreaseRtpTimestampsTestHelper(int expected_iterations);
156 void CapacityDropTestHelper(int number_of_streams, 156 void CapacityDropTestHelper(int number_of_streams,
157 bool wrap_time_stamp, 157 bool wrap_time_stamp,
158 uint32_t expected_bitrate_drop_delta, 158 uint32_t expected_bitrate_drop_delta,
159 int64_t receiver_clock_offset_change_ms); 159 int64_t receiver_clock_offset_change_ms);
160 160
161 static const uint32_t kDefaultSsrc; 161 static const uint32_t kDefaultSsrc;
162 162
163 SimulatedClock clock_; // Time at the receiver. 163 SimulatedClock clock_; // Time at the receiver.
164 test::TestBitrateObserver bitrate_observer_; 164 test::TestBitrateObserver bitrate_observer_;
165 DelayBasedBwe bitrate_estimator_; 165 std::unique_ptr<DelayBasedBwe> bitrate_estimator_;
166 std::unique_ptr<test::StreamGenerator> stream_generator_; 166 std::unique_ptr<test::StreamGenerator> stream_generator_;
167 int64_t arrival_time_offset_ms_; 167 int64_t arrival_time_offset_ms_;
168 bool first_update_;
168 169
169 RTC_DISALLOW_COPY_AND_ASSIGN(DelayBasedBweTest); 170 RTC_DISALLOW_COPY_AND_ASSIGN(DelayBasedBweTest);
170 }; 171 };
171 } // namespace webrtc 172 } // namespace webrtc
172 173
173 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_UNITTEST_HELPER_ H_ 174 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_UNITTEST_HELPER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698