GMOCK WARNING: Uninteresting mock function call

2,599 views
Skip to first unread message

Corona4456

unread,
Jan 6, 2011, 4:22:31 PM1/6/11
to Google C++ Mocking Framework
I posted a question about this in gmock-user group but I'm not sure
where the official place is so I'll just post the question here as
well:

Is there a way to disable the warning message during static
initialization? Not a big deal, just wondering.

R. Samuel Klatchko

unread,
Jan 6, 2011, 4:36:05 PM1/6/11
to Corona4456, Google C++ Mocking Framework
Wrap your mock object as a NiceMock:

  NiceMock<MockType> foo;

Reply all
Reply to author
Forward
0 new messages