xref: /aosp_15_r20/external/webrtc/test/test_flags.cc (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1 /*
2  *  Copyright (c) 2022 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 "test/test_flags.h"
12 
13 #include <string>
14 #include <vector>
15 
16 #include "absl/flags/flag.h"
17 
18 ABSL_FLAG(std::string,
19           force_fieldtrials,
20           "",
21           "Field trials control experimental feature code which can be forced. "
22           "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/"
23           " will assign the group Enable to field trial WebRTC-FooFeature.");
24 
25 ABSL_FLAG(std::vector<std::string>,
26           plot,
27           {},
28           "List of metrics that should be exported for plotting (if they are "
29           "available). Example: psnr,ssim,encode_time. To plot all available "
30           " metrics pass 'all' as flag value");
31 
32 ABSL_FLAG(
33     std::string,
34     isolated_script_test_perf_output,
35     "",
36     "Path where the perf results should be stored in proto format described "
37     "described by histogram.proto in "
38     "https://chromium.googlesource.com/catapult/.");
39 
40 ABSL_FLAG(std::string,
41           webrtc_test_metrics_output_path,
42           "",
43           "Path where the test perf metrics should be stored using "
44           "api/test/metrics/metric.proto proto format. File will contain "
45           "MetricsSet as a root proto");
46 
47 ABSL_FLAG(bool,
48           export_perf_results_new_api,
49           false,
50           "Tells to initialize new API for exporting performance metrics");
51