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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 void SetUp() override { | 249 void SetUp() override { |
250 unsigned int seed = Clock::GetRealTimeClock()->TimeInMicroseconds(); | 250 unsigned int seed = Clock::GetRealTimeClock()->TimeInMicroseconds(); |
251 #ifndef WEBRTC_WIN | 251 #ifndef WEBRTC_WIN |
252 seed *= getpid(); | 252 seed *= getpid(); |
253 #endif | 253 #endif |
254 srand(seed); | 254 srand(seed); |
255 BweTest::SetUp(); | 255 BweTest::SetUp(); |
256 } | 256 } |
257 | 257 |
258 private: | 258 private: |
259 DISALLOW_COPY_AND_ASSIGN(BweFeedbackTest); | 259 RTC_DISALLOW_COPY_AND_ASSIGN(BweFeedbackTest); |
260 }; | 260 }; |
261 | 261 |
262 INSTANTIATE_TEST_CASE_P(VideoSendersTest, | 262 INSTANTIATE_TEST_CASE_P(VideoSendersTest, |
263 BweFeedbackTest, | 263 BweFeedbackTest, |
264 ::testing::Values(kRembEstimator, | 264 ::testing::Values(kRembEstimator, |
265 kFullSendSideEstimator)); | 265 kFullSendSideEstimator)); |
266 | 266 |
267 TEST_P(BweFeedbackTest, ConstantCapacity) { | 267 TEST_P(BweFeedbackTest, ConstantCapacity) { |
268 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 268 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
269 PacedVideoSender sender(&uplink_, &source, GetParam()); | 269 PacedVideoSender sender(&uplink_, &source, GetParam()); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 for (int i = 0; i < 2; ++i) { | 425 for (int i = 0; i < 2; ++i) { |
426 offset_ms[i] = std::max(0, 5000 * i + rand() % 2001 - 1000); | 426 offset_ms[i] = std::max(0, 5000 * i + rand() % 2001 - 1000); |
427 } | 427 } |
428 | 428 |
429 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, | 429 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, |
430 offset_ms); | 430 offset_ms); |
431 } | 431 } |
432 } // namespace bwe | 432 } // namespace bwe |
433 } // namespace testing | 433 } // namespace testing |
434 } // namespace webrtc | 434 } // namespace webrtc |
OLD | NEW |