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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h

Issue 1151603008: Make the BWE threshold adaptive. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix string length issue. Created 5 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // until it reaches |target_bitrate|. 183 // until it reaches |target_bitrate|.
184 // Can for instance be used to run the estimator for some time to get it 184 // Can for instance be used to run the estimator for some time to get it
185 // into a steady state. 185 // into a steady state.
186 unsigned int SteadyStateRun(unsigned int ssrc, 186 unsigned int SteadyStateRun(unsigned int ssrc,
187 int number_of_frames, 187 int number_of_frames,
188 unsigned int start_bitrate, 188 unsigned int start_bitrate,
189 unsigned int min_bitrate, 189 unsigned int min_bitrate,
190 unsigned int max_bitrate, 190 unsigned int max_bitrate,
191 unsigned int target_bitrate); 191 unsigned int target_bitrate);
192 192
193 193 void TestTimestampGroupingTestHelper(uint32_t bitrate_bps);
194 void TestTimestampGroupingTestHelper();
195 194
196 void TestGetStatsHelper(); 195 void TestGetStatsHelper();
197 196
198 void TestWrappingHelper(int silence_time_s); 197 void TestWrappingHelper(int silence_time_s);
199 198
200 void InitialBehaviorTestHelper(unsigned int expected_converge_bitrate); 199 void InitialBehaviorTestHelper(unsigned int expected_converge_bitrate);
201 void RateIncreaseReorderingTestHelper(unsigned int expected_bitrate); 200 void RateIncreaseReorderingTestHelper(unsigned int expected_bitrate);
202 void RateIncreaseRtpTimestampsTestHelper(int expected_iterations); 201 void RateIncreaseRtpTimestampsTestHelper(int expected_iterations);
203 void CapacityDropTestHelper(int number_of_streams, 202 void CapacityDropTestHelper(int number_of_streams,
204 bool wrap_time_stamp, 203 bool wrap_time_stamp,
205 unsigned int expected_bitrate_drop_delta); 204 unsigned int expected_bitrate_drop_delta);
206 205
207 static const unsigned int kDefaultSsrc; 206 static const unsigned int kDefaultSsrc;
208 static const int kArrivalTimeClockOffsetMs = 60000; 207 static const int kArrivalTimeClockOffsetMs = 60000;
209 208
210 SimulatedClock clock_; // Time at the receiver. 209 SimulatedClock clock_; // Time at the receiver.
211 rtc::scoped_ptr<testing::TestBitrateObserver> bitrate_observer_; 210 rtc::scoped_ptr<testing::TestBitrateObserver> bitrate_observer_;
212 rtc::scoped_ptr<RemoteBitrateEstimator> bitrate_estimator_; 211 rtc::scoped_ptr<RemoteBitrateEstimator> bitrate_estimator_;
213 rtc::scoped_ptr<testing::StreamGenerator> stream_generator_; 212 rtc::scoped_ptr<testing::StreamGenerator> stream_generator_;
214 213
215 DISALLOW_COPY_AND_ASSIGN(RemoteBitrateEstimatorTest); 214 DISALLOW_COPY_AND_ASSIGN(RemoteBitrateEstimatorTest);
216 }; 215 };
217 } // namespace webrtc 216 } // namespace webrtc
218 217
219 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNIT TEST_HELPER_H_ 218 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_BITRATE_ESTIMATOR_UNIT TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698