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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); |
1273 // TODO(holmer): We should set the last sent packet id here and verify | 1273 // TODO(holmer): We should set the last sent packet id here and verify |
1274 // that we correctly ignore any packet loss reported prior to that id. | 1274 // that we correctly ignore any packet loss reported prior to that id. |
1275 ++new_route.local_network_id; | 1275 ++new_route.local_network_id; |
1276 call_->OnNetworkRouteChanged("transport", new_route); | 1276 call_->OnNetworkRouteChanged("transport", new_route); |
1277 EXPECT_GT(call_->GetStats().send_bandwidth_bps, kStartBitrateBps); | 1277 EXPECT_EQ(kStartBitrateBps, call_->GetStats().send_bandwidth_bps); |
1278 } | 1278 } |
1279 | 1279 |
1280 private: | 1280 private: |
1281 Call* call_; | 1281 Call* call_; |
1282 } test; | 1282 } test; |
1283 | 1283 |
1284 RunBaseTest(&test); | 1284 RunBaseTest(&test); |
1285 } | 1285 } |
1286 | 1286 |
1287 class MaxPaddingSetTest : public test::SendTest { | 1287 class MaxPaddingSetTest : public test::SendTest { |
(...skipping 1600 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 |