lundi 25 juillet 2016

Pass different argument on different times

I want to change different argument on different function call how to achieve this?

example:

EXPECT_CALL(*obj, Write(_)).WillOnce(DoAll(SaveArg<0>(&WriteObj), Return(true)));

The Write() method will be called multiple times or random times. On each Write calls I want to get the object passed to Write() method. I want these arguments in a vector, how can I do this?

Aucun commentaire:

Enregistrer un commentaire