Lines Matching defs:flag
38 // control the flag values, like what Google Test does.
53 // Parses a string as a command line flag. The string should have the
57 // Returns the value of the flag, or NULL if the parsing failed.
59 const char* flag,
61 // str and flag must not be NULL.
62 if (str == NULL || flag == NULL) return NULL;
64 // The flag must start with "--gmock_".
65 const std::string flag_str = std::string("--gmock_") + flag;
69 // Skips the flag name.
78 // flag name, or if def_optional is false, there must be a '=' after
79 // the flag name.
86 // Parses a string for a Google Mock bool flag, in the form of
89 // On success, stores the value of the flag in *value, and returns
91 static bool ParseGoogleMockBoolFlag(const char* str, const char* flag,
93 // Gets the value of the flag as a string.
94 const char* const value_str = ParseGoogleMockFlagValue(str, flag, true);
104 // Parses a string for a Google Mock string flag, in the form of
107 // On success, stores the value of the flag in *value, and returns
110 static bool ParseGoogleMockStringFlag(const char* str, const char* flag,
112 // Gets the value of the flag as a string.
113 const char* const value_str = ParseGoogleMockFlagValue(str, flag, false);
118 // Sets *value to the value of the flag.
138 // Do we see a Google Mock flag?
164 // Google Mock recognizes. Whenever a Google Mock flag is seen, it is
167 // No value is returned. Instead, the Google Mock flag variables are