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

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

Issue 2029013002: Video loopback avg_burst_loss_length default parameter fix. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 "If empty, title will be generated automatically."); 94 "If empty, title will be generated automatically.");
95 std::string GraphTitle() { 95 std::string GraphTitle() {
96 return static_cast<std::string>(FLAGS_graph_title); 96 return static_cast<std::string>(FLAGS_graph_title);
97 } 97 }
98 98
99 DEFINE_int32(loss_percent, 0, "Percentage of packets randomly lost."); 99 DEFINE_int32(loss_percent, 0, "Percentage of packets randomly lost.");
100 int LossPercent() { 100 int LossPercent() {
101 return static_cast<int>(FLAGS_loss_percent); 101 return static_cast<int>(FLAGS_loss_percent);
102 } 102 }
103 103
104 DEFINE_int32(avg_burst_loss_length, 1, "Average burst length of lost packets."); 104 DEFINE_int32(avg_burst_loss_length,
105 -1,
106 "Average burst length of lost packets.");
105 int AvgBurstLossLength() { 107 int AvgBurstLossLength() {
106 return static_cast<int>(FLAGS_avg_burst_loss_length); 108 return static_cast<int>(FLAGS_avg_burst_loss_length);
107 } 109 }
108 110
109 DEFINE_int32(link_capacity, 111 DEFINE_int32(link_capacity,
110 0, 112 0,
111 "Capacity (kbps) of the fake link. 0 means infinite."); 113 "Capacity (kbps) of the fake link. 0 means infinite.");
112 int LinkCapacityKbps() { 114 int LinkCapacityKbps() {
113 return static_cast<int>(FLAGS_link_capacity); 115 return static_cast<int>(FLAGS_link_capacity);
114 } 116 }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } // namespace webrtc 256 } // namespace webrtc
255 257
256 int main(int argc, char* argv[]) { 258 int main(int argc, char* argv[]) {
257 ::testing::InitGoogleTest(&argc, argv); 259 ::testing::InitGoogleTest(&argc, argv);
258 google::ParseCommandLineFlags(&argc, &argv, true); 260 google::ParseCommandLineFlags(&argc, &argv, true);
259 webrtc::test::InitFieldTrialsFromString( 261 webrtc::test::InitFieldTrialsFromString(
260 webrtc::flags::FLAGS_force_fieldtrials); 262 webrtc::flags::FLAGS_force_fieldtrials);
261 webrtc::test::RunTest(webrtc::Loopback); 263 webrtc::test::RunTest(webrtc::Loopback);
262 return 0; 264 return 0;
263 } 265 }
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