Googletest export
Fix broken link. PiperOrigin-RevId: 261940226
This commit is contained in:
parent
2f499db00e
commit
b4961ab1cb
|
@ -148,8 +148,8 @@ follow:
|
||||||
|
|
||||||
* Derive a class `MockTurtle` from `Turtle`.
|
* Derive a class `MockTurtle` from `Turtle`.
|
||||||
* Take a *virtual* function of `Turtle` (while it's possible to
|
* Take a *virtual* function of `Turtle` (while it's possible to
|
||||||
[mock non-virtual methods using templates](#MockingNonVirtualMethods), it's
|
[mock non-virtual methods using templates](cook_book.md#MockingNonVirtualMethods),
|
||||||
much more involved).
|
it's much more involved).
|
||||||
* In the `public:` section of the child class, write `MOCK_METHOD();`
|
* In the `public:` section of the child class, write `MOCK_METHOD();`
|
||||||
* Now comes the fun part: you take the function signature, cut-and-paste it
|
* Now comes the fun part: you take the function signature, cut-and-paste it
|
||||||
into the macro, and add two commas - one between the return type and the
|
into the macro, and add two commas - one between the return type and the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user