OLD | NEW |
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 DEFINE_int32(std_propagation_delay_ms, | 136 DEFINE_int32(std_propagation_delay_ms, |
137 0, | 137 0, |
138 "Link propagation delay standard deviation in ms."); | 138 "Link propagation delay standard deviation in ms."); |
139 int StdPropagationDelayMs() { | 139 int StdPropagationDelayMs() { |
140 return static_cast<int>(FLAGS_std_propagation_delay_ms); | 140 return static_cast<int>(FLAGS_std_propagation_delay_ms); |
141 } | 141 } |
142 | 142 |
143 DEFINE_bool(logs, false, "print logs to stderr"); | 143 DEFINE_bool(logs, false, "print logs to stderr"); |
144 | 144 |
| 145 DEFINE_bool(send_side_bwe, false, "Use send-side bandwidth estimation"); |
| 146 |
145 DEFINE_string( | 147 DEFINE_string( |
146 force_fieldtrials, | 148 force_fieldtrials, |
147 "", | 149 "", |
148 "Field trials control experimental feature code which can be forced. " | 150 "Field trials control experimental feature code which can be forced. " |
149 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" | 151 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" |
150 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " | 152 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " |
151 "trials are separated by \"/\""); | 153 "trials are separated by \"/\""); |
152 } // namespace flags | 154 } // namespace flags |
153 | 155 |
154 class ScreenshareLoopback : public test::Loopback { | 156 class ScreenshareLoopback : public test::Loopback { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 flags::Codec(), | 251 flags::Codec(), |
250 flags::NumTemporalLayers(), | 252 flags::NumTemporalLayers(), |
251 flags::NumSpatialLayers(), | 253 flags::NumSpatialLayers(), |
252 flags::TLDiscardThreshold(), | 254 flags::TLDiscardThreshold(), |
253 flags::SLDiscardThreshold(), | 255 flags::SLDiscardThreshold(), |
254 flags::LossPercent(), | 256 flags::LossPercent(), |
255 flags::LinkCapacity(), | 257 flags::LinkCapacity(), |
256 flags::QueueSize(), | 258 flags::QueueSize(), |
257 flags::AvgPropagationDelayMs(), | 259 flags::AvgPropagationDelayMs(), |
258 flags::StdPropagationDelayMs(), | 260 flags::StdPropagationDelayMs(), |
259 flags::FLAGS_logs}; | 261 flags::FLAGS_logs, |
| 262 flags::FLAGS_send_side_bwe}; |
260 ScreenshareLoopback loopback(config); | 263 ScreenshareLoopback loopback(config); |
261 loopback.Run(); | 264 loopback.Run(); |
262 } | 265 } |
263 } // namespace webrtc | 266 } // namespace webrtc |
264 | 267 |
265 int main(int argc, char* argv[]) { | 268 int main(int argc, char* argv[]) { |
266 ::testing::InitGoogleTest(&argc, argv); | 269 ::testing::InitGoogleTest(&argc, argv); |
267 google::ParseCommandLineFlags(&argc, &argv, true); | 270 google::ParseCommandLineFlags(&argc, &argv, true); |
268 webrtc::test::InitFieldTrialsFromString( | 271 webrtc::test::InitFieldTrialsFromString( |
269 webrtc::flags::FLAGS_force_fieldtrials); | 272 webrtc::flags::FLAGS_force_fieldtrials); |
270 webrtc::test::RunTest(webrtc::Loopback); | 273 webrtc::test::RunTest(webrtc::Loopback); |
271 return 0; | 274 return 0; |
272 } | 275 } |
OLD | NEW |