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
b4961ab1
Commit
b4961ab1
authored
Aug 06, 2019
by
Abseil Team
Committed by
Gennadiy Civil
Aug 06, 2019
Browse files
Googletest export
Fix broken link. PiperOrigin-RevId: 261940226
parent
2f499db0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googlemock/docs/for_dummies.md
googlemock/docs/for_dummies.md
+2
-2
No files found.
googlemock/docs/for_dummies.md
View file @
b4961ab1
...
@@ -148,8 +148,8 @@ follow:
...
@@ -148,8 +148,8 @@ follow:
*
Derive a class
`MockTurtle`
from
`Turtle`
.
*
Derive a class
`MockTurtle`
from
`Turtle`
.
*
Take a
*virtual*
function of
`Turtle`
(while it's possible to
*
Take a
*virtual*
function of
`Turtle`
(while it's possible to
[
mock non-virtual methods using templates
](
#MockingNonVirtualMethods
)
,
it's
[
mock non-virtual methods using templates
](
cook_book.md
#MockingNonVirtualMethods
)
,
much more involved).
it's
much more involved).
*
In the
`public:`
section of the child class, write
`MOCK_METHOD();`
*
In the
`public:`
section of the child class, write
`MOCK_METHOD();`
*
Now comes the fun part: you take the function signature, cut-and-paste it
*
Now comes the fun part: you take the function signature, cut-and-paste it
into the macro, and add two commas - one between the return type and the
into the macro, and add two commas - one between the return type and the
...
...
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