Skip to content

Commit b306216

Browse files
Abseil TeamCJ-Johnson
Abseil Team
authored andcommitted
Googletest export
Internal change PiperOrigin-RevId: 405710296
1 parent 489ef88 commit b306216

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

googlemock/test/gmock-internal-utils_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ TEST_F(LogIsVisibleTest, WorksWhenVerbosityIsWarning) {
394394
// and log severity.
395395
void TestLogWithSeverity(const std::string& verbosity, LogSeverity severity,
396396
bool should_print) {
397-
const std::string old_flag = GMOCK_FLAG(verbose);
397+
const std::string old_flag = GMOCK_FLAG_GET(verbose);
398398
GMOCK_FLAG_SET(verbose, verbosity);
399399
CaptureStdout();
400400
Log(severity, "Test log.\n", 0);
@@ -413,7 +413,7 @@ void TestLogWithSeverity(const std::string& verbosity, LogSeverity severity,
413413
// Tests that when the stack_frames_to_skip parameter is negative,
414414
// Log() doesn't include the stack trace in the output.
415415
TEST(LogTest, NoStackTraceWhenStackFramesToSkipIsNegative) {
416-
const std::string saved_flag = GMOCK_FLAG(verbose);
416+
const std::string saved_flag = GMOCK_FLAG_GET(verbose);
417417
GMOCK_FLAG_SET(verbose, kInfoVerbosity);
418418
CaptureStdout();
419419
Log(kInfo, "Test log.\n", -1);
@@ -499,7 +499,7 @@ TEST(LogTest, OnlyWarningsArePrintedWhenVerbosityIsInvalid) {
499499
// Verifies that Log() behaves correctly for the given verbosity level
500500
// and log severity.
501501
std::string GrabOutput(void(*logger)(), const char* verbosity) {
502-
const std::string saved_flag = GMOCK_FLAG(verbose);
502+
const std::string saved_flag = GMOCK_FLAG_GET(verbose);
503503
GMOCK_FLAG_SET(verbose, verbosity);
504504
CaptureStdout();
505505
logger();

0 commit comments

Comments
 (0)