| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 Loading... |
| 117 | 117 |
| 118 TEST_F(DelayBasedBweTest, InitialBehavior) { | 118 TEST_F(DelayBasedBweTest, InitialBehavior) { |
| 119 InitialBehaviorTestHelper(674840); | 119 InitialBehaviorTestHelper(674840); |
| 120 } | 120 } |
| 121 | 121 |
| 122 TEST_F(DelayBasedBweTest, RateIncreaseReordering) { | 122 TEST_F(DelayBasedBweTest, RateIncreaseReordering) { |
| 123 RateIncreaseReorderingTestHelper(674840); | 123 RateIncreaseReorderingTestHelper(674840); |
| 124 } | 124 } |
| 125 | 125 |
| 126 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) { | 126 TEST_F(DelayBasedBweTest, RateIncreaseRtpTimestamps) { |
| 127 RateIncreaseRtpTimestampsTestHelper(1240); | 127 RateIncreaseRtpTimestampsTestHelper(1116); |
| 128 } | 128 } |
| 129 | 129 |
| 130 TEST_F(DelayBasedBweTest, CapacityDropOneStream) { | 130 TEST_F(DelayBasedBweTest, CapacityDropOneStream) { |
| 131 CapacityDropTestHelper(1, false, 633, 0); | 131 CapacityDropTestHelper(1, false, 599, 0); |
| 132 } | 132 } |
| 133 | 133 |
| 134 TEST_F(DelayBasedBweTest, CapacityDropPosOffsetChange) { | 134 TEST_F(DelayBasedBweTest, CapacityDropPosOffsetChange) { |
| 135 CapacityDropTestHelper(1, false, 200, 30000); | 135 CapacityDropTestHelper(1, false, 166, 30000); |
| 136 } | 136 } |
| 137 | 137 |
| 138 TEST_F(DelayBasedBweTest, CapacityDropNegOffsetChange) { | 138 TEST_F(DelayBasedBweTest, CapacityDropNegOffsetChange) { |
| 139 CapacityDropTestHelper(1, false, 733, -30000); | 139 CapacityDropTestHelper(1, false, 299, -30000); |
| 140 } | 140 } |
| 141 | 141 |
| 142 TEST_F(DelayBasedBweTest, CapacityDropOneStreamWrap) { | 142 TEST_F(DelayBasedBweTest, CapacityDropOneStreamWrap) { |
| 143 CapacityDropTestHelper(1, true, 633, 0); | 143 CapacityDropTestHelper(1, true, 599, 0); |
| 144 } | 144 } |
| 145 | 145 |
| 146 TEST_F(DelayBasedBweTest, CapacityDropTwoStreamsWrap) { | 146 TEST_F(DelayBasedBweTest, CapacityDropTwoStreamsWrap) { |
| 147 CapacityDropTestHelper(2, true, 767, 0); | 147 CapacityDropTestHelper(2, true, 600, 0); |
| 148 } | 148 } |
| 149 | 149 |
| 150 TEST_F(DelayBasedBweTest, CapacityDropThreeStreamsWrap) { | 150 TEST_F(DelayBasedBweTest, CapacityDropThreeStreamsWrap) { |
| 151 CapacityDropTestHelper(3, true, 633, 0); | 151 CapacityDropTestHelper(3, true, 620, 0); |
| 152 } | 152 } |
| 153 | 153 |
| 154 TEST_F(DelayBasedBweTest, CapacityDropThirteenStreamsWrap) { | 154 TEST_F(DelayBasedBweTest, CapacityDropThirteenStreamsWrap) { |
| 155 CapacityDropTestHelper(13, true, 733, 0); | 155 CapacityDropTestHelper(13, true, 620, 0); |
| 156 } | 156 } |
| 157 | 157 |
| 158 TEST_F(DelayBasedBweTest, CapacityDropNineteenStreamsWrap) { | 158 TEST_F(DelayBasedBweTest, CapacityDropNineteenStreamsWrap) { |
| 159 CapacityDropTestHelper(19, true, 667, 0); | 159 CapacityDropTestHelper(19, true, 620, 0); |
| 160 } | 160 } |
| 161 | 161 |
| 162 TEST_F(DelayBasedBweTest, CapacityDropThirtyStreamsWrap) { | 162 TEST_F(DelayBasedBweTest, CapacityDropThirtyStreamsWrap) { |
| 163 CapacityDropTestHelper(30, true, 667, 0); | 163 CapacityDropTestHelper(30, true, 600, 0); |
| 164 } | 164 } |
| 165 | 165 |
| 166 TEST_F(DelayBasedBweTest, TestTimestampGrouping) { | 166 TEST_F(DelayBasedBweTest, TestTimestampGrouping) { |
| 167 TestTimestampGroupingTestHelper(); | 167 TestTimestampGroupingTestHelper(); |
| 168 } | 168 } |
| 169 | 169 |
| 170 TEST_F(DelayBasedBweTest, TestShortTimeoutAndWrap) { | 170 TEST_F(DelayBasedBweTest, TestShortTimeoutAndWrap) { |
| 171 // Simulate a client leaving and rejoining the call after 35 seconds. This | 171 // Simulate a client leaving and rejoining the call after 35 seconds. This |
| 172 // will make abs send time wrap, so if streams aren't timed out properly | 172 // will make abs send time wrap, so if streams aren't timed out properly |
| 173 // the next 30 seconds of packets will be out of order. | 173 // the next 30 seconds of packets will be out of order. |
| 174 TestWrappingHelper(35); | 174 TestWrappingHelper(35); |
| 175 } | 175 } |
| 176 | 176 |
| 177 TEST_F(DelayBasedBweTest, TestLongTimeoutAndWrap) { | 177 TEST_F(DelayBasedBweTest, TestLongTimeoutAndWrap) { |
| 178 // Simulate a client leaving and rejoining the call after some multiple of | 178 // Simulate a client leaving and rejoining the call after some multiple of |
| 179 // 64 seconds later. This will cause a zero difference in abs send times due | 179 // 64 seconds later. This will cause a zero difference in abs send times due |
| 180 // to the wrap, but a big difference in arrival time, if streams aren't | 180 // to the wrap, but a big difference in arrival time, if streams aren't |
| 181 // properly timed out. | 181 // properly timed out. |
| 182 TestWrappingHelper(10 * 64); | 182 TestWrappingHelper(10 * 64); |
| 183 } | 183 } |
| 184 } // namespace webrtc | 184 } // namespace webrtc |
| OLD | NEW |