My solution: create an implementation of the virtual function which
consists solely of passing through to a mocked method.
MOCK_CONST_METHOD0( MockFunctionName, ReturnValue() );
virtual ReturnValue FunctionName() const throw()
{
return MockFunctionName();
}
Then, whenever you need to write an Expect_Call or do anything for
that method, just refer to MockFunctionName.
On Feb 24, 2:08 pm, Zhanyong Wan (λx.x x) <
w...@google.com> wrote:
> It's not supported currently. Seehttp://
code.google.com/p/googlemock/issues/detail?id=122