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
3727a900
Unverified
Commit
3727a900
authored
May 30, 2022
by
Gaspard Petit
Committed by
GitHub
May 30, 2022
Browse files
Merge branch 'google:main' into simplify_shouldusecolor
parents
59006287
e649993a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
googlemock/include/gmock/gmock-spec-builders.h
googlemock/include/gmock/gmock-spec-builders.h
+1
-7
No files found.
googlemock/include/gmock/gmock-spec-builders.h
View file @
3727a900
...
...
@@ -1698,10 +1698,6 @@ class FunctionMocker<R(Args...)> final : public UntypedFunctionMockerBase {
return
std
::
forward
<
R
>
(
result
);
}
// Disable warnings about an unused parameter (due to SFINAE choosing an
// overload that doesn't use it).
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4100
);
// An overload for when it's not possible to print the result. In this case we
// simply perform the action.
template
<
typename
T
=
R
,
...
...
@@ -1710,12 +1706,10 @@ class FunctionMocker<R(Args...)> final : public UntypedFunctionMockerBase {
R
PerformActionAndPrintResult
(
const
void
*
const
untyped_action
,
ArgumentTuple
&&
args
,
const
std
::
string
&
call_description
,
std
::
ostream
&
os
)
{
std
::
ostream
&
)
{
return
PerformAction
(
untyped_action
,
std
::
move
(
args
),
call_description
);
}
GTEST_DISABLE_MSC_WARNINGS_POP_
();
// Returns the result of invoking this mock function with the given
// arguments. This function can be safely called from multiple
// threads concurrently.
...
...
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