Код: Выделить всё
class Foo
{
public:
virtual int Duplicate(int) const& = 0;
};
Я пробовал:
Код: Выделить всё
class MockFoo : public Foo
{
public:
MOCK_METHOD(int, Duplicate, (int), (const&, override));
};
Подробнее здесь: https://stackoverflow.com/questions/782 ... with-gmock
Мобильная версия