Home
last modified time | relevance | path

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

/external/googletest/googlemock/test/
Dgmock-generated-function-mockers_test.cc71 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()
Dgmock-actions_test.cc64 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()
Dgmock_link_test.h166 using testing::ReturnRef;
271 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); in TEST()
/external/v8/testing/gmock/test/
Dgmock-generated-function-mockers_test.cc72 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()
Dgmock-actions_test.cc64 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()
Dgmock_link_test.h166 using testing::ReturnRef;
271 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); 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/google-tv-pairing-protocol/cpp/tests/polo/pairing/
Dpairingsessiontest.cc26 using ::testing::ReturnRef;
/external/google-breakpad/src/testing/include/gmock/
Dgmock-actions.h959 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT in ReturnRef() function
/external/v8/testing/gmock/include/gmock/
Dgmock-actions.h1077 inline internal::ReturnRefAction<R> ReturnRef(R& x) { // NOLINT
/external/googletest/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.md367 |`ReturnRef(variable)`|Return a reference to `variable`. |
DForDummies.md308 What can we do inside `WillOnce()` besides `Return()`? You can return a reference using `ReturnRef(…