virtual void doSomething(std::function<void(std::error_code result)> callback) = 0
MockMethod1(doSomething, std::function<void(std::error_code result)> callback);
Maintenant, quand j'écris EXPECT_CALL, comment puis-je appeler "callback"Comment appeler le pointeur de fonction qui est passé à la méthode Mock?
EXPECT_CALL(object, doSomething(testing::_)).WillRepeatedly(???);
Que dois-je écrire à appeler mon rappel?
Ajouter un commentaire? Avez-vous réussi à résoudre votre problème? –