Is there a way to use EXPECT_CALL on a local object of a function?
For example:
template<class T>
std::string doSomethingWithTheCar()
{
T car;
return "the color of the car is: " + car.color();
}
Due to the template I can control if the real Car object will be used or the MockCar. But is there a way to use EXPECT_CALL on this?
Aucun commentaire:
Enregistrer un commentaire