EXPECT_CALL(container, Add(testing::Ref(data))).WillRepeatedly(::testing::Return());
To send the mock implementation as a base class reference, testing::Eq
would require the ==
operator to be implemented on the abstract base class which is not desirable.