Lines Matching refs:Return
62 using testing::Return;
516 // Tests that Return() works as an action for void-returning
519 const Action<void(int)> ret = Return(); // NOLINT
523 // Tests that Return(v) returns v.
525 Action<int()> ret = Return(1); // NOLINT
528 ret = Return(-5);
532 // Tests that Return("string literal") works.
534 Action<const char*()> a1 = Return("Hello");
537 Action<std::string()> a2 = Return("world");
548 // Tests that Return() works when return type is a wrapper type.
554 // Return() called with 'v' as argument. The Action will return the same data
556 Action<IntegerVectorWrapper()> a = Return(v);
561 // Tests that Return(v) is covaraint.
574 Action<Base*()> ret = Return(&base);
577 ret = Return(&derived);
581 // Tests that the type of the value passed into Return is converted into T
605 Action<ToType()> action(Return(x));
606 EXPECT_TRUE(converted) << "Return must convert its argument in its own "
624 Action<DestinationType()> action(Return(s));
768 .WillByDefault(Return(2));
1170 Action<void(int)> a = IgnoreResult(Return(5)); // NOLINT
1353 EXPECT_CALL(mock, MakeUnique()).WillOnce(Return(ByMove(std::move(i))));
1355 .WillOnce(Return(ByMove(VectorUniquePtrSource())));
1358 .WillOnce(Return(ByMove(std::unique_ptr<Derived>(d))));
1379 Return(ByMove(std::move(i)))));