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
153909f0
Commit
153909f0
authored
Dec 26, 2019
by
Abseil Team
Committed by
Andy Soffer
Jan 02, 2020
Browse files
Googletest export
Fix typo in example. PiperOrigin-RevId: 287212448
parent
fbe34cec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
googlemock/docs/cook_book.md
googlemock/docs/cook_book.md
+1
-1
No files found.
googlemock/docs/cook_book.md
View file @
153909f0
...
@@ -2202,7 +2202,7 @@ class Helper {
...
@@ -2202,7 +2202,7 @@ class Helper {
.
WillOnce
(
&
CalculateSum
)
.
WillOnce
(
&
CalculateSum
)
.
WillRepeatedly
(
Invoke
(
NewPermanentCallback
(
Sum3
,
1
)));
.
WillRepeatedly
(
Invoke
(
NewPermanentCallback
(
Sum3
,
1
)));
EXPECT_CALL
(
foo
,
ComplexJob
(
_
))
EXPECT_CALL
(
foo
,
ComplexJob
(
_
))
.
WillOnce
(
Invoke
(
&
helper
,
&
Helper
::
ComplexJob
))
;
.
WillOnce
(
Invoke
(
&
helper
,
&
Helper
::
ComplexJob
))
.
WillRepeatedly
([](
int
x
)
{
return
x
>
0
;
});
.
WillRepeatedly
([](
int
x
)
{
return
x
>
0
;
});
foo
.
Sum
(
5
,
6
);
// Invokes CalculateSum(5, 6).
foo
.
Sum
(
5
,
6
);
// Invokes CalculateSum(5, 6).
...
...
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