xref: /aosp_15_r20/external/webrtc/test/test_flags.cc (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker /*
2*d9f75844SAndroid Build Coastguard Worker  *  Copyright (c) 2022 The WebRTC project authors. All Rights Reserved.
3*d9f75844SAndroid Build Coastguard Worker  *
4*d9f75844SAndroid Build Coastguard Worker  *  Use of this source code is governed by a BSD-style license
5*d9f75844SAndroid Build Coastguard Worker  *  that can be found in the LICENSE file in the root of the source
6*d9f75844SAndroid Build Coastguard Worker  *  tree. An additional intellectual property rights grant can be found
7*d9f75844SAndroid Build Coastguard Worker  *  in the file PATENTS.  All contributing project authors may
8*d9f75844SAndroid Build Coastguard Worker  *  be found in the AUTHORS file in the root of the source tree.
9*d9f75844SAndroid Build Coastguard Worker  */
10*d9f75844SAndroid Build Coastguard Worker 
11*d9f75844SAndroid Build Coastguard Worker #include "test/test_flags.h"
12*d9f75844SAndroid Build Coastguard Worker 
13*d9f75844SAndroid Build Coastguard Worker #include <string>
14*d9f75844SAndroid Build Coastguard Worker #include <vector>
15*d9f75844SAndroid Build Coastguard Worker 
16*d9f75844SAndroid Build Coastguard Worker #include "absl/flags/flag.h"
17*d9f75844SAndroid Build Coastguard Worker 
18*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(std::string,
19*d9f75844SAndroid Build Coastguard Worker           force_fieldtrials,
20*d9f75844SAndroid Build Coastguard Worker           "",
21*d9f75844SAndroid Build Coastguard Worker           "Field trials control experimental feature code which can be forced. "
22*d9f75844SAndroid Build Coastguard Worker           "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/"
23*d9f75844SAndroid Build Coastguard Worker           " will assign the group Enable to field trial WebRTC-FooFeature.");
24*d9f75844SAndroid Build Coastguard Worker 
25*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(std::vector<std::string>,
26*d9f75844SAndroid Build Coastguard Worker           plot,
27*d9f75844SAndroid Build Coastguard Worker           {},
28*d9f75844SAndroid Build Coastguard Worker           "List of metrics that should be exported for plotting (if they are "
29*d9f75844SAndroid Build Coastguard Worker           "available). Example: psnr,ssim,encode_time. To plot all available "
30*d9f75844SAndroid Build Coastguard Worker           " metrics pass 'all' as flag value");
31*d9f75844SAndroid Build Coastguard Worker 
32*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(
33*d9f75844SAndroid Build Coastguard Worker     std::string,
34*d9f75844SAndroid Build Coastguard Worker     isolated_script_test_perf_output,
35*d9f75844SAndroid Build Coastguard Worker     "",
36*d9f75844SAndroid Build Coastguard Worker     "Path where the perf results should be stored in proto format described "
37*d9f75844SAndroid Build Coastguard Worker     "described by histogram.proto in "
38*d9f75844SAndroid Build Coastguard Worker     "https://chromium.googlesource.com/catapult/.");
39*d9f75844SAndroid Build Coastguard Worker 
40*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(std::string,
41*d9f75844SAndroid Build Coastguard Worker           webrtc_test_metrics_output_path,
42*d9f75844SAndroid Build Coastguard Worker           "",
43*d9f75844SAndroid Build Coastguard Worker           "Path where the test perf metrics should be stored using "
44*d9f75844SAndroid Build Coastguard Worker           "api/test/metrics/metric.proto proto format. File will contain "
45*d9f75844SAndroid Build Coastguard Worker           "MetricsSet as a root proto");
46*d9f75844SAndroid Build Coastguard Worker 
47*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(bool,
48*d9f75844SAndroid Build Coastguard Worker           export_perf_results_new_api,
49*d9f75844SAndroid Build Coastguard Worker           false,
50*d9f75844SAndroid Build Coastguard Worker           "Tells to initialize new API for exporting performance metrics");
51