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

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

Issue 1507643004: Lint clean video/ and add lint presubmit check. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: ostringstream Created 5 years 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/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.h » ('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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 } 315 }
316 316
317 Call::Config RampUpDownUpTester::GetReceiverCallConfig() { 317 Call::Config RampUpDownUpTester::GetReceiverCallConfig() {
318 Call::Config config; 318 Call::Config config;
319 config.bitrate_config.min_bitrate_bps = 10000; 319 config.bitrate_config.min_bitrate_bps = 10000;
320 return config; 320 return config;
321 } 321 }
322 322
323 std::string RampUpDownUpTester::GetModifierString() const { 323 std::string RampUpDownUpTester::GetModifierString() const {
324 std::string str("_"); 324 std::string str("_");
325 char temp_str[5]; 325 std::ostringstream s;
326 sprintf(temp_str, "%i", static_cast<int>(num_streams_)); 326 s << num_streams_;
327 str += std::string(temp_str); 327 str += s.str();
328 str += "stream"; 328 str += "stream";
329 str += (num_streams_ > 1 ? "s" : ""); 329 str += (num_streams_ > 1 ? "s" : "");
330 str += "_"; 330 str += "_";
331 str += (rtx_ ? "" : "no"); 331 str += (rtx_ ? "" : "no");
332 str += "rtx"; 332 str += "rtx";
333 return str; 333 return str;
334 } 334 }
335 335
336 void RampUpDownUpTester::EvolveTestState(int bitrate_bps, bool suspended) { 336 void RampUpDownUpTester::EvolveTestState(int bitrate_bps, bool suspended) {
337 int64_t now = clock_->TimeInMilliseconds(); 337 int64_t now = clock_->TimeInMilliseconds();
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 RampUpTester test(3, 0, RtpExtension::kTransportSequenceNumber, true, true); 503 RampUpTester test(3, 0, RtpExtension::kTransportSequenceNumber, true, true);
504 RunBaseTest(&test, FakeNetworkPipe::Config()); 504 RunBaseTest(&test, FakeNetworkPipe::Config());
505 } 505 }
506 506
507 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { 507 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) {
508 RampUpTester test(1, 0.9 * kSingleStreamTargetBps, 508 RampUpTester test(1, 0.9 * kSingleStreamTargetBps,
509 RtpExtension::kTransportSequenceNumber, false, false); 509 RtpExtension::kTransportSequenceNumber, false, false);
510 RunBaseTest(&test, FakeNetworkPipe::Config()); 510 RunBaseTest(&test, FakeNetworkPipe::Config());
511 } 511 }
512 } // namespace webrtc 512 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698