OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 BweSimulation, | 46 BweSimulation, |
47 ::testing::Values(kRembEstimator, | 47 ::testing::Values(kRembEstimator, |
48 kFullSendSideEstimator, | 48 kFullSendSideEstimator, |
49 kNadaEstimator)); | 49 kNadaEstimator)); |
50 | 50 |
51 TEST_P(BweSimulation, SprintUplinkTest) { | 51 TEST_P(BweSimulation, SprintUplinkTest) { |
52 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 52 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
53 VideoSender sender(&uplink_, &source, GetParam()); | 53 VideoSender sender(&uplink_, &source, GetParam()); |
54 RateCounterFilter counter1(&uplink_, 0, "sender_output"); | 54 RateCounterFilter counter1(&uplink_, 0, "sender_output"); |
55 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity"); | 55 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity"); |
56 RateCounterFilter counter2(&uplink_, 0, "receiver_input"); | 56 RateCounterFilter counter2(&uplink_, 0, "Receiver"); |
57 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 57 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
58 ASSERT_TRUE(filter.Init(test::ResourcePath("sprint-uplink", "rx"))); | 58 ASSERT_TRUE(filter.Init(test::ResourcePath("sprint-uplink", "rx"))); |
59 RunFor(60 * 1000); | 59 RunFor(60 * 1000); |
60 } | 60 } |
61 | 61 |
62 TEST_P(BweSimulation, Verizon4gDownlinkTest) { | 62 TEST_P(BweSimulation, Verizon4gDownlinkTest) { |
63 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 63 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
64 VideoSender sender(&downlink_, &source, GetParam()); | 64 VideoSender sender(&downlink_, &source, GetParam()); |
65 RateCounterFilter counter1(&downlink_, 0, "sender_output"); | 65 RateCounterFilter counter1(&downlink_, 0, "sender_output"); |
66 TraceBasedDeliveryFilter filter(&downlink_, 0, "link_capacity"); | 66 TraceBasedDeliveryFilter filter(&downlink_, 0, "link_capacity"); |
67 RateCounterFilter counter2(&downlink_, 0, "receiver_input"); | 67 RateCounterFilter counter2(&downlink_, 0, "Receiver"); |
68 PacketReceiver receiver(&downlink_, 0, GetParam(), true, true); | 68 PacketReceiver receiver(&downlink_, 0, GetParam(), true, true); |
69 ASSERT_TRUE(filter.Init(test::ResourcePath("verizon4g-downlink", "rx"))); | 69 ASSERT_TRUE(filter.Init(test::ResourcePath("verizon4g-downlink", "rx"))); |
70 RunFor(22 * 60 * 1000); | 70 RunFor(22 * 60 * 1000); |
71 } | 71 } |
72 | 72 |
73 TEST_P(BweSimulation, Choke1000kbps500kbps1000kbpsBiDirectional) { | 73 TEST_P(BweSimulation, Choke1000kbps500kbps1000kbpsBiDirectional) { |
74 | 74 |
75 const int kFlowIds[] = {0, 1}; | 75 const int kFlowIds[] = {0, 1}; |
76 const size_t kNumFlows = sizeof(kFlowIds) / sizeof(kFlowIds[0]); | 76 const size_t kNumFlows = sizeof(kFlowIds) / sizeof(kFlowIds[0]); |
77 | 77 |
78 AdaptiveVideoSource source(kFlowIds[0], 30, 300, 0, 0); | 78 AdaptiveVideoSource source(kFlowIds[0], 30, 300, 0, 0); |
79 VideoSender sender(&uplink_, &source, GetParam()); | 79 VideoSender sender(&uplink_, &source, GetParam()); |
80 ChokeFilter choke(&uplink_, kFlowIds[0]); | 80 ChokeFilter choke(&uplink_, kFlowIds[0]); |
81 RateCounterFilter counter(&uplink_, kFlowIds[0], "receiver_input_0"); | 81 RateCounterFilter counter(&uplink_, kFlowIds[0], "Receiver_0"); |
82 PacketReceiver receiver(&uplink_, kFlowIds[0], GetParam(), true, false); | 82 PacketReceiver receiver(&uplink_, kFlowIds[0], GetParam(), true, false); |
83 | 83 |
84 AdaptiveVideoSource source2(kFlowIds[1], 30, 300, 0, 0); | 84 AdaptiveVideoSource source2(kFlowIds[1], 30, 300, 0, 0); |
85 VideoSender sender2(&downlink_, &source2, GetParam()); | 85 VideoSender sender2(&downlink_, &source2, GetParam()); |
86 ChokeFilter choke2(&downlink_, kFlowIds[1]); | 86 ChokeFilter choke2(&downlink_, kFlowIds[1]); |
87 DelayFilter delay(&downlink_, CreateFlowIds(kFlowIds, kNumFlows)); | 87 DelayFilter delay(&downlink_, CreateFlowIds(kFlowIds, kNumFlows)); |
88 RateCounterFilter counter2(&downlink_, kFlowIds[1], "receiver_input_1"); | 88 RateCounterFilter counter2(&downlink_, kFlowIds[1], "Receiver_1"); |
89 PacketReceiver receiver2(&downlink_, kFlowIds[1], GetParam(), true, false); | 89 PacketReceiver receiver2(&downlink_, kFlowIds[1], GetParam(), true, false); |
90 | 90 |
91 choke2.set_capacity_kbps(500); | 91 choke2.set_capacity_kbps(500); |
92 delay.SetOneWayDelayMs(0); | 92 delay.SetOneWayDelayMs(0); |
93 | 93 |
94 choke.set_capacity_kbps(1000); | 94 choke.set_capacity_kbps(1000); |
95 choke.set_max_delay_ms(500); | 95 choke.set_max_delay_ms(500); |
96 RunFor(60 * 1000); | 96 RunFor(60 * 1000); |
97 choke.set_capacity_kbps(500); | 97 choke.set_capacity_kbps(500); |
98 RunFor(60 * 1000); | 98 RunFor(60 * 1000); |
99 choke.set_capacity_kbps(1000); | 99 choke.set_capacity_kbps(1000); |
100 RunFor(60 * 1000); | 100 RunFor(60 * 1000); |
101 } | 101 } |
102 | 102 |
103 TEST_P(BweSimulation, Choke1000kbps500kbps1000kbps) { | 103 TEST_P(BweSimulation, Choke1000kbps500kbps1000kbps) { |
104 | 104 |
105 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 105 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
106 VideoSender sender(&uplink_, &source, GetParam()); | 106 VideoSender sender(&uplink_, &source, GetParam()); |
107 ChokeFilter choke(&uplink_, 0); | 107 ChokeFilter choke(&uplink_, 0); |
108 RateCounterFilter counter(&uplink_, 0, "receiver_input"); | 108 RateCounterFilter counter(&uplink_, 0, "Receiver"); |
109 PacketReceiver receiver(&uplink_, 0, GetParam(), true, false); | 109 PacketReceiver receiver(&uplink_, 0, GetParam(), true, false); |
110 | 110 |
111 choke.set_capacity_kbps(1000); | 111 choke.set_capacity_kbps(1000); |
112 choke.set_max_delay_ms(500); | 112 choke.set_max_delay_ms(500); |
113 RunFor(60 * 1000); | 113 RunFor(60 * 1000); |
114 choke.set_capacity_kbps(500); | 114 choke.set_capacity_kbps(500); |
115 RunFor(60 * 1000); | 115 RunFor(60 * 1000); |
116 choke.set_capacity_kbps(1000); | 116 choke.set_capacity_kbps(1000); |
117 RunFor(60 * 1000); | 117 RunFor(60 * 1000); |
118 } | 118 } |
119 | 119 |
120 TEST_P(BweSimulation, PacerChoke1000kbps500kbps1000kbps) { | 120 TEST_P(BweSimulation, PacerChoke1000kbps500kbps1000kbps) { |
121 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 121 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
122 PacedVideoSender sender(&uplink_, &source, GetParam()); | 122 PacedVideoSender sender(&uplink_, &source, GetParam()); |
123 ChokeFilter filter(&uplink_, 0); | 123 ChokeFilter filter(&uplink_, 0); |
124 RateCounterFilter counter(&uplink_, 0, "receiver_input"); | 124 RateCounterFilter counter(&uplink_, 0, "Receiver"); |
125 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 125 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
126 filter.set_capacity_kbps(1000); | 126 filter.set_capacity_kbps(1000); |
127 filter.set_max_delay_ms(500); | 127 filter.set_max_delay_ms(500); |
128 RunFor(60 * 1000); | 128 RunFor(60 * 1000); |
129 filter.set_capacity_kbps(500); | 129 filter.set_capacity_kbps(500); |
130 RunFor(60 * 1000); | 130 RunFor(60 * 1000); |
131 filter.set_capacity_kbps(1000); | 131 filter.set_capacity_kbps(1000); |
132 RunFor(60 * 1000); | 132 RunFor(60 * 1000); |
133 } | 133 } |
134 | 134 |
135 TEST_P(BweSimulation, PacerChoke10000kbps) { | 135 TEST_P(BweSimulation, PacerChoke10000kbps) { |
136 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000); | 136 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000); |
137 PacedVideoSender sender(&uplink_, &source, GetParam()); | 137 PacedVideoSender sender(&uplink_, &source, GetParam()); |
138 ChokeFilter filter(&uplink_, 0); | 138 ChokeFilter filter(&uplink_, 0); |
139 RateCounterFilter counter(&uplink_, 0, "receiver_input"); | 139 RateCounterFilter counter(&uplink_, 0, "Receiver"); |
140 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 140 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
141 filter.set_capacity_kbps(10000); | 141 filter.set_capacity_kbps(10000); |
142 filter.set_max_delay_ms(500); | 142 filter.set_max_delay_ms(500); |
143 RunFor(60 * 1000); | 143 RunFor(60 * 1000); |
144 } | 144 } |
145 | 145 |
146 TEST_P(BweSimulation, PacerChoke200kbps30kbps200kbps) { | 146 TEST_P(BweSimulation, PacerChoke200kbps30kbps200kbps) { |
147 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 147 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
148 PacedVideoSender sender(&uplink_, &source, GetParam()); | 148 PacedVideoSender sender(&uplink_, &source, GetParam()); |
149 ChokeFilter filter(&uplink_, 0); | 149 ChokeFilter filter(&uplink_, 0); |
150 RateCounterFilter counter(&uplink_, 0, "receiver_input"); | 150 RateCounterFilter counter(&uplink_, 0, "Receiver"); |
151 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 151 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
152 filter.set_capacity_kbps(200); | 152 filter.set_capacity_kbps(200); |
153 filter.set_max_delay_ms(500); | 153 filter.set_max_delay_ms(500); |
154 RunFor(60 * 1000); | 154 RunFor(60 * 1000); |
155 filter.set_capacity_kbps(30); | 155 filter.set_capacity_kbps(30); |
156 RunFor(60 * 1000); | 156 RunFor(60 * 1000); |
157 filter.set_capacity_kbps(200); | 157 filter.set_capacity_kbps(200); |
158 RunFor(60 * 1000); | 158 RunFor(60 * 1000); |
159 } | 159 } |
160 | 160 |
161 TEST_P(BweSimulation, Choke200kbps30kbps200kbps) { | 161 TEST_P(BweSimulation, Choke200kbps30kbps200kbps) { |
162 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 162 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
163 VideoSender sender(&uplink_, &source, GetParam()); | 163 VideoSender sender(&uplink_, &source, GetParam()); |
164 ChokeFilter filter(&uplink_, 0); | 164 ChokeFilter filter(&uplink_, 0); |
165 RateCounterFilter counter(&uplink_, 0, "receiver_input"); | 165 RateCounterFilter counter(&uplink_, 0, "Receiver"); |
166 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 166 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
167 filter.set_capacity_kbps(200); | 167 filter.set_capacity_kbps(200); |
168 filter.set_max_delay_ms(500); | 168 filter.set_max_delay_ms(500); |
169 RunFor(60 * 1000); | 169 RunFor(60 * 1000); |
170 filter.set_capacity_kbps(30); | 170 filter.set_capacity_kbps(30); |
171 RunFor(60 * 1000); | 171 RunFor(60 * 1000); |
172 filter.set_capacity_kbps(200); | 172 filter.set_capacity_kbps(200); |
173 RunFor(60 * 1000); | 173 RunFor(60 * 1000); |
174 } | 174 } |
175 | 175 |
176 TEST_P(BweSimulation, GoogleWifiTrace3Mbps) { | 176 TEST_P(BweSimulation, GoogleWifiTrace3Mbps) { |
177 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 177 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
178 VideoSender sender(&uplink_, &source, GetParam()); | 178 VideoSender sender(&uplink_, &source, GetParam()); |
179 RateCounterFilter counter1(&uplink_, 0, "sender_output"); | 179 RateCounterFilter counter1(&uplink_, 0, "sender_output"); |
180 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity"); | 180 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity"); |
181 filter.set_max_delay_ms(500); | 181 filter.set_max_delay_ms(500); |
182 RateCounterFilter counter2(&uplink_, 0, "receiver_input"); | 182 RateCounterFilter counter2(&uplink_, 0, "Receiver"); |
183 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 183 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
184 ASSERT_TRUE(filter.Init(test::ResourcePath("google-wifi-3mbps", "rx"))); | 184 ASSERT_TRUE(filter.Init(test::ResourcePath("google-wifi-3mbps", "rx"))); |
185 RunFor(300 * 1000); | 185 RunFor(300 * 1000); |
186 } | 186 } |
187 | 187 |
188 TEST_P(BweSimulation, LinearIncreasingCapacity) { | 188 TEST_P(BweSimulation, LinearIncreasingCapacity) { |
189 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000000); | 189 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000000); |
190 PacedVideoSender sender(&uplink_, &source, GetParam()); | 190 PacedVideoSender sender(&uplink_, &source, GetParam()); |
191 ChokeFilter filter(&uplink_, 0); | 191 ChokeFilter filter(&uplink_, 0); |
192 RateCounterFilter counter(&uplink_, 0, "receiver_input"); | 192 RateCounterFilter counter(&uplink_, 0, "Receiver"); |
193 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 193 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
194 filter.set_max_delay_ms(500); | 194 filter.set_max_delay_ms(500); |
195 const int kStartingCapacityKbps = 150; | 195 const int kStartingCapacityKbps = 150; |
196 const int kEndingCapacityKbps = 1500; | 196 const int kEndingCapacityKbps = 1500; |
197 const int kStepKbps = 5; | 197 const int kStepKbps = 5; |
198 const int kStepTimeMs = 1000; | 198 const int kStepTimeMs = 1000; |
199 | 199 |
200 for (int i = kStartingCapacityKbps; i <= kEndingCapacityKbps; | 200 for (int i = kStartingCapacityKbps; i <= kEndingCapacityKbps; |
201 i += kStepKbps) { | 201 i += kStepKbps) { |
202 filter.set_capacity_kbps(i); | 202 filter.set_capacity_kbps(i); |
203 RunFor(kStepTimeMs); | 203 RunFor(kStepTimeMs); |
204 } | 204 } |
205 } | 205 } |
206 | 206 |
207 TEST_P(BweSimulation, LinearDecreasingCapacity) { | 207 TEST_P(BweSimulation, LinearDecreasingCapacity) { |
208 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000000); | 208 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000000); |
209 PacedVideoSender sender(&uplink_, &source, GetParam()); | 209 PacedVideoSender sender(&uplink_, &source, GetParam()); |
210 ChokeFilter filter(&uplink_, 0); | 210 ChokeFilter filter(&uplink_, 0); |
211 RateCounterFilter counter(&uplink_, 0, "receiver_input"); | 211 RateCounterFilter counter(&uplink_, 0, "Receiver"); |
212 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 212 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
213 filter.set_max_delay_ms(500); | 213 filter.set_max_delay_ms(500); |
214 const int kStartingCapacityKbps = 1500; | 214 const int kStartingCapacityKbps = 1500; |
215 const int kEndingCapacityKbps = 150; | 215 const int kEndingCapacityKbps = 150; |
216 const int kStepKbps = -5; | 216 const int kStepKbps = -5; |
217 const int kStepTimeMs = 1000; | 217 const int kStepTimeMs = 1000; |
218 | 218 |
219 for (int i = kStartingCapacityKbps; i >= kEndingCapacityKbps; | 219 for (int i = kStartingCapacityKbps; i >= kEndingCapacityKbps; |
220 i += kStepKbps) { | 220 i += kStepKbps) { |
221 filter.set_capacity_kbps(i); | 221 filter.set_capacity_kbps(i); |
222 RunFor(kStepTimeMs); | 222 RunFor(kStepTimeMs); |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 TEST_P(BweSimulation, PacerGoogleWifiTrace3Mbps) { | 226 TEST_P(BweSimulation, PacerGoogleWifiTrace3Mbps) { |
227 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000); | 227 PeriodicKeyFrameSource source(0, 30, 300, 0, 0, 1000); |
228 PacedVideoSender sender(&uplink_, &source, GetParam()); | 228 PacedVideoSender sender(&uplink_, &source, GetParam()); |
229 RateCounterFilter counter1(&uplink_, 0, "sender_output"); | 229 RateCounterFilter counter1(&uplink_, 0, "sender_output"); |
230 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity"); | 230 TraceBasedDeliveryFilter filter(&uplink_, 0, "link_capacity"); |
231 filter.set_max_delay_ms(500); | 231 filter.set_max_delay_ms(500); |
232 RateCounterFilter counter2(&uplink_, 0, "receiver_input"); | 232 RateCounterFilter counter2(&uplink_, 0, "Receiver"); |
233 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); | 233 PacketReceiver receiver(&uplink_, 0, GetParam(), true, true); |
234 ASSERT_TRUE(filter.Init(test::ResourcePath("google-wifi-3mbps", "rx"))); | 234 ASSERT_TRUE(filter.Init(test::ResourcePath("google-wifi-3mbps", "rx"))); |
235 RunFor(300 * 1000); | 235 RunFor(300 * 1000); |
236 } | 236 } |
237 | 237 |
238 TEST_P(BweSimulation, SelfFairnessTest) { | 238 TEST_P(BweSimulation, SelfFairnessTest) { |
239 srand(Clock::GetRealTimeClock()->TimeInMicroseconds()); | 239 srand(Clock::GetRealTimeClock()->TimeInMicroseconds()); |
240 const int kAllFlowIds[] = {0, 1, 2, 3}; | 240 const int kAllFlowIds[] = {0, 1, 2, 3}; |
241 const size_t kNumFlows = sizeof(kAllFlowIds) / sizeof(kAllFlowIds[0]); | 241 const size_t kNumFlows = sizeof(kAllFlowIds) / sizeof(kAllFlowIds[0]); |
242 rtc::scoped_ptr<VideoSource> sources[kNumFlows]; | 242 rtc::scoped_ptr<VideoSource> sources[kNumFlows]; |
243 rtc::scoped_ptr<VideoSender> senders[kNumFlows]; | 243 rtc::scoped_ptr<VideoSender> senders[kNumFlows]; |
244 for (size_t i = 0; i < kNumFlows; ++i) { | 244 for (size_t i = 0; i < kNumFlows; ++i) { |
245 // Streams started 20 seconds apart to give them different advantage when | 245 // Streams started 20 seconds apart to give them different advantage when |
246 // competing for the bandwidth. | 246 // competing for the bandwidth. |
247 sources[i].reset(new AdaptiveVideoSource(kAllFlowIds[i], 30, 300, 0, | 247 sources[i].reset(new AdaptiveVideoSource(kAllFlowIds[i], 30, 300, 0, |
248 i * (rand() % 40000))); | 248 i * (rand() % 40000))); |
249 senders[i].reset(new VideoSender(&uplink_, sources[i].get(), GetParam())); | 249 senders[i].reset(new VideoSender(&uplink_, sources[i].get(), GetParam())); |
250 } | 250 } |
251 | 251 |
252 ChokeFilter choke(&uplink_, CreateFlowIds(kAllFlowIds, kNumFlows)); | 252 ChokeFilter choke(&uplink_, CreateFlowIds(kAllFlowIds, kNumFlows)); |
253 choke.set_capacity_kbps(1000); | 253 choke.set_capacity_kbps(1000); |
254 | 254 |
255 rtc::scoped_ptr<RateCounterFilter> rate_counters[kNumFlows]; | 255 rtc::scoped_ptr<RateCounterFilter> rate_counters[kNumFlows]; |
256 for (size_t i = 0; i < kNumFlows; ++i) { | 256 for (size_t i = 0; i < kNumFlows; ++i) { |
257 rate_counters[i].reset(new RateCounterFilter( | 257 rate_counters[i].reset(new RateCounterFilter( |
258 &uplink_, CreateFlowIds(&kAllFlowIds[i], 1), "receiver_input")); | 258 &uplink_, CreateFlowIds(&kAllFlowIds[i], 1), "Receiver")); |
259 } | 259 } |
260 | 260 |
261 RateCounterFilter total_utilization( | 261 RateCounterFilter total_utilization( |
262 &uplink_, CreateFlowIds(kAllFlowIds, kNumFlows), "total_utilization"); | 262 &uplink_, CreateFlowIds(kAllFlowIds, kNumFlows), "total_utilization"); |
263 | 263 |
264 rtc::scoped_ptr<PacketReceiver> receivers[kNumFlows]; | 264 rtc::scoped_ptr<PacketReceiver> receivers[kNumFlows]; |
265 for (size_t i = 0; i < kNumFlows; ++i) { | 265 for (size_t i = 0; i < kNumFlows; ++i) { |
266 receivers[i].reset(new PacketReceiver(&uplink_, kAllFlowIds[i], GetParam(), | 266 receivers[i].reset(new PacketReceiver(&uplink_, kAllFlowIds[i], GetParam(), |
267 i == 0, false)); | 267 i == 0, false)); |
268 } | 268 } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 434 |
435 BweTest gcc_test(false); | 435 BweTest gcc_test(false); |
436 gcc_test.RunChoke(kFullSendSideEstimator, capacities_kbps); | 436 gcc_test.RunChoke(kFullSendSideEstimator, capacities_kbps); |
437 } | 437 } |
438 | 438 |
439 #endif // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE | 439 #endif // BWE_TEST_LOGGING_COMPILE_TIME_ENABLE |
440 } // namespace bwe | 440 } // namespace bwe |
441 } // namespace testing | 441 } // namespace testing |
442 } // namespace webrtc | 442 } // namespace webrtc |
443 | 443 |
OLD | NEW |