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

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

Issue 1237303002: Modified Simulation Framework Jitter Model (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated Jitter expected value to suit the truncated gaussian 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
« no previous file with comments | « no previous file | webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 delay.SetOneWayDelayMs(0.0f); 117 delay.SetOneWayDelayMs(0.0f);
118 RunFor(10 * 60 * 1000); 118 RunFor(10 * 60 * 1000);
119 } 119 }
120 120
121 TEST_P(DefaultBweTest, SteadyJitter) { 121 TEST_P(DefaultBweTest, SteadyJitter) {
122 VideoSource source(0, 30, 300, 0, 0); 122 VideoSource source(0, 30, 300, 0, 0);
123 VideoSender sender(&uplink_, &source, GetParam()); 123 VideoSender sender(&uplink_, &source, GetParam());
124 JitterFilter jitter(&uplink_, 0); 124 JitterFilter jitter(&uplink_, 0);
125 RateCounterFilter counter(&uplink_, 0, ""); 125 RateCounterFilter counter(&uplink_, 0, "");
126 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); 126 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false);
127 jitter.SetJitter(20); 127 jitter.SetMaxJitter(20);
128 RunFor(2 * 60 * 1000); 128 RunFor(2 * 60 * 1000);
129 } 129 }
130 130
131 TEST_P(DefaultBweTest, IncreasingJitter1) { 131 TEST_P(DefaultBweTest, IncreasingJitter1) {
132 VideoSource source(0, 30, 300, 0, 0); 132 VideoSource source(0, 30, 300, 0, 0);
133 VideoSender sender(&uplink_, &source, GetParam()); 133 VideoSender sender(&uplink_, &source, GetParam());
134 JitterFilter jitter(&uplink_, 0); 134 JitterFilter jitter(&uplink_, 0);
135 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); 135 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false);
136 for (int i = 0; i < 2 * 60 * 2; ++i) { 136 for (int i = 0; i < 2 * 60 * 2; ++i) {
137 jitter.SetJitter(i); 137 jitter.SetMaxJitter(i);
138 RunFor(10 * 1000); 138 RunFor(10 * 1000);
139 } 139 }
140 RunFor(10 * 60 * 1000); 140 RunFor(10 * 60 * 1000);
141 } 141 }
142 142
143 TEST_P(DefaultBweTest, IncreasingJitter2) { 143 TEST_P(DefaultBweTest, IncreasingJitter2) {
144 VideoSource source(0, 30, 300, 0, 0); 144 VideoSource source(0, 30, 300, 0, 0);
145 VideoSender sender(&uplink_, &source, GetParam()); 145 VideoSender sender(&uplink_, &source, GetParam());
146 JitterFilter jitter(&uplink_, 0); 146 JitterFilter jitter(&uplink_, 0);
147 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); 147 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false);
148 RunFor(30 * 1000); 148 RunFor(30 * 1000);
149 for (int i = 1; i < 51; ++i) { 149 for (int i = 1; i < 51; ++i) {
150 jitter.SetJitter(10.0f * i); 150 jitter.SetMaxJitter(10.0f * i);
151 RunFor(10 * 1000); 151 RunFor(10 * 1000);
152 } 152 }
153 jitter.SetJitter(0.0f); 153 jitter.SetMaxJitter(0.0f);
154 RunFor(10 * 60 * 1000); 154 RunFor(10 * 60 * 1000);
155 } 155 }
156 156
157 TEST_P(DefaultBweTest, SteadyReorder) { 157 TEST_P(DefaultBweTest, SteadyReorder) {
158 VideoSource source(0, 30, 300, 0, 0); 158 VideoSource source(0, 30, 300, 0, 0);
159 VideoSender sender(&uplink_, &source, GetParam()); 159 VideoSender sender(&uplink_, &source, GetParam());
160 ReorderFilter reorder(&uplink_, 0); 160 ReorderFilter reorder(&uplink_, 0);
161 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); 161 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false);
162 reorder.SetReorder(20.0); 162 reorder.SetReorder(20.0);
163 RunFor(10 * 60 * 1000); 163 RunFor(10 * 60 * 1000);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 TEST_P(DefaultBweTest, Multi2) { 227 TEST_P(DefaultBweTest, Multi2) {
228 VideoSource source(0, 30, 300, 0, 0); 228 VideoSource source(0, 30, 300, 0, 0);
229 VideoSender sender(&uplink_, &source, GetParam()); 229 VideoSender sender(&uplink_, &source, GetParam());
230 ChokeFilter choke(&uplink_, 0); 230 ChokeFilter choke(&uplink_, 0);
231 JitterFilter jitter(&uplink_, 0); 231 JitterFilter jitter(&uplink_, 0);
232 RateCounterFilter counter(&uplink_, 0, ""); 232 RateCounterFilter counter(&uplink_, 0, "");
233 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); 233 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false);
234 choke.set_capacity_kbps(2000); 234 choke.set_capacity_kbps(2000);
235 jitter.SetJitter(120); 235 jitter.SetMaxJitter(120);
236 RunFor(5 * 60 * 1000); 236 RunFor(5 * 60 * 1000);
237 } 237 }
238 238
239 // This test fixture is used to instantiate tests running with adaptive video 239 // This test fixture is used to instantiate tests running with adaptive video
240 // senders. 240 // senders.
241 class BweFeedbackTest 241 class BweFeedbackTest
242 : public BweTest, 242 : public BweTest,
243 public ::testing::TestWithParam<BandwidthEstimatorType> { 243 public ::testing::TestWithParam<BandwidthEstimatorType> {
244 public: 244 public:
245 BweFeedbackTest() : BweTest() {} 245 BweFeedbackTest() : BweTest() {}
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 TEST_P(BweFeedbackTest, TcpFairness500msTest) { 366 TEST_P(BweFeedbackTest, TcpFairness500msTest) {
367 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 500); 367 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 500);
368 } 368 }
369 369
370 TEST_P(BweFeedbackTest, TcpFairness1000msTest) { 370 TEST_P(BweFeedbackTest, TcpFairness1000msTest) {
371 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000); 371 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000);
372 } 372 }
373 } // namespace bwe 373 } // namespace bwe
374 } // namespace testing 374 } // namespace testing
375 } // namespace webrtc 375 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698