Home
last modified time | relevance | path

Searched refs:ReturnRef (Results 1 – 15 of 15) sorted by relevance

/external/googletest/googlemock/test/
Dgmock-function-mocker_test.cc62 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()
Dgmock-generated-function-mockers_test.cc63 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()
Dgmock_link_test.h171 using testing::ReturnRef;
276 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); in TEST()
Dgmock-actions_test.cc74 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()
/external/google-breakpad/src/testing/test/
Dgmock-generated-function-mockers_test.cc72 using testing::ReturnRef;
380 .WillOnce(ReturnRef(n)); in TEST()
433 .WillOnce(ReturnRef(n)); in TEST()
Dgmock-actions_test.cc70 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()
Dgmock_link_test.h166 using testing::ReturnRef;
271 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); in TEST()
/external/googletest/googlemock/include/gmock/
Dgmock-generated-function-mockers.h.pump68 // EXPECT_CALL(mock, GetName).WillOnce(ReturnRef(value));
Dgmock-actions.h1057 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT
/external/google-breakpad/src/testing/include/gmock/
Dgmock-actions.h959 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT in ReturnRef() function
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-actions.h1077 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT
/external/webrtc/talk/app/webrtc/
Dstatscollector_unittest.cc57 using testing::ReturnRef;
519 .WillRepeatedly(ReturnRef(data_channels_)); in StatsCollectorTest()
/external/googletest/googlemock/docs/
DCookBook.md748 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 References
1529 `ReturnRef()` in a mock function whose return type is not a reference,
DCheatSheet.md387 |`ReturnRef(variable)`|Return a reference to `variable`.|
DForDummies.md308 What can we do inside `WillOnce()` besides `Return()`? You can return a reference using `ReturnRef(…