Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
b3062166
Commit
b3062166
authored
Oct 26, 2021
by
Abseil Team
Committed by
CJ Johnson
Nov 03, 2021
Browse files
Googletest export
Internal change PiperOrigin-RevId: 405710296
parent
489ef888
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
googlemock/test/gmock-internal-utils_test.cc
googlemock/test/gmock-internal-utils_test.cc
+3
-3
No files found.
googlemock/test/gmock-internal-utils_test.cc
View file @
b3062166
...
...
@@ -394,7 +394,7 @@ TEST_F(LogIsVisibleTest, WorksWhenVerbosityIsWarning) {
// and log severity.
void
TestLogWithSeverity
(
const
std
::
string
&
verbosity
,
LogSeverity
severity
,
bool
should_print
)
{
const
std
::
string
old_flag
=
GMOCK_FLAG
(
verbose
);
const
std
::
string
old_flag
=
GMOCK_FLAG
_GET
(
verbose
);
GMOCK_FLAG_SET
(
verbose
,
verbosity
);
CaptureStdout
();
Log
(
severity
,
"Test log.
\n
"
,
0
);
...
...
@@ -413,7 +413,7 @@ void TestLogWithSeverity(const std::string& verbosity, LogSeverity severity,
// Tests that when the stack_frames_to_skip parameter is negative,
// Log() doesn't include the stack trace in the output.
TEST
(
LogTest
,
NoStackTraceWhenStackFramesToSkipIsNegative
)
{
const
std
::
string
saved_flag
=
GMOCK_FLAG
(
verbose
);
const
std
::
string
saved_flag
=
GMOCK_FLAG
_GET
(
verbose
);
GMOCK_FLAG_SET
(
verbose
,
kInfoVerbosity
);
CaptureStdout
();
Log
(
kInfo
,
"Test log.
\n
"
,
-
1
);
...
...
@@ -499,7 +499,7 @@ TEST(LogTest, OnlyWarningsArePrintedWhenVerbosityIsInvalid) {
// Verifies that Log() behaves correctly for the given verbosity level
// and log severity.
std
::
string
GrabOutput
(
void
(
*
logger
)(),
const
char
*
verbosity
)
{
const
std
::
string
saved_flag
=
GMOCK_FLAG
(
verbose
);
const
std
::
string
saved_flag
=
GMOCK_FLAG
_GET
(
verbose
);
GMOCK_FLAG_SET
(
verbose
,
verbosity
);
CaptureStdout
();
logger
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment