mirror of
https://github.com/google/googletest.git
synced 2025-12-07 01:06:50 +08:00
Merge 108091feaf4c6fcc126f5fe67fe2bab7c45ad2f0 into 1b96fa13f549387b7549cc89e1a785cf143a1a50
This commit is contained in:
commit
ab69cde435
@ -544,8 +544,8 @@ arguments:
|
|||||||
```cpp
|
```cpp
|
||||||
class MockTurtleFactory : public TurtleFactory {
|
class MockTurtleFactory : public TurtleFactory {
|
||||||
public:
|
public:
|
||||||
Turtle* MakeTurtle(int length, int weight) override { ... }
|
Turtle* MakeTurtle(int length, int weight) override { return DoMakeTurtle(); }
|
||||||
Turtle* MakeTurtle(int length, int weight, int speed) override { ... }
|
Turtle* MakeTurtle(int length, int weight, int speed) override { return DoMakeTurtle(); }
|
||||||
|
|
||||||
// the above methods delegate to this one:
|
// the above methods delegate to this one:
|
||||||
MOCK_METHOD(Turtle*, DoMakeTurtle, ());
|
MOCK_METHOD(Turtle*, DoMakeTurtle, ());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user