diff options
author | Abseil Team <absl-team@google.com> | 2021-09-14 18:59:42 (GMT) |
---|---|---|
committer | Derek Mauro <dmauro@google.com> | 2021-09-15 17:33:42 (GMT) |
commit | 6202251f0963187a7781f181365cf8c19bf343d5 (patch) | |
tree | 11dcdadad81eea51b6db2f229270b7556199c490 /googlemock/src/gmock-internal-utils.cc | |
parent | 159c9ad23e8b276e8c975bb8621c81d4df5fd863 (diff) | |
download | googletest-6202251f0963187a7781f181365cf8c19bf343d5.zip googletest-6202251f0963187a7781f181365cf8c19bf343d5.tar.gz googletest-6202251f0963187a7781f181365cf8c19bf343d5.tar.bz2 |
Googletest export
Introduce GMOCK_FLAG_GET and GMOCK_FLAG_SET macros.
PiperOrigin-RevId: 396649214
Diffstat (limited to 'googlemock/src/gmock-internal-utils.cc')
-rw-r--r-- | googlemock/src/gmock-internal-utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/src/gmock-internal-utils.cc b/googlemock/src/gmock-internal-utils.cc index 10f688f..469eaf7 100644 --- a/googlemock/src/gmock-internal-utils.cc +++ b/googlemock/src/gmock-internal-utils.cc @@ -132,10 +132,10 @@ static GTEST_DEFINE_STATIC_MUTEX_(g_log_mutex); // Returns true if and only if a log with the given severity is visible // according to the --gmock_verbose flag. GTEST_API_ bool LogIsVisible(LogSeverity severity) { - if (GMOCK_FLAG(verbose) == kInfoVerbosity) { + if (GMOCK_FLAG_GET(verbose) == kInfoVerbosity) { // Always show the log if --gmock_verbose=info. return true; - } else if (GMOCK_FLAG(verbose) == kErrorVerbosity) { + } else if (GMOCK_FLAG_GET(verbose) == kErrorVerbosity) { // Always hide it if --gmock_verbose=error. return false; } else { |