Searched refs:ReturnRef (Results 1 – 17 of 17) sorted by relevance
71 using testing::ReturnRef;428 .WillOnce(ReturnRef(n)); in TEST()494 .WillOnce(ReturnRef(n)); in TEST()615 EXPECT_CALL(foo, Call()).WillOnce(ReturnRef(value)); in TEST()
64 using testing::ReturnRef;651 const Action<const int&(bool)> ret = ReturnRef(n); // NOLINT in TEST()660 Action<Base&()> a = ReturnRef(base); in TEST()663 a = ReturnRef(derived); in TEST()
166 using testing::ReturnRef;271 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); in TEST()
72 using testing::ReturnRef;426 .WillOnce(ReturnRef(n)); in TEST()492 .WillOnce(ReturnRef(n)); in TEST()613 EXPECT_CALL(foo, Call()).WillOnce(ReturnRef(value)); 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()
26 using ::testing::ReturnRef;
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,
367 |`ReturnRef(variable)`|Return a reference to `variable`. |
308 What can we do inside `WillOnce()` besides `Return()`? You can return a reference using `ReturnRef(…