Using 'another test framework' (Qt), I want to control when the google mocks are verified:
void MyQtTest::test_ThisAndThat() {
MyMock mock;
EXPECT_CALL(mock, foo(1));
system_under_test.bar();
//VERIFY_EXPECTATIONS(mock)
}
But I don't find anything about that in the Cookbook.
This is what i normally do in similar situations:
void MyQtTest::test_ThisAndThat()
{
MyMock mock;
EXPECT_CALL(mock, foo(1));
system_under_test.bar();
Mock::VerifyAndClearExpectations(&mock);
}
edit: fixed broken link
2nd edit: fixed broken link again