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
296c9d29
Commit
296c9d29
authored
Aug 25, 2020
by
xerus2000
Browse files
Add timestamp to in old method mock macro guide
parent
1e315c5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
googlemock/docs/cook_book.md
googlemock/docs/cook_book.md
+5
-4
No files found.
googlemock/docs/cook_book.md
View file @
296c9d29
...
...
@@ -3,7 +3,7 @@
<!-- GOOGLETEST_CM0012 DO NOT DELETE -->
You can find recipes for using gMock here. If you haven't yet, please read
[
th
is
](
for_dummies.md
)
first to make sure you understand the basics.
[
th
e dummy guide
](
for_dummies.md
)
first to make sure you understand the basics.
**Note:**
gMock lives in the
`testing`
name space. For readability, it is
recommended to write
`using ::testing::Foo;`
once in your file before using the
...
...
@@ -283,9 +283,10 @@ recipe for [mocking non-virtual methods](#MockingNonVirtualMethods).
### Old-Style `MOCK_METHODn` Macros
Before the generic
`MOCK_METHOD`
macro was introduced, mocks where created using
a family of macros collectively called
`MOCK_METHODn`
. These macros are still
supported, though migration to the new
`MOCK_METHOD`
is recommended.
Before the generic
`MOCK_METHOD`
macro
[
was introduced in 2018
](
https://github.com/google/googletest/commit/c5f08bf91944ce1b19bcf414fa1760e69d20afc2
)
,
mocks where created using a family of macros collectively called
`MOCK_METHODn`
.
These macros are still supported, though migration to the new
`MOCK_METHOD`
is
recommended.
The macros in the
`MOCK_METHODn`
family differ from
`MOCK_METHOD`
:
...
...
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