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
f700442d
Commit
f700442d
authored
Sep 02, 2016
by
Marzo Sette Torres Junior
Committed by
GitHub
Sep 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarifying language
The old language might mislead someone into thinking that the access level on the base class itself was changed.
parent
ed9d1e1f
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 @
f700442d
...
...
@@ -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
mocked being
`public`
,
`protected`
, or
`private`
in the base class.
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
the access level of a virtual function in the base class.) Example:
from outside of the mock class. (Yes, C++ allows a subclass to specify
a different access level than the base class on a virtual function.)
Example:
```
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