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
d655d098
Commit
d655d098
authored
Aug 02, 2017
by
Gennadiy Civil
Committed by
GitHub
Aug 02, 2017
Browse files
Merge pull request #867 from marzojr/patch-1
Clarifying documentation language
parents
e1f3d8d1
f700442d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
googlemock/docs/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