How do I make fun of the following code?
class ISomeClass
{
public:
virtual ~ISomeClass() {} = 0;
virtual const MyType & getType() const = 0;
virtual MyType & getType() = 0;
};
I tried the following, but it does not work. Can you help me?
class MockSomeClass : public ISomeClass
{
public:
using MyTypeConstRefType = const MyType&;
using MyTypeRefType = MyType&;
public:
MOCK_METHOD0(getType, MyTypeConstRefType(void) const);
MOCK_METHOD0(getType, MyTypeRefType(void));
};
source
share