mirror of
https://github.com/google/googletest.git
synced 2025-04-05 13:35:03 +00:00
Make example of delegating methods with parameterless expressions more explicit.
This commit is contained in:
parent
c29315dda4
commit
108091feaf
1 changed files with 2 additions and 2 deletions
|
@ -540,8 +540,8 @@ arguments:
|
|||
```cpp
|
||||
class MockTurtleFactory : public TurtleFactory {
|
||||
public:
|
||||
Turtle* MakeTurtle(int length, int weight) override { ... }
|
||||
Turtle* MakeTurtle(int length, int weight, int speed) override { ... }
|
||||
Turtle* MakeTurtle(int length, int weight) override { return DoMakeTurtle(); }
|
||||
Turtle* MakeTurtle(int length, int weight, int speed) override { return DoMakeTurtle(); }
|
||||
|
||||
// the above methods delegate to this one:
|
||||
MOCK_METHOD(Turtle*, DoMakeTurtle, ());
|
||||
|
|
Loading…
Add table
Reference in a new issue