Lines Matching defs:flag

186 // g_help_flag is true iff the --help flag or an equivalent form is
288 "This flag specifies the host name and the port number on which to stream "
289 "test results. Example: \"localhost:555\". The flag is effective only on "
295 "When this flag is specified, a failed assertion will throw an exception "
303 "This flag specifies the flagfile to read command-line flags from.");
411 // Functions for processing the gtest_output flag.
789 // the gtest_stack_trace_depth flag. The skip_count parameter
2414 // RUN_ALL_TESTS() starts. It is technically possible to check the flag
2416 // exception based on the flag's value:
2427 // However, the purpose of this flag is to allow the program to drop into
4345 random_seed_(0), // Will be overridden by the flag before first use.
4352 // Will be overridden by the flag before first use.
4431 // Performs initialization dependent upon flag values obtained in
4560 // Do not run any test if the --help flag was specified.
4564 // Repeats the call to the post-flag parsing initialization in case the
4595 // Lists the tests and exits if the --gtest_list_tests flag was specified.
4674 // case the user somehow changes the value of the flag somewhere
4864 // Prints the names of the tests matching the user-specified filter flag.
4966 // the gtest_stack_trace_depth flag. The skip_count parameter
5010 // Parses a string as a command line flag. The string should have
5011 // the format "--flag=value". When def_optional is true, the "=value"
5014 // Returns the value of the flag, or NULL if the parsing failed.
5016 const char* flag,
5018 // str and flag must not be NULL.
5019 if (str == NULL || flag == NULL) return NULL;
5021 // The flag must start with "--" followed by GTEST_FLAG_PREFIX_.
5022 const std::string flag_str = std::string("--") + GTEST_FLAG_PREFIX_ + flag;
5026 // Skips the flag name.
5035 // flag name, or if def_optional is false, there must be a '=' after
5036 // the flag name.
5043 // Parses a string for a bool flag, in the form of either
5044 // "--flag=value" or "--flag".
5051 // On success, stores the value of the flag in *value, and returns
5053 bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
5054 // Gets the value of the flag as a string.
5055 const char* const value_str = ParseFlagValue(str, flag, true);
5065 // Parses a string for an Int32 flag, in the form of
5066 // "--flag=value".
5068 // On success, stores the value of the flag in *value, and returns
5070 bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
5071 // Gets the value of the flag as a string.
5072 const char* const value_str = ParseFlagValue(str, flag, false);
5077 // Sets *value to the value of the flag.
5078 return ParseInt32(Message() << "The value of flag --" << flag,
5082 // Parses a string for a string flag, in the form of
5083 // "--flag=value".
5085 // On success, stores the value of the flag in *value, and returns
5087 bool ParseStringFlag(const char* str, const char* flag, std::string* value) {
5088 // Gets the value of the flag as a string.
5089 const char* const value_str = ParseFlagValue(str, flag, false);
5094 // Sets *value to the value of the flag.
5101 // If Google Test detects that a command line flag has its prefix but is not
5213 "environment variable of a flag (all letters in upper-case). For example, to\n"
5299 // Both help flag and unrecognized Google Test flags (excluding
5363 // flags that Google Test recognizes. Whenever a Google Test flag is
5366 // No value is returned. Instead, the Google Test flag variables are