diff options
author | xerus2000 <27jf@pm.me> | 2020-08-25 08:07:30 (GMT) |
---|---|---|
committer | xerus2000 <27jf@pm.me> | 2020-08-25 08:07:30 (GMT) |
commit | 296c9d29b16375c30781bb9109f3159a9ddbba9c (patch) | |
tree | ffc50bb90537f19fe23e6df841d1c7a7654b744a /googlemock/docs | |
parent | 1e315c5b1a62707fac9b8f1d4e03180ee7507f98 (diff) | |
download | googletest-296c9d29b16375c30781bb9109f3159a9ddbba9c.zip googletest-296c9d29b16375c30781bb9109f3159a9ddbba9c.tar.gz googletest-296c9d29b16375c30781bb9109f3159a9ddbba9c.tar.bz2 |
Add timestamp to in old method mock macro guiderefs/pull/2994/head
Diffstat (limited to 'googlemock/docs')
-rw-r--r-- | googlemock/docs/cook_book.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md index d7cee69..90849e1 100644 --- a/googlemock/docs/cook_book.md +++ b/googlemock/docs/cook_book.md @@ -3,7 +3,7 @@ <!-- GOOGLETEST_CM0012 DO NOT DELETE --> 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 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`: |