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

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: 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
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 str += std::to_string(num_streams_);
pbos-webrtc 2015/12/09 11:21:49 C++11 library feature, not permitted yet. Conside
mflodman 2015/12/09 13:49:36 Done.
326 sprintf(temp_str, "%i", static_cast<int>(num_streams_));
327 str += std::string(temp_str);
328 str += "stream"; 326 str += "stream";
329 str += (num_streams_ > 1 ? "s" : ""); 327 str += (num_streams_ > 1 ? "s" : "");
330 str += "_"; 328 str += "_";
331 str += (rtx_ ? "" : "no"); 329 str += (rtx_ ? "" : "no");
332 str += "rtx"; 330 str += "rtx";
333 return str; 331 return str;
334 } 332 }
335 333
336 void RampUpDownUpTester::EvolveTestState(int bitrate_bps, bool suspended) { 334 void RampUpDownUpTester::EvolveTestState(int bitrate_bps, bool suspended) {
337 int64_t now = clock_->TimeInMilliseconds(); 335 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); 501 RampUpTester test(3, 0, RtpExtension::kTransportSequenceNumber, true, true);
504 RunBaseTest(&test, FakeNetworkPipe::Config()); 502 RunBaseTest(&test, FakeNetworkPipe::Config());
505 } 503 }
506 504
507 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) { 505 TEST_F(RampUpTest, TransportSequenceNumberSingleStreamWithHighStartBitrate) {
508 RampUpTester test(1, 0.9 * kSingleStreamTargetBps, 506 RampUpTester test(1, 0.9 * kSingleStreamTargetBps,
509 RtpExtension::kTransportSequenceNumber, false, false); 507 RtpExtension::kTransportSequenceNumber, false, false);
510 RunBaseTest(&test, FakeNetworkPipe::Config()); 508 RunBaseTest(&test, FakeNetworkPipe::Config());
511 } 509 }
512 } // namespace webrtc 510 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698