@@ -394,7 +394,7 @@ TEST_F(LogIsVisibleTest, WorksWhenVerbosityIsWarning) {
394
394
// and log severity.
395
395
void TestLogWithSeverity (const std::string& verbosity, LogSeverity severity,
396
396
bool should_print) {
397
- const std::string old_flag = GMOCK_FLAG (verbose);
397
+ const std::string old_flag = GMOCK_FLAG_GET (verbose);
398
398
GMOCK_FLAG_SET (verbose, verbosity);
399
399
CaptureStdout ();
400
400
Log (severity, " Test log.\n " , 0 );
@@ -413,7 +413,7 @@ void TestLogWithSeverity(const std::string& verbosity, LogSeverity severity,
413
413
// Tests that when the stack_frames_to_skip parameter is negative,
414
414
// Log() doesn't include the stack trace in the output.
415
415
TEST (LogTest, NoStackTraceWhenStackFramesToSkipIsNegative) {
416
- const std::string saved_flag = GMOCK_FLAG (verbose);
416
+ const std::string saved_flag = GMOCK_FLAG_GET (verbose);
417
417
GMOCK_FLAG_SET (verbose, kInfoVerbosity );
418
418
CaptureStdout ();
419
419
Log (kInfo , " Test log.\n " , -1 );
@@ -499,7 +499,7 @@ TEST(LogTest, OnlyWarningsArePrintedWhenVerbosityIsInvalid) {
499
499
// Verifies that Log() behaves correctly for the given verbosity level
500
500
// and log severity.
501
501
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);
503
503
GMOCK_FLAG_SET (verbose, verbosity);
504
504
CaptureStdout ();
505
505
logger ();
0 commit comments