xref: /aosp_15_r20/external/webrtc/examples/peerconnection/client/flag_defs.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker /*
2*d9f75844SAndroid Build Coastguard Worker  *  Copyright 2012 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 #ifndef EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_
12*d9f75844SAndroid Build Coastguard Worker #define EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_
13*d9f75844SAndroid Build Coastguard Worker 
14*d9f75844SAndroid Build Coastguard Worker #include <string>
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 extern const uint16_t kDefaultServerPort;  // From defaults.[h|cc]
19*d9f75844SAndroid Build Coastguard Worker 
20*d9f75844SAndroid Build Coastguard Worker // Define flags for the peerconnect_client testing tool, in a separate
21*d9f75844SAndroid Build Coastguard Worker // header file so that they can be shared across the different main.cc's
22*d9f75844SAndroid Build Coastguard Worker // for each platform.
23*d9f75844SAndroid Build Coastguard Worker 
24*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(bool,
25*d9f75844SAndroid Build Coastguard Worker           autoconnect,
26*d9f75844SAndroid Build Coastguard Worker           false,
27*d9f75844SAndroid Build Coastguard Worker           "Connect to the server without user "
28*d9f75844SAndroid Build Coastguard Worker           "intervention.");
29*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(std::string, server, "localhost", "The server to connect to.");
30*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(int,
31*d9f75844SAndroid Build Coastguard Worker           port,
32*d9f75844SAndroid Build Coastguard Worker           kDefaultServerPort,
33*d9f75844SAndroid Build Coastguard Worker           "The port on which the server is listening.");
34*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(
35*d9f75844SAndroid Build Coastguard Worker     bool,
36*d9f75844SAndroid Build Coastguard Worker     autocall,
37*d9f75844SAndroid Build Coastguard Worker     false,
38*d9f75844SAndroid Build Coastguard Worker     "Call the first available other client on "
39*d9f75844SAndroid Build Coastguard Worker     "the server without user intervention.  Note: this flag should only be set "
40*d9f75844SAndroid Build Coastguard Worker     "to true on one of the two clients.");
41*d9f75844SAndroid Build Coastguard Worker 
42*d9f75844SAndroid Build Coastguard Worker ABSL_FLAG(
43*d9f75844SAndroid Build Coastguard Worker     std::string,
44*d9f75844SAndroid Build Coastguard Worker     force_fieldtrials,
45*d9f75844SAndroid Build Coastguard Worker     "",
46*d9f75844SAndroid Build Coastguard Worker     "Field trials control experimental features. This flag specifies the field "
47*d9f75844SAndroid Build Coastguard Worker     "trials in effect. E.g. running with "
48*d9f75844SAndroid Build Coastguard Worker     "--force_fieldtrials=WebRTC-FooFeature/Enabled/ "
49*d9f75844SAndroid Build Coastguard Worker     "will assign the group Enabled to field trial WebRTC-FooFeature. Multiple "
50*d9f75844SAndroid Build Coastguard Worker     "trials are separated by \"/\"");
51*d9f75844SAndroid Build Coastguard Worker 
52*d9f75844SAndroid Build Coastguard Worker #endif  // EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_
53