flag_defs.h 1.7 KB

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