| OLD | NEW |
| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 } | 247 } |
| 248 for (size_t i = 0; i < num_tcp_flows; ++i) { | 248 for (size_t i = 0; i < num_tcp_flows; ++i) { |
| 249 tcp_flow_ids.insert(next_flow_id); | 249 tcp_flow_ids.insert(next_flow_id); |
| 250 all_flow_ids.insert(next_flow_id); | 250 all_flow_ids.insert(next_flow_id); |
| 251 ++next_flow_id; | 251 ++next_flow_id; |
| 252 } | 252 } |
| 253 | 253 |
| 254 std::vector<VideoSource*> sources; | 254 std::vector<VideoSource*> sources; |
| 255 std::vector<PacketSender*> senders; | 255 std::vector<PacketSender*> senders; |
| 256 | 256 |
| 257 size_t i = 0; | 257 size_t i = 1; |
| 258 for (int media_flow : media_flow_ids) { | 258 for (int media_flow : media_flow_ids) { |
| 259 // Streams started 20 seconds apart to give them different advantage when | 259 // Streams started 20 seconds apart to give them different advantage when |
| 260 // competing for the bandwidth. | 260 // competing for the bandwidth. |
| 261 const int64_t kFlowStartOffsetMs = i++ * (rand() % 10000); | 261 const int64_t kFlowStartOffsetMs = i++ * (rand() % 10000); |
| 262 sources.push_back(new AdaptiveVideoSource(media_flow, 30, 300, 0, | 262 sources.push_back(new AdaptiveVideoSource(media_flow, 30, 300, 0, |
| 263 kFlowStartOffsetMs)); | 263 kFlowStartOffsetMs)); |
| 264 senders.push_back(new PacedVideoSender(&uplink_, sources.back(), bwe_type)); | 264 senders.push_back(new PacedVideoSender(&uplink_, sources.back(), bwe_type)); |
| 265 } | 265 } |
| 266 | 266 |
| 267 const int64_t kTcpStartOffsetMs = 5000; | 267 const int64_t kTcpStartOffsetMs = 5000; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 for (PacketSender* sender : senders) | 320 for (PacketSender* sender : senders) |
| 321 delete sender; | 321 delete sender; |
| 322 for (RateCounterFilter* rate_counter : rate_counters) | 322 for (RateCounterFilter* rate_counter : rate_counters) |
| 323 delete rate_counter; | 323 delete rate_counter; |
| 324 for (PacketReceiver* receiver : receivers) | 324 for (PacketReceiver* receiver : receivers) |
| 325 delete receiver; | 325 delete receiver; |
| 326 } | 326 } |
| 327 } // namespace bwe | 327 } // namespace bwe |
| 328 } // namespace testing | 328 } // namespace testing |
| 329 } // namespace webrtc | 329 } // namespace webrtc |
| OLD | NEW |