Searched refs:ReturnRef (Results 1 – 15 of 15) sorted by relevance
62 using testing::ReturnRef;430 .WillOnce(ReturnRef(n)); in TEST()498 .WillOnce(ReturnRef(n)); in TEST()618 EXPECT_CALL(foo, Call()).WillOnce(ReturnRef(value)); in TEST()
63 using testing::ReturnRef;431 .WillOnce(ReturnRef(n)); in TEST()497 .WillOnce(ReturnRef(n)); in TEST()617 EXPECT_CALL(foo, Call()).WillOnce(ReturnRef(value)); in TEST()
171 using testing::ReturnRef;276 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); in TEST()
74 using testing::ReturnRef;649 const Action<const int&(bool)> ret = ReturnRef(n); // NOLINT in TEST()658 Action<Base&()> a = ReturnRef(base); in TEST()661 a = ReturnRef(derived); in TEST()
72 using testing::ReturnRef;380 .WillOnce(ReturnRef(n)); in TEST()433 .WillOnce(ReturnRef(n)); in TEST()
70 using testing::ReturnRef;573 const Action<const int&(bool)> ret = ReturnRef(n); // NOLINT in TEST()582 Action<Base&()> a = ReturnRef(base); in TEST()585 a = ReturnRef(derived); in TEST()
166 using testing::ReturnRef;271 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); in TEST()
68 // EXPECT_CALL(mock, GetName).WillOnce(ReturnRef(value));
1057 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT
959 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT in ReturnRef() function
1077 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT
57 using testing::ReturnRef;519 .WillRepeatedly(ReturnRef(data_channels_)); in StatsCollectorTest()
748 using ::testing::ReturnRef;760 .WillOnce(ReturnRef(bar1));762 .WillOnce(ReturnRef(bar2));1502 `ReturnRef()` instead of `Return()` to return a result:1505 using ::testing::ReturnRef;1516 .WillOnce(ReturnRef(bar));1527 `ReturnRef(x)`, as shown in the previous recipe ("Returning References1529 `ReturnRef()` in a mock function whose return type is not a reference,
387 |`ReturnRef(variable)`|Return a reference to `variable`.|
308 What can we do inside `WillOnce()` besides `Return()`? You can return a reference using `ReturnRef(…