zilong
unread,Feb 20, 2012, 6:41:05 AM2/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google C++ Mocking Framework
Hi all,
class IFoo {
virtual void get_name(std::string& name) = 0;
};
class MockIFoo : public IFoo {
MOCK_METHOD1(get_name, void(std::string& name));
};
When I use this mock object in test codes, how could I set the
expectations to get out parameter as I specified, I tried this way,
but not work.
std::string dummy("foo");
EXPECT_CALL(foo, get_name(dummy));
Best regards,
Zilong