google / googlemock

Google Mock
427 stars 204 forks source link

Pointee with overloaded functions #217

Open kfabian opened 5 years ago

kfabian commented 5 years ago

I have the following overloaded mock functions
MOCK_METHOD1_T(function, void(int value)); MOCK_METHOD1_T(function, void(std::shared_ptr pointer));

if expect the call EXPECT_CALL(*mock_object, function(testing::Pointee(10))). Times(2);

I can't compile it, because the call of the overloaded function is ambiguous. How can I solve this problem.