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

Side by Side Diff: webrtc/call/rampup_tests.cc

Issue 2791743002: Revert of Enable trendline experiment and bayesian bitrate estimator experiment by default. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | webrtc/examples/objc/AppRTCMobile/ios/ARDAppDelegate.m » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 bool report_perf_stats) 410 bool report_perf_stats)
411 : RampUpTester(num_video_streams, 411 : RampUpTester(num_video_streams,
412 num_audio_streams, 412 num_audio_streams,
413 num_flexfec_streams, 413 num_flexfec_streams,
414 start_bitrate_bps, 414 start_bitrate_bps,
415 0, 415 0,
416 extension_type, 416 extension_type,
417 rtx, 417 rtx,
418 red, 418 red,
419 report_perf_stats), 419 report_perf_stats),
420 link_rates_({4 * GetExpectedHighBitrate() / (3 * 1000), 420 link_rates_({GetHighLinkCapacity(), kLowBandwidthLimitBps / 1000,
421 kLowBandwidthLimitBps / 1000, 421 GetHighLinkCapacity(), 0}),
422 4 * GetExpectedHighBitrate() / (3 * 1000), 0}),
423 test_state_(kFirstRampup), 422 test_state_(kFirstRampup),
424 next_state_(kTransitionToNextState), 423 next_state_(kTransitionToNextState),
425 state_start_ms_(clock_->TimeInMilliseconds()), 424 state_start_ms_(clock_->TimeInMilliseconds()),
426 interval_start_ms_(clock_->TimeInMilliseconds()), 425 interval_start_ms_(clock_->TimeInMilliseconds()),
427 sent_bytes_(0), 426 sent_bytes_(0),
428 loss_rates_(loss_rates) { 427 loss_rates_(loss_rates) {
429 forward_transport_config_.link_capacity_kbps = link_rates_[test_state_]; 428 forward_transport_config_.link_capacity_kbps = link_rates_[test_state_];
430 forward_transport_config_.queue_delay_ms = 100; 429 forward_transport_config_.queue_delay_ms = 100;
431 forward_transport_config_.loss_percent = loss_rates_[test_state_]; 430 forward_transport_config_.loss_percent = loss_rates_[test_state_];
432 } 431 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 481
483 int RampUpDownUpTester::GetExpectedHighBitrate() const { 482 int RampUpDownUpTester::GetExpectedHighBitrate() const {
484 int expected_bitrate_bps = 0; 483 int expected_bitrate_bps = 0;
485 if (num_audio_streams_ > 0) 484 if (num_audio_streams_ > 0)
486 expected_bitrate_bps += kExpectedHighAudioBitrateBps; 485 expected_bitrate_bps += kExpectedHighAudioBitrateBps;
487 if (num_video_streams_ > 0) 486 if (num_video_streams_ > 0)
488 expected_bitrate_bps += kExpectedHighVideoBitrateBps; 487 expected_bitrate_bps += kExpectedHighVideoBitrateBps;
489 return expected_bitrate_bps; 488 return expected_bitrate_bps;
490 } 489 }
491 490
491 int RampUpDownUpTester::GetHighLinkCapacity() const {
492 return 4 * GetExpectedHighBitrate() / (3 * 1000);
493 }
494
492 size_t RampUpDownUpTester::GetFecBytes() const { 495 size_t RampUpDownUpTester::GetFecBytes() const {
493 size_t flex_fec_bytes = 0; 496 size_t flex_fec_bytes = 0;
494 if (num_flexfec_streams_ > 0) { 497 if (num_flexfec_streams_ > 0) {
495 webrtc::VideoSendStream::Stats stats = send_stream_->GetStats(); 498 webrtc::VideoSendStream::Stats stats = send_stream_->GetStats();
496 for (const auto& kv : stats.substreams) 499 for (const auto& kv : stats.substreams)
497 flex_fec_bytes += kv.second.rtp_stats.fec.TotalBytes(); 500 flex_fec_bytes += kv.second.rtp_stats.fec.TotalBytes();
498 } 501 }
499 return flex_fec_bytes; 502 return flex_fec_bytes;
500 } 503 }
501 504
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 RunBaseTest(&test); 664 RunBaseTest(&test);
662 } 665 }
663 666
664 TEST_F(RampUpTest, AudioTransportSequenceNumber) { 667 TEST_F(RampUpTest, AudioTransportSequenceNumber) {
665 RampUpTester test(0, 1, 0, 300000, 10000, 668 RampUpTester test(0, 1, 0, 300000, 10000,
666 RtpExtension::kTransportSequenceNumberUri, false, false, 669 RtpExtension::kTransportSequenceNumberUri, false, false,
667 false); 670 false);
668 RunBaseTest(&test); 671 RunBaseTest(&test);
669 } 672 }
670 } // namespace webrtc 673 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/examples/objc/AppRTCMobile/ios/ARDAppDelegate.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698