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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
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, kSendSideEstimator)); |
61 kFullSendSideEstimator)); | |
62 | 61 |
63 TEST_P(BweFeedbackTest, ConstantCapacity) { | 62 TEST_P(BweFeedbackTest, ConstantCapacity) { |
64 AdaptiveVideoSource source(0, 30, 300, 0, 0); | 63 AdaptiveVideoSource source(0, 30, 300, 0, 0); |
65 PacedVideoSender sender(&uplink_, &source, GetParam()); | 64 PacedVideoSender sender(&uplink_, &source, GetParam()); |
66 ChokeFilter filter(&uplink_, 0); | 65 ChokeFilter filter(&uplink_, 0); |
67 RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]); | 66 RateCounterFilter counter(&uplink_, 0, "Receiver", bwe_names[GetParam()]); |
68 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); | 67 PacketReceiver receiver(&uplink_, 0, GetParam(), false, false); |
69 const int kCapacityKbps = 1000; | 68 const int kCapacityKbps = 1000; |
70 filter.set_capacity_kbps(kCapacityKbps); | 69 filter.set_capacity_kbps(kCapacityKbps); |
71 filter.set_max_delay_ms(500); | 70 filter.set_max_delay_ms(500); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 for (int i = 0; i < 2; ++i) { | 220 for (int i = 0; i < 2; ++i) { |
222 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); | 221 offset_ms[i] = std::max(0, 5000 * i + random_.Rand(-1000, 1000)); |
223 } | 222 } |
224 | 223 |
225 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, | 224 RunFairnessTest(GetParam(), 1, 1, 300, 2000, 1000, kRttMs, kMaxJitterMs, |
226 offset_ms); | 225 offset_ms); |
227 } | 226 } |
228 } // namespace bwe | 227 } // namespace bwe |
229 } // namespace testing | 228 } // namespace testing |
230 } // namespace webrtc | 229 } // namespace webrtc |
OLD | NEW |