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
d655d098
Commit
d655d098
authored
Aug 02, 2017
by
Gennadiy Civil
Committed by
GitHub
Aug 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #867 from marzojr/patch-1
Clarifying documentation language
parents
e1f3d8d1
f700442d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
CookBook.md
googlemock/docs/CookBook.md
+3
-2
No files found.
googlemock/docs/CookBook.md
View file @
d655d098
...
@@ -18,8 +18,9 @@ You must always put a mock method definition (`MOCK_METHOD*`) in a
...
@@ -18,8 +18,9 @@ You must always put a mock method definition (`MOCK_METHOD*`) in a
`public:`
section of the mock class, regardless of the method being
`public:`
section of the mock class, regardless of the method being
mocked being
`public`
,
`protected`
, or
`private`
in the base class.
mocked being
`public`
,
`protected`
, or
`private`
in the base class.
This allows
`ON_CALL`
and
`EXPECT_CALL`
to reference the mock function
This allows
`ON_CALL`
and
`EXPECT_CALL`
to reference the mock function
from outside of the mock class. (Yes, C++ allows a subclass to change
from outside of the mock class. (Yes, C++ allows a subclass to specify
the access level of a virtual function in the base class.) Example:
a different access level than the base class on a virtual function.)
Example:
```
```
class Foo {
class Foo {
...
...
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