```cpp
class Foo {
- ...
+ public:
virtual ~Foo();
virtual int GetSize() const = 0;
virtual string Describe(const char* name) = 0;
#include "gmock/gmock.h"
class MockFoo : public Foo {
- ...
+ public:
MOCK_METHOD(int, GetSize, (), (const, override));
MOCK_METHOD(string, Describe, (const char* name), (override));
MOCK_METHOD(string, Describe, (int type), (override));
```cpp
template <typename Elem>
class StackInterface {
- ...
+ public:
virtual ~StackInterface();
virtual int GetSize() const = 0;
virtual void Push(const Elem& x) = 0;
```cpp
template <typename Elem>
class MockStack : public StackInterface<Elem> {
- ...
+ public:
MOCK_METHOD(int, GetSize, (), (const, override));
MOCK_METHOD(void, Push, (const Elem& x), (override));
};
};
```
-See this [recipe](gmock_cook_book.md#using-check-points) for one application of
+See this [recipe](gmock_cook_book.md#UsingCheckPoints) for one application of
it.
## Flags