Commit b4961ab1 authored by Abseil Team's avatar Abseil Team Committed by Gennadiy Civil
Browse files

Googletest export

Fix broken link.

PiperOrigin-RevId: 261940226
parent 2f499db0
...@@ -148,8 +148,8 @@ follow: ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment