diff options
author | Chris Baish <chris.baish@gmail.com> | 2019-07-19 07:12:46 +0100 |
---|---|---|
committer | Chris Baish <chris.baish@gmail.com> | 2019-07-19 07:12:46 +0100 |
commit | d64e4cf14e488f10374df7548513667e4fba6399 (patch) | |
tree | bd46a4241847510b22d81672e65fb22dbe003e53 /googlemock/docs/cook_book.md | |
parent | adb490773e8d5f8a84e863f4bd6d96a707750093 (diff) | |
parent | b77e5c76252bac322bb82c5b444f050bd0d92451 (diff) | |
download | googletest-d64e4cf14e488f10374df7548513667e4fba6399.tar.gz googletest-d64e4cf14e488f10374df7548513667e4fba6399.tar.bz2 googletest-d64e4cf14e488f10374df7548513667e4fba6399.zip |
Merge remote-tracking branch 'upstream/master' into primer_md_table_update
Diffstat (limited to 'googlemock/docs/cook_book.md')
-rw-r--r-- | googlemock/docs/cook_book.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md index 7116fd4c..a858cd1f 100644 --- a/googlemock/docs/cook_book.md +++ b/googlemock/docs/cook_book.md @@ -1,6 +1,6 @@ ## Googletest Mocking (gMock) Cookbook -<!-- GOOGLETEST_CM0011 DO NOT DELETE --> +<!-- 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. @@ -154,7 +154,7 @@ class MockStack : public StackInterface<Elem> { #### Mocking Non-virtual Methods {#MockingNonVirtualMethods} gMock can mock non-virtual functions to be used in Hi-perf dependency -injection.<!-- GOOGLETEST_CM0016 DO NOT DELETE -->. +injection.<!-- GOOGLETEST_CM0017 DO NOT DELETE -->. In this case, instead of sharing a common base class with the real class, your mock class will be *unrelated* to the real class, but contain methods with the @@ -1455,7 +1455,7 @@ mock object and gMock. #### Knowing When to Expect {#UseOnCall} -<!-- GOOGLETEST_CM0017 DO NOT DELETE --> +<!-- GOOGLETEST_CM0018 DO NOT DELETE --> **`ON_CALL`** is likely the *single most under-utilized construct* in gMock. |