Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: webrtc/video/video_send_stream_tests.cc

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698