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

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

Issue 1578223002: Fix test bug introduced in r11101. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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 | « webrtc/call/rampup_tests.h ('k') | 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) 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 send_stream_ = send_stream; 80 send_stream_ = send_stream;
81 } 81 }
82 82
83 test::PacketTransport* RampUpTester::CreateSendTransport(Call* sender_call) { 83 test::PacketTransport* RampUpTester::CreateSendTransport(Call* sender_call) {
84 send_transport_ = new test::PacketTransport(sender_call, this, 84 send_transport_ = new test::PacketTransport(sender_call, this,
85 test::PacketTransport::kSender, 85 test::PacketTransport::kSender,
86 forward_transport_config_); 86 forward_transport_config_);
87 return send_transport_; 87 return send_transport_;
88 } 88 }
89 89
90 size_t RampUpTester::GetNumVideoStreams() const {
91 return num_video_streams_;
92 }
93
90 void RampUpTester::ModifyVideoConfigs( 94 void RampUpTester::ModifyVideoConfigs(
91 VideoSendStream::Config* send_config, 95 VideoSendStream::Config* send_config,
92 std::vector<VideoReceiveStream::Config>* receive_configs, 96 std::vector<VideoReceiveStream::Config>* receive_configs,
93 VideoEncoderConfig* encoder_config) { 97 VideoEncoderConfig* encoder_config) {
94 send_config->suspend_below_min_bitrate = true; 98 send_config->suspend_below_min_bitrate = true;
95 99
96 if (num_video_streams_ == 1) { 100 if (num_video_streams_ == 1) {
97 encoder_config->streams[0].target_bitrate_bps = 101 encoder_config->streams[0].target_bitrate_bps =
98 encoder_config->streams[0].max_bitrate_bps = 2000000; 102 encoder_config->streams[0].max_bitrate_bps = 2000000;
99 // For single stream rampup until 1mbps 103 // For single stream rampup until 1mbps
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 true); 501 true);
498 RunBaseTest(&test); 502 RunBaseTest(&test);
499 } 503 }
500 504
501 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { 505 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) {
502 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps, 506 RampUpTester test(1, 0, 0.9 * kSingleStreamTargetBps,
503 RtpExtension::kTransportSequenceNumber, false, false); 507 RtpExtension::kTransportSequenceNumber, false, false);
504 RunBaseTest(&test); 508 RunBaseTest(&test);
505 } 509 }
506 } // namespace webrtc 510 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/rampup_tests.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698