Searched refs:ReturnRef (Results 1 - 4 of 4) sorted by relevance

/gem5/ext/googletest/googlemock/test/
H A Dgmock-generated-function-mockers_test.cc72 using testing::ReturnRef;
426 .WillOnce(ReturnRef(n));
492 .WillOnce(ReturnRef(n));
613 EXPECT_CALL(foo, Call()).WillOnce(ReturnRef(value));
H A Dgmock_link_test.h45 // ReturnRef
166 using testing::ReturnRef;
266 // Tests the linkage of the ReturnRef action.
271 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n));
H A Dgmock-actions_test.cc64 using testing::ReturnRef;
648 // Tests that ReturnRef(v) works for reference types.
651 const Action<const int&(bool)> ret = ReturnRef(n); // NOLINT
656 // Tests that ReturnRef(v) is covariant.
660 Action<Base&()> a = ReturnRef(base);
663 a = ReturnRef(derived);
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-actions.h650 // Implements the polymorphic ReturnRef(x) action, which can be used
659 // This template type conversion operator allows ReturnRef(x) to be
665 // catches the user error of using ReturnRef(x) when Return(x)
673 // Implements the ReturnRef(x) action for a particular function type F.
1077 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT function in namespace:testing

Completed in 18 milliseconds