blob: 986daf64ce23d0af70e4d535a1464a83747f4812 [file] [log] [blame]
Donald E Curtisa8736442015-08-05 15:48:13 -07001/*
2 * Copyright 2012 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
Steve Anton10542f22019-01-11 09:11:00 -080011#ifndef EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_
12#define EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_
Donald E Curtisa8736442015-08-05 15:48:13 -070013
Mirko Bonadei0be40bf2019-07-16 18:40:05 +020014#include <string>
15
16#include "absl/flags/flag.h"
Donald E Curtisa8736442015-08-05 15:48:13 -070017
Peter Boström0c4e06b2015-10-07 12:23:21 +020018extern const uint16_t kDefaultServerPort; // From defaults.[h|cc]
Donald E Curtisa8736442015-08-05 15:48:13 -070019
20// Define flags for the peerconnect_client testing tool, in a separate
21// header file so that they can be shared across the different main.cc's
22// for each platform.
23
Mirko Bonadei0be40bf2019-07-16 18:40:05 +020024ABSL_FLAG(bool,
25 autoconnect,
26 false,
27 "Connect to the server without user "
28 "intervention.");
29ABSL_FLAG(std::string, server, "localhost", "The server to connect to.");
30ABSL_FLAG(int,
31 port,
32 kDefaultServerPort,
33 "The port on which the server is listening.");
34ABSL_FLAG(
35 bool,
Yves Gerey665174f2018-06-19 15:03:05 +020036 autocall,
37 false,
38 "Call the first available other client on "
39 "the server without user intervention. Note: this flag should only be set "
40 "to true on one of the two clients.");
Donald E Curtisa8736442015-08-05 15:48:13 -070041
Mirko Bonadei0be40bf2019-07-16 18:40:05 +020042ABSL_FLAG(
43 std::string,
Bjorn Terelius3e676762018-10-29 15:26:27 +010044 force_fieldtrials,
45 "",
46 "Field trials control experimental features. This flag specifies the field "
47 "trials in effect. E.g. running with "
48 "--force_fieldtrials=WebRTC-FooFeature/Enabled/ "
49 "will assign the group Enabled to field trial WebRTC-FooFeature. Multiple "
50 "trials are separated by \"/\"");
51
Steve Anton10542f22019-01-11 09:11:00 -080052#endif // EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_