mirror of
https://github.com/google/googletest.git
synced 2025-03-19 10:23:48 +00:00
Merge pull request #2994 from xerus2000:gmock-docs
PiperOrigin-RevId: 330545489
This commit is contained in:
commit
646603961b
@ -3,7 +3,7 @@
|
|||||||
<!-- GOOGLETEST_CM0012 DO NOT DELETE -->
|
<!-- GOOGLETEST_CM0012 DO NOT DELETE -->
|
||||||
|
|
||||||
You can find recipes for using gMock here. If you haven't yet, please read
|
You can find recipes for using gMock here. If you haven't yet, please read
|
||||||
[this](for_dummies.md) first to make sure you understand the basics.
|
[the 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
|
**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
|
recommended to write `using ::testing::Foo;` once in your file before using the
|
||||||
@ -283,9 +283,11 @@ recipe for [mocking non-virtual methods](#MockingNonVirtualMethods).
|
|||||||
|
|
||||||
### Old-Style `MOCK_METHODn` Macros
|
### Old-Style `MOCK_METHODn` Macros
|
||||||
|
|
||||||
Before the generic `MOCK_METHOD` macro was introduced, mocks where created using
|
Before the generic `MOCK_METHOD` macro
|
||||||
a family of macros collectively called `MOCK_METHODn`. These macros are still
|
[was introduced in 2018](https://github.com/google/googletest/commit/c5f08bf91944ce1b19bcf414fa1760e69d20afc2),
|
||||||
supported, though migration to the new `MOCK_METHOD` is recommended.
|
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`:
|
The macros in the `MOCK_METHODn` family differ from `MOCK_METHOD`:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user