google mock : how can I " EXPECT " that no method will be called on a mock
Create a StrictMock
; any unexpected method call will be a failure.
There are no needs to explicitly tell that no methods will be called. If you set the logging level high enough, you should get a message if a method is called (if no expectation is set).
Other then that, you can set expectations like this :
EXPECT_CALL( mockObj, Foo(_) ).Times(0);
on all methods.