blob: 0555fb3552973ce8ec16e44e9d11347efdcb9722 [file] [log] [blame]
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:591/*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#include <stdio.h>
12
13#include "rtc_base/flags.h"
Mirko Bonadei45a4c412018-07-31 13:07:2814#include "rtc_base/logging.h"
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:5915#include "rtc_base/stringencode.h"
Bjorn Tereliusedab3012018-01-31 16:23:4016#include "system_wrappers/include/field_trial_default.h"
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:5917#include "test/field_trial.h"
18#include "test/gtest.h"
19#include "test/run_test.h"
20#include "video/video_quality_test.h"
21
22namespace webrtc {
23namespace flags {
24
Sergey Silkin57027362018-05-15 07:12:0525InterLayerPredMode IntToInterLayerPredMode(int inter_layer_pred) {
26 if (inter_layer_pred == 0) {
27 return InterLayerPredMode::kOn;
28 } else if (inter_layer_pred == 1) {
29 return InterLayerPredMode::kOff;
30 } else {
31 RTC_DCHECK_EQ(inter_layer_pred, 2);
32 return InterLayerPredMode::kOnKeyPic;
33 }
34}
35
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:5936// Flags for video.
37DEFINE_int(vwidth, 640, "Video width.");
38size_t VideoWidth() {
39 return static_cast<size_t>(FLAG_vwidth);
40}
41
42DEFINE_int(vheight, 480, "Video height.");
43size_t VideoHeight() {
44 return static_cast<size_t>(FLAG_vheight);
45}
46
47DEFINE_int(vfps, 30, "Video frames per second.");
48int VideoFps() {
49 return static_cast<int>(FLAG_vfps);
50}
51
52DEFINE_int(capture_device_index,
53 0,
54 "Capture device to select for video stream");
55size_t GetCaptureDevice() {
56 return static_cast<size_t>(FLAG_capture_device_index);
57}
58
59DEFINE_int(vtarget_bitrate, 400, "Video stream target bitrate in kbps.");
60int VideoTargetBitrateKbps() {
61 return static_cast<int>(FLAG_vtarget_bitrate);
62}
63
64DEFINE_int(vmin_bitrate, 100, "Video stream min bitrate in kbps.");
65int VideoMinBitrateKbps() {
66 return static_cast<int>(FLAG_vmin_bitrate);
67}
68
69DEFINE_int(vmax_bitrate, 2000, "Video stream max bitrate in kbps.");
70int VideoMaxBitrateKbps() {
71 return static_cast<int>(FLAG_vmax_bitrate);
72}
73
74DEFINE_bool(suspend_below_min_bitrate,
75 false,
76 "Suspends video below the configured min bitrate.");
77
78DEFINE_int(vnum_temporal_layers,
79 1,
80 "Number of temporal layers for video. Set to 1-4 to override.");
81int VideoNumTemporalLayers() {
82 return static_cast<int>(FLAG_vnum_temporal_layers);
83}
84
85DEFINE_int(vnum_streams, 0, "Number of video streams to show or analyze.");
86int VideoNumStreams() {
87 return static_cast<int>(FLAG_vnum_streams);
88}
89
90DEFINE_int(vnum_spatial_layers, 1, "Number of video spatial layers to use.");
91int VideoNumSpatialLayers() {
92 return static_cast<int>(FLAG_vnum_spatial_layers);
93}
94
Sergey Silkin57027362018-05-15 07:12:0595DEFINE_int(vinter_layer_pred,
Sergey Silkindf736d82018-05-23 21:22:4696 2,
Sergey Silkin57027362018-05-15 07:12:0597 "Video inter-layer prediction mode. "
98 "0 - enabled, 1 - disabled, 2 - enabled only for key pictures.");
99InterLayerPredMode VideoInterLayerPred() {
100 return IntToInterLayerPredMode(FLAG_vinter_layer_pred);
101}
102
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59103DEFINE_string(
104 vstream0,
105 "",
106 "Comma separated values describing VideoStream for video stream #0.");
107std::string VideoStream0() {
108 return static_cast<std::string>(FLAG_vstream0);
109}
110
111DEFINE_string(
112 vstream1,
113 "",
114 "Comma separated values describing VideoStream for video stream #1.");
115std::string VideoStream1() {
116 return static_cast<std::string>(FLAG_vstream1);
117}
118
119DEFINE_string(
120 vsl0,
121 "",
122 "Comma separated values describing SpatialLayer for video layer #0.");
123std::string VideoSL0() {
124 return static_cast<std::string>(FLAG_vsl0);
125}
126
127DEFINE_string(
128 vsl1,
129 "",
130 "Comma separated values describing SpatialLayer for video layer #1.");
131std::string VideoSL1() {
132 return static_cast<std::string>(FLAG_vsl1);
133}
134
135DEFINE_int(vselected_tl,
136 -1,
137 "Temporal layer to show or analyze for screenshare. -1 to disable "
138 "filtering.");
139int VideoSelectedTL() {
140 return static_cast<int>(FLAG_vselected_tl);
141}
142
143DEFINE_int(vselected_stream,
144 0,
145 "ID of the stream to show or analyze for screenshare."
146 "Set to the number of streams to show them all.");
147int VideoSelectedStream() {
148 return static_cast<int>(FLAG_vselected_stream);
149}
150
151DEFINE_int(vselected_sl,
152 -1,
153 "Spatial layer to show or analyze for screenshare. -1 to disable "
154 "filtering.");
155int VideoSelectedSL() {
156 return static_cast<int>(FLAG_vselected_sl);
157}
158
159// Flags for screenshare.
160DEFINE_int(min_transmit_bitrate,
161 400,
162 "Min transmit bitrate incl. padding for screenshare.");
163int ScreenshareMinTransmitBitrateKbps() {
164 return FLAG_min_transmit_bitrate;
165}
166
167DEFINE_int(swidth, 1850, "Screenshare width (crops source).");
168size_t ScreenshareWidth() {
169 return static_cast<size_t>(FLAG_swidth);
170}
171
172DEFINE_int(sheight, 1110, "Screenshare height (crops source).");
173size_t ScreenshareHeight() {
174 return static_cast<size_t>(FLAG_sheight);
175}
176
177DEFINE_int(sfps, 5, "Frames per second for screenshare.");
178int ScreenshareFps() {
179 return static_cast<int>(FLAG_sfps);
180}
181
182DEFINE_int(starget_bitrate, 100, "Screenshare stream target bitrate in kbps.");
183int ScreenshareTargetBitrateKbps() {
184 return static_cast<int>(FLAG_starget_bitrate);
185}
186
187DEFINE_int(smin_bitrate, 100, "Screenshare stream min bitrate in kbps.");
188int ScreenshareMinBitrateKbps() {
189 return static_cast<int>(FLAG_smin_bitrate);
190}
191
192DEFINE_int(smax_bitrate, 2000, "Screenshare stream max bitrate in kbps.");
193int ScreenshareMaxBitrateKbps() {
194 return static_cast<int>(FLAG_smax_bitrate);
195}
196
197DEFINE_int(snum_temporal_layers,
198 2,
199 "Number of temporal layers to use in screenshare.");
200int ScreenshareNumTemporalLayers() {
201 return static_cast<int>(FLAG_snum_temporal_layers);
202}
203
204DEFINE_int(snum_streams,
205 0,
206 "Number of screenshare streams to show or analyze.");
207int ScreenshareNumStreams() {
208 return static_cast<int>(FLAG_snum_streams);
209}
210
211DEFINE_int(snum_spatial_layers,
212 1,
Sergey Silkin57027362018-05-15 07:12:05213 "Number of screenshare spatial layers to use.");
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59214int ScreenshareNumSpatialLayers() {
215 return static_cast<int>(FLAG_snum_spatial_layers);
216}
217
Sergey Silkin57027362018-05-15 07:12:05218DEFINE_int(sinter_layer_pred,
Sergey Silkindf736d82018-05-23 21:22:46219 0,
Sergey Silkin57027362018-05-15 07:12:05220 "Screenshare inter-layer prediction mode. "
221 "0 - enabled, 1 - disabled, 2 - enabled only for key pictures.");
222InterLayerPredMode ScreenshareInterLayerPred() {
223 return IntToInterLayerPredMode(FLAG_sinter_layer_pred);
224}
225
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59226DEFINE_string(
227 sstream0,
228 "",
229 "Comma separated values describing VideoStream for screenshare stream #0.");
230std::string ScreenshareStream0() {
231 return static_cast<std::string>(FLAG_sstream0);
232}
233
234DEFINE_string(
235 sstream1,
236 "",
237 "Comma separated values describing VideoStream for screenshare stream #1.");
238std::string ScreenshareStream1() {
239 return static_cast<std::string>(FLAG_sstream1);
240}
241
242DEFINE_string(
243 ssl0,
244 "",
245 "Comma separated values describing SpatialLayer for screenshare layer #0.");
246std::string ScreenshareSL0() {
247 return static_cast<std::string>(FLAG_ssl0);
248}
249
250DEFINE_string(
251 ssl1,
252 "",
253 "Comma separated values describing SpatialLayer for screenshare layer #1.");
254std::string ScreenshareSL1() {
255 return static_cast<std::string>(FLAG_ssl1);
256}
257
258DEFINE_int(sselected_tl,
259 -1,
260 "Temporal layer to show or analyze for screenshare. -1 to disable "
261 "filtering.");
262int ScreenshareSelectedTL() {
263 return static_cast<int>(FLAG_sselected_tl);
264}
265
266DEFINE_int(sselected_stream,
267 0,
268 "ID of the stream to show or analyze for screenshare."
269 "Set to the number of streams to show them all.");
270int ScreenshareSelectedStream() {
271 return static_cast<int>(FLAG_sselected_stream);
272}
273
274DEFINE_int(sselected_sl,
275 -1,
276 "Spatial layer to show or analyze for screenshare. -1 to disable "
277 "filtering.");
278int ScreenshareSelectedSL() {
279 return static_cast<int>(FLAG_sselected_sl);
280}
281
282DEFINE_bool(
283 generate_slides,
284 false,
285 "Whether to use randomly generated slides or read them from files.");
286bool GenerateSlides() {
287 return static_cast<int>(FLAG_generate_slides);
288}
289
290DEFINE_int(slide_change_interval,
291 10,
292 "Interval (in seconds) between simulated slide changes.");
293int SlideChangeInterval() {
294 return static_cast<int>(FLAG_slide_change_interval);
295}
296
297DEFINE_int(
298 scroll_duration,
299 0,
300 "Duration (in seconds) during which a slide will be scrolled into place.");
301int ScrollDuration() {
302 return static_cast<int>(FLAG_scroll_duration);
303}
304
305DEFINE_string(slides,
306 "",
307 "Comma-separated list of *.yuv files to display as slides.");
308std::vector<std::string> Slides() {
309 std::vector<std::string> slides;
310 std::string slides_list = FLAG_slides;
311 rtc::tokenize(slides_list, ',', &slides);
312 return slides;
313}
314
315// Flags common with screenshare and video loopback, with equal default values.
316DEFINE_int(start_bitrate, 600, "Call start bitrate in kbps.");
317int StartBitrateKbps() {
318 return static_cast<int>(FLAG_start_bitrate);
319}
320
321DEFINE_string(codec, "VP8", "Video codec to use.");
322std::string Codec() {
323 return static_cast<std::string>(FLAG_codec);
324}
325
326DEFINE_bool(analyze_video,
327 false,
328 "Analyze video stream (if --duration is present)");
329bool AnalyzeVideo() {
330 return static_cast<bool>(FLAG_analyze_video);
331}
332
333DEFINE_bool(analyze_screenshare,
334 false,
335 "Analyze screenshare stream (if --duration is present)");
336bool AnalyzeScreenshare() {
337 return static_cast<bool>(FLAG_analyze_screenshare);
338}
339
340DEFINE_int(
341 duration,
342 0,
343 "Duration of the test in seconds. If 0, rendered will be shown instead.");
344int DurationSecs() {
345 return static_cast<int>(FLAG_duration);
346}
347
348DEFINE_string(output_filename, "", "Target graph data filename.");
349std::string OutputFilename() {
350 return static_cast<std::string>(FLAG_output_filename);
351}
352
353DEFINE_string(graph_title,
354 "",
355 "If empty, title will be generated automatically.");
356std::string GraphTitle() {
357 return static_cast<std::string>(FLAG_graph_title);
358}
359
360DEFINE_int(loss_percent, 0, "Percentage of packets randomly lost.");
361int LossPercent() {
362 return static_cast<int>(FLAG_loss_percent);
363}
364
365DEFINE_int(avg_burst_loss_length, -1, "Average burst length of lost packets.");
366int AvgBurstLossLength() {
367 return static_cast<int>(FLAG_avg_burst_loss_length);
368}
369
370DEFINE_int(link_capacity,
371 0,
372 "Capacity (kbps) of the fake link. 0 means infinite.");
373int LinkCapacityKbps() {
374 return static_cast<int>(FLAG_link_capacity);
375}
376
377DEFINE_int(queue_size, 0, "Size of the bottleneck link queue in packets.");
378int QueueSize() {
379 return static_cast<int>(FLAG_queue_size);
380}
381
382DEFINE_int(avg_propagation_delay_ms,
383 0,
384 "Average link propagation delay in ms.");
385int AvgPropagationDelayMs() {
386 return static_cast<int>(FLAG_avg_propagation_delay_ms);
387}
388
389DEFINE_string(rtc_event_log_name,
390 "",
391 "Filename for rtc event log. Two files "
392 "with \"_send\" and \"_recv\" suffixes will be created. "
393 "Works only when --duration is set.");
394std::string RtcEventLogName() {
395 return static_cast<std::string>(FLAG_rtc_event_log_name);
396}
397
398DEFINE_string(rtp_dump_name, "", "Filename for dumped received RTP stream.");
399std::string RtpDumpName() {
400 return static_cast<std::string>(FLAG_rtp_dump_name);
401}
402
403DEFINE_int(std_propagation_delay_ms,
404 0,
405 "Link propagation delay standard deviation in ms.");
406int StdPropagationDelayMs() {
407 return static_cast<int>(FLAG_std_propagation_delay_ms);
408}
409
410DEFINE_string(encoded_frame_path,
411 "",
412 "The base path for encoded frame logs. Created files will have "
413 "the form <encoded_frame_path>.<n>.(recv|send.<m>).ivf");
414std::string EncodedFramePath() {
415 return static_cast<std::string>(FLAG_encoded_frame_path);
416}
417
418DEFINE_bool(logs, false, "print logs to stderr");
419
420DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation");
421
422DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur");
423
424DEFINE_bool(use_ulpfec, false, "Use RED+ULPFEC forward error correction.");
425
426DEFINE_bool(use_flexfec, false, "Use FlexFEC forward error correction.");
427
428DEFINE_bool(audio, false, "Add audio stream");
429
430DEFINE_bool(audio_video_sync,
431 false,
432 "Sync audio and video stream (no effect if"
433 " audio is false)");
434
435DEFINE_bool(audio_dtx, false, "Enable audio DTX (no effect if audio is false)");
436
437DEFINE_bool(video, true, "Add video stream");
438
439DEFINE_string(
440 force_fieldtrials,
441 "",
442 "Field trials control experimental feature code which can be forced. "
443 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/"
444 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple "
445 "trials are separated by \"/\"");
446
447// Video-specific flags.
448DEFINE_string(vclip,
449 "",
450 "Name of the clip to show. If empty, the camera is used. Use "
451 "\"Generator\" for chroma generator.");
452std::string VideoClip() {
453 return static_cast<std::string>(FLAG_vclip);
454}
455
456DEFINE_bool(help, false, "prints this message");
457
458} // namespace flags
459
460void Loopback() {
461 int camera_idx, screenshare_idx;
462 RTC_CHECK(!(flags::AnalyzeScreenshare() && flags::AnalyzeVideo()))
463 << "Select only one of video or screenshare.";
464 RTC_CHECK(!flags::DurationSecs() || flags::AnalyzeScreenshare() ||
465 flags::AnalyzeVideo())
466 << "If duration is set, exactly one of analyze_* flags should be set.";
467 // Default: camera feed first, if nothing selected.
468 if (flags::AnalyzeVideo() || !flags::AnalyzeScreenshare()) {
469 camera_idx = 0;
470 screenshare_idx = 1;
471 } else {
472 camera_idx = 1;
473 screenshare_idx = 0;
474 }
475
Artem Titovf18b3522018-08-28 14:54:24476 DefaultNetworkSimulationConfig pipe_config;
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59477 pipe_config.loss_percent = flags::LossPercent();
478 pipe_config.avg_burst_loss_length = flags::AvgBurstLossLength();
479 pipe_config.link_capacity_kbps = flags::LinkCapacityKbps();
480 pipe_config.queue_length_packets = flags::QueueSize();
481 pipe_config.queue_delay_ms = flags::AvgPropagationDelayMs();
482 pipe_config.delay_standard_deviation_ms = flags::StdPropagationDelayMs();
483 pipe_config.allow_reordering = flags::FLAG_allow_reordering;
484
Sebastian Janssonfc8d26b2018-02-21 08:52:06485 BitrateConstraints call_bitrate_config;
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59486 call_bitrate_config.min_bitrate_bps =
487 (flags::ScreenshareMinBitrateKbps() + flags::VideoMinBitrateKbps()) *
488 1000;
489 call_bitrate_config.start_bitrate_bps = flags::StartBitrateKbps() * 1000;
490 call_bitrate_config.max_bitrate_bps =
491 (flags::ScreenshareMaxBitrateKbps() + flags::VideoMaxBitrateKbps()) *
492 1000;
493
494 VideoQualityTest::Params params, camera_params, screenshare_params;
495 params.call = {flags::FLAG_send_side_bwe, call_bitrate_config, 0};
496 params.call.dual_video = true;
497 params.video[screenshare_idx] = {
498 true,
499 flags::ScreenshareWidth(),
500 flags::ScreenshareHeight(),
501 flags::ScreenshareFps(),
502 flags::ScreenshareMinBitrateKbps() * 1000,
503 flags::ScreenshareTargetBitrateKbps() * 1000,
504 flags::ScreenshareMaxBitrateKbps() * 1000,
505 false,
506 flags::Codec(),
507 flags::ScreenshareNumTemporalLayers(),
508 flags::ScreenshareSelectedTL(),
509 flags::ScreenshareMinTransmitBitrateKbps() * 1000,
510 false, // ULPFEC disabled.
511 false, // FlexFEC disabled.
Niels Möller6aa415e2018-06-07 09:14:13512 false, // Automatic scaling disabled
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59513 ""};
514 params.video[camera_idx] = {flags::FLAG_video,
515 flags::VideoWidth(),
516 flags::VideoHeight(),
517 flags::VideoFps(),
518 flags::VideoMinBitrateKbps() * 1000,
519 flags::VideoTargetBitrateKbps() * 1000,
520 flags::VideoMaxBitrateKbps() * 1000,
521 flags::FLAG_suspend_below_min_bitrate,
522 flags::Codec(),
523 flags::VideoNumTemporalLayers(),
524 flags::VideoSelectedTL(),
525 0, // No min transmit bitrate.
526 flags::FLAG_use_ulpfec,
527 flags::FLAG_use_flexfec,
Niels Möller6aa415e2018-06-07 09:14:13528 false,
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59529 flags::VideoClip(),
530 flags::GetCaptureDevice()};
531 params.audio = {flags::FLAG_audio, flags::FLAG_audio_video_sync,
532 flags::FLAG_audio_dtx};
Mirko Bonadei45a4c412018-07-31 13:07:28533 params.logging = {flags::FLAG_rtc_event_log_name, flags::FLAG_rtp_dump_name,
534 flags::FLAG_encoded_frame_path};
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59535 params.analyzer = {"dual_streams",
536 0.0,
537 0.0,
538 flags::DurationSecs(),
539 flags::OutputFilename(),
540 flags::GraphTitle()};
Artem Titovf18b3522018-08-28 14:54:24541 params.config = pipe_config;
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59542
543 params.screenshare[camera_idx].enabled = false;
544 params.screenshare[screenshare_idx] = {
545 true, flags::GenerateSlides(), flags::SlideChangeInterval(),
546 flags::ScrollDuration(), flags::Slides()};
547
548 if (flags::VideoNumStreams() > 1 && flags::VideoStream0().empty() &&
549 flags::VideoStream1().empty()) {
550 params.ss[camera_idx].infer_streams = true;
551 }
552
553 if (flags::ScreenshareNumStreams() > 1 &&
554 flags::ScreenshareStream0().empty() &&
555 flags::ScreenshareStream1().empty()) {
556 params.ss[screenshare_idx].infer_streams = true;
557 }
558
559 std::vector<std::string> stream_descriptors;
560 stream_descriptors.push_back(flags::ScreenshareStream0());
561 stream_descriptors.push_back(flags::ScreenshareStream1());
562 std::vector<std::string> SL_descriptors;
563 SL_descriptors.push_back(flags::ScreenshareSL0());
564 SL_descriptors.push_back(flags::ScreenshareSL1());
565 VideoQualityTest::FillScalabilitySettings(
566 &params, screenshare_idx, stream_descriptors,
567 flags::ScreenshareNumStreams(), flags::ScreenshareSelectedStream(),
568 flags::ScreenshareNumSpatialLayers(), flags::ScreenshareSelectedSL(),
Sergey Silkin57027362018-05-15 07:12:05569 flags::ScreenshareInterLayerPred(), SL_descriptors);
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59570
571 stream_descriptors.clear();
572 stream_descriptors.push_back(flags::VideoStream0());
573 stream_descriptors.push_back(flags::VideoStream1());
574 SL_descriptors.clear();
575 SL_descriptors.push_back(flags::VideoSL0());
576 SL_descriptors.push_back(flags::VideoSL1());
577 VideoQualityTest::FillScalabilitySettings(
578 &params, camera_idx, stream_descriptors, flags::VideoNumStreams(),
579 flags::VideoSelectedStream(), flags::VideoNumSpatialLayers(),
Sergey Silkin57027362018-05-15 07:12:05580 flags::VideoSelectedSL(), flags::VideoInterLayerPred(), SL_descriptors);
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59581
Karl Wiberg918f50c2018-07-05 09:40:33582 auto fixture = absl::make_unique<VideoQualityTest>(nullptr);
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59583 if (flags::DurationSecs()) {
Patrik Höglundb6b29e02018-06-21 14:58:01584 fixture->RunWithAnalyzer(params);
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59585 } else {
Patrik Höglundb6b29e02018-06-21 14:58:01586 fixture->RunWithRenderers(params);
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59587 }
588}
589} // namespace webrtc
590
591int main(int argc, char* argv[]) {
592 ::testing::InitGoogleTest(&argc, argv);
593 if (rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true) != 0) {
594 // Fail on unrecognized flags.
595 return 1;
596 }
597 if (webrtc::flags::FLAG_help) {
598 rtc::FlagList::Print(nullptr, false);
599 return 0;
600 }
601
Mirko Bonadei45a4c412018-07-31 13:07:28602 rtc::LogMessage::SetLogToStderr(webrtc::flags::FLAG_logs);
603
Bjorn Tereliusedab3012018-01-31 16:23:40604 webrtc::test::ValidateFieldTrialsStringOrDie(
605 webrtc::flags::FLAG_force_fieldtrials);
606 // InitFieldTrialsFromString stores the char*, so the char array must outlive
607 // the application.
608 webrtc::field_trial::InitFieldTrialsFromString(
609 webrtc::flags::FLAG_force_fieldtrials);
Ilya Nikolaevskiy255d1cd2017-12-21 17:02:59610
611 webrtc::test::RunTest(webrtc::Loopback);
612 return 0;
613}