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

Side by Side Diff: webrtc/modules/bitrate_controller/bitrate_controller_unittest.cc

Issue 2414913002: Fix experiment name in BitrateControllerTest. (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
« no previous file with comments | « no previous file | no next file » | 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 EXPECT_EQ(100000, bitrate_observer_.last_bitrate_); 405 EXPECT_EQ(100000, bitrate_observer_.last_bitrate_);
406 406
407 controller_->SetReservedBitrate(10000); 407 controller_->SetReservedBitrate(10000);
408 bandwidth_observer_->OnReceivedEstimatedBitrate(1); 408 bandwidth_observer_->OnReceivedEstimatedBitrate(1);
409 EXPECT_EQ(100000, bitrate_observer_.last_bitrate_); 409 EXPECT_EQ(100000, bitrate_observer_.last_bitrate_);
410 } 410 }
411 411
412 TEST_F(BitrateControllerTest, TimeoutsWithoutFeedback) { 412 TEST_F(BitrateControllerTest, TimeoutsWithoutFeedback) {
413 { 413 {
414 webrtc::test::ScopedFieldTrials override_field_trials( 414 webrtc::test::ScopedFieldTrials override_field_trials(
415 "WebRTC-SendSideBwe/Enabled/"); 415 "WebRTC-FeedbackTimeout/Enabled/");
416 SetUp(); 416 SetUp();
417 int expected_bitrate_bps = 300000; 417 int expected_bitrate_bps = 300000;
418 controller_->SetBitrates(300000, kDefaultMinBitrateBps, 418 controller_->SetBitrates(300000, kDefaultMinBitrateBps,
419 kDefaultMaxBitrateBps); 419 kDefaultMaxBitrateBps);
420 420
421 webrtc::ReportBlockList report_blocks; 421 webrtc::ReportBlockList report_blocks;
422 report_blocks.push_back(CreateReportBlock(1, 2, 0, 1)); 422 report_blocks.push_back(CreateReportBlock(1, 2, 0, 1));
423 bandwidth_observer_->OnReceivedRtcpReceiverReport( 423 bandwidth_observer_->OnReceivedRtcpReceiverReport(
424 report_blocks, 50, clock_.TimeInMilliseconds()); 424 report_blocks, 50, clock_.TimeInMilliseconds());
425 EXPECT_EQ(expected_bitrate_bps, bitrate_observer_.last_bitrate_); 425 EXPECT_EQ(expected_bitrate_bps, bitrate_observer_.last_bitrate_);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 clock_.AdvanceTimeMilliseconds(100); 505 clock_.AdvanceTimeMilliseconds(100);
506 506
507 // 15 packets reported as received since last, enough to increase. 507 // 15 packets reported as received since last, enough to increase.
508 report_blocks.push_back(CreateReportBlock(1, 2, 0, 41)); 508 report_blocks.push_back(CreateReportBlock(1, 2, 0, 41));
509 bandwidth_observer_->OnReceivedRtcpReceiverReport( 509 bandwidth_observer_->OnReceivedRtcpReceiverReport(
510 report_blocks, 50, clock_.TimeInMilliseconds()); 510 report_blocks, 50, clock_.TimeInMilliseconds());
511 expected_bitrate_bps = expected_bitrate_bps * 1.08 + 1000; 511 expected_bitrate_bps = expected_bitrate_bps * 1.08 + 1000;
512 EXPECT_EQ(expected_bitrate_bps, bitrate_observer_.last_bitrate_); 512 EXPECT_EQ(expected_bitrate_bps, bitrate_observer_.last_bitrate_);
513 clock_.AdvanceTimeMilliseconds(1000); 513 clock_.AdvanceTimeMilliseconds(1000);
514 } 514 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698