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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc

Issue 2431093003: Fix BWE simulations so that it uses the delay based BWE. (Closed)
Patch Set: Created 4 years, 2 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 protected: 51 protected:
52 Random random_; 52 Random random_;
53 53
54 private: 54 private:
55 RTC_DISALLOW_COPY_AND_ASSIGN(BweFeedbackTest); 55 RTC_DISALLOW_COPY_AND_ASSIGN(BweFeedbackTest);
56 }; 56 };
57 57
58 INSTANTIATE_TEST_CASE_P(VideoSendersTest, 58 INSTANTIATE_TEST_CASE_P(VideoSendersTest,
59 BweFeedbackTest, 59 BweFeedbackTest,
60 ::testing::Values(kRembEstimator, 60 ::testing::Values(kRembEstimator,
61 kFullSendSideEstimator)); 61 kAbsSendTimeEstimator,
62 kSendSideEstimator));
62 63
63 TEST_P(BweFeedbackTest, ConstantCapacity) { 64 TEST_P(BweFeedbackTest, ConstantCapacity) {
64 AdaptiveVideoSource source(0, 30, 300, 0, 0); 65 AdaptiveVideoSource source(0, 30, 300, 0, 0);
65 PacedVideoSender sender(&uplink_, &source, GetParam()); 66 PacedVideoSender sender(&uplink_, &source, GetParam());
66 ChokeFilter filter(&uplink_, 0); 67 ChokeFilter filter(&uplink_, 0);
67 RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]); 68 RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]);
68 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); 69 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false);
69 const int kCapacityKbps = 1000; 70 const int kCapacityKbps = 1000;
70 filter.set_capacity_kbps(kCapacityKbps); 71 filter.set_capacity_kbps(kCapacityKbps);
71 filter.set_max_delay_ms(500); 72 filter.set_max_delay_ms(500);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 for (int i = 0; i < 2; ++i) { 222 for (int i = 0; i < 2; ++i) {
222 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); 223 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000));
223 } 224 }
224 225
225 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, 226 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs,
226 offset_ms); 227 offset_ms);
227 } 228 }
228 } // namespace bwe 229 } // namespace bwe
229 } // namespace testing 230 } // namespace testing
230 } // namespace webrtc 231 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698