| 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 #include <algorithm> // max | 10 #include <algorithm> // max |
| (...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 | 1252 |
| 1253 Action OnSendRtp(const uint8_t* packet, size_t length) override { | 1253 Action OnSendRtp(const uint8_t* packet, size_t length) override { |
| 1254 if (call_->GetStats().send_bandwidth_bps > kStartBitrateBps) { | 1254 if (call_->GetStats().send_bandwidth_bps > kStartBitrateBps) { |
| 1255 observation_complete_.Set(); | 1255 observation_complete_.Set(); |
| 1256 } | 1256 } |
| 1257 | 1257 |
| 1258 return SEND_PACKET; | 1258 return SEND_PACKET; |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 void PerformTest() override { | 1261 void PerformTest() override { |
| 1262 rtc::NetworkRoute new_route(true, 10, 20, -1); | 1262 rtc::NetworkRoute new_route(true, 10, 20, -1, 28); |
| 1263 call_->OnNetworkRouteChanged("transport", new_route); | 1263 call_->OnNetworkRouteChanged("transport", new_route); |
| 1264 Call::Config::BitrateConfig bitrate_config; | 1264 Call::Config::BitrateConfig bitrate_config; |
| 1265 bitrate_config.start_bitrate_bps = kStartBitrateBps; | 1265 bitrate_config.start_bitrate_bps = kStartBitrateBps; |
| 1266 call_->SetBitrateConfig(bitrate_config); | 1266 call_->SetBitrateConfig(bitrate_config); |
| 1267 EXPECT_TRUE(Wait()) | 1267 EXPECT_TRUE(Wait()) |
| 1268 << "Timed out while waiting for start bitrate to be exceeded."; | 1268 << "Timed out while waiting for start bitrate to be exceeded."; |
| 1269 | 1269 |
| 1270 bitrate_config.start_bitrate_bps = -1; | 1270 bitrate_config.start_bitrate_bps = -1; |
| 1271 bitrate_config.max_bitrate_bps = kNewMaxBitrateBps; | 1271 bitrate_config.max_bitrate_bps = kNewMaxBitrateBps; |
| 1272 call_->SetBitrateConfig(bitrate_config); | 1272 call_->SetBitrateConfig(bitrate_config); |
| (...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2888 observation_complete_.Set(); | 2888 observation_complete_.Set(); |
| 2889 } | 2889 } |
| 2890 } | 2890 } |
| 2891 } test; | 2891 } test; |
| 2892 | 2892 |
| 2893 RunBaseTest(&test); | 2893 RunBaseTest(&test); |
| 2894 } | 2894 } |
| 2895 #endif // !defined(RTC_DISABLE_VP9) | 2895 #endif // !defined(RTC_DISABLE_VP9) |
| 2896 | 2896 |
| 2897 } // namespace webrtc | 2897 } // namespace webrtc |
| OLD | NEW |