Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
b4961ab1
Commit
b4961ab1
authored
Aug 06, 2019
by
Abseil Team
Committed by
Gennadiy Civil
Aug 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Fix broken link. PiperOrigin-RevId: 261940226
parent
2f499db0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
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:
*
Derive a class
`MockTurtle`
from
`Turtle`
.
*
Take a
*virtual*
function of
`Turtle`
(while it's possible to
[
mock non-virtual methods using templates
](
#MockingNonVirtualMethods
)
, it's
much more involved).
[
mock non-virtual methods using templates
](
cook_book.md#MockingNonVirtualMethods
)
,
it's
much more involved).
*
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
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