Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 1 | /* |
| 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 Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #ifndef EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_ |
| 12 | #define EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_ |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 13 | |
Mirko Bonadei | 0be40bf | 2019-07-16 18:40:05 +0200 | [diff] [blame] | 14 | #include <string> |
| 15 | |
| 16 | #include "absl/flags/flag.h" |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 17 | |
Peter Boström | 0c4e06b | 2015-10-07 12:23:21 +0200 | [diff] [blame] | 18 | extern const uint16_t kDefaultServerPort; // From defaults.[h|cc] |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 19 | |
| 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 Bonadei | 0be40bf | 2019-07-16 18:40:05 +0200 | [diff] [blame] | 24 | ABSL_FLAG(bool, |
| 25 | autoconnect, |
| 26 | false, |
| 27 | "Connect to the server without user " |
| 28 | "intervention."); |
| 29 | ABSL_FLAG(std::string, server, "localhost", "The server to connect to."); |
| 30 | ABSL_FLAG(int, |
| 31 | port, |
| 32 | kDefaultServerPort, |
| 33 | "The port on which the server is listening."); |
| 34 | ABSL_FLAG( |
| 35 | bool, |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 36 | 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 Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 41 | |
Mirko Bonadei | 0be40bf | 2019-07-16 18:40:05 +0200 | [diff] [blame] | 42 | ABSL_FLAG( |
| 43 | std::string, |
Bjorn Terelius | 3e67676 | 2018-10-29 15:26:27 +0100 | [diff] [blame] | 44 | 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 Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 52 | #endif // EXAMPLES_PEERCONNECTION_CLIENT_FLAG_DEFS_H_ |