Lines Matching defs:value
56 // format "--gmock_flag=value". When def_optional is true, the
57 // "=value" part can be omitted.
59 // Returns the value of the flag, or NULL if the parsing failed.
74 // When def_optional is true, it's OK to not have a "=value" part.
89 // "--gmock_flag=value".
91 // On success, stores the value of the flag in *value, and returns
92 // true. On failure, returns false without changing *value.
94 bool* value) {
95 // Gets the value of the flag as a string.
101 // Converts the string value to a bool.
102 *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F');
107 // "--gmock_flag=value".
109 // On success, stores the value of the flag in *value, and returns
110 // true. On failure, returns false without changing *value.
113 String* value) {
114 // Gets the value of the flag as a string.
120 // Sets *value to the value of the flag.
121 *value = value_str;
126 int32_t* value) {
127 // Gets the value of the flag as a string.
133 // Sets *value to the value of the flag.
134 return ParseInt32(Message() << "The value of flag --" << flag_name, value_str,
135 value);
158 auto value = GMOCK_FLAG_GET(flag_name); \
159 if (ParseGoogleMockFlag(arg, #flag_name, &value)) { \
160 GMOCK_FLAG_SET(flag_name, value); \
195 // No value is returned. Instead, the Google Mock flag variables are