Lines Matching refs:Return
70 using testing::Return;
525 // Tests that Return() works as an action for void-returning
528 const Action<void(int)> ret = Return(); // NOLINT
532 // Tests that Return(v) returns v.
534 Action<int()> ret = Return(1); // NOLINT
537 ret = Return(-5);
541 // Tests that Return("string literal") works.
543 Action<const char*()> a1 = Return("Hello");
546 Action<std::string()> a2 = Return("world");
557 // Tests that Return() works when return type is a wrapper type.
563 // Return() called with 'v' as argument. The Action will return the same data
565 Action<IntegerVectorWrapper()> a = Return(v);
570 // Tests that Return(v) is covaraint.
583 Action<Base*()> ret = Return(&base);
586 ret = Return(&derived);
590 // Tests that the type of the value passed into Return is converted into T
614 Action<ToType()> action(Return(x));
615 EXPECT_TRUE(converted) << "Return must convert its argument in its own "
633 Action<DestinationType()> action(Return(s));
780 .WillByDefault(Return(2));
984 Action<void(int)> a = IgnoreResult(Return(5)); // NOLINT
1167 EXPECT_CALL(mock, MakeUnique()).WillOnce(Return(ByMove(std::move(i))));
1169 .WillOnce(Return(ByMove(VectorUniquePtrSource())));
1172 .WillOnce(Return(ByMove(std::unique_ptr<Derived>(d))));
1193 Return(ByMove(std::move(i)))));
1233 // Return(1)));
1235 .WillOnce(Return(-7))
1238 .WillOnce(Return(-1))
1351 Action<int(std::unique_ptr<int>)> a = Return(1);