Lines Matching defs:action
529 Action<MyGlobalFunction> action = MakeAction(new MyActionImpl);
536 EXPECT_EQ(5, action.Perform(std::make_tuple(true, 5)));
542 Action<MyGlobalFunction> action(new MyActionImpl);
547 const Action<MyGlobalFunction> action(new MyActionImpl);
549 EXPECT_EQ(5, action.Perform(std::make_tuple(true, 5)));
550 EXPECT_EQ(0, action.Perform(std::make_tuple(false, 1)));
562 // a2 should work like the action it was copied from.
572 // a2 should work like the action it was copied from.
596 // Implements a polymorphic action that returns the second of the
601 // polymorphic action whose Perform() method template is either
609 // Implements a polymorphic action that can be used in a nullary
618 // polymorphic action whose Perform() method template is either
638 // Tests that MakePolymorphicAction() turns a polymorphic action
639 // implementation class into a polymorphic action.
655 // Tests that Return() works as an action for void-returning
690 // Set up an action for a mock function that returns the reference wrapper
694 // that's embedded within the action itself (which should stay alive as long
831 // when the action is cast to Action<T(...)> rather than when the action is
852 Action<ToType()> action(Return(x));
856 action.Perform(std::tuple<>());
985 // Tests that DoDefault() does the default action for the mock method.
1025 // Tests that using DoDefault() inside a composite action leads to a
1052 // Tests that DoDefault() does the action specified by ON_CALL().
1228 // As an action that takes one argument.
1232 // As an action that takes two arguments.
1236 // As an action that returns void.
1245 // As an action that takes no argument.
1249 // As an action that takes three arguments.
1254 // As an action that returns void.
1269 // Tests using IgnoreResult() on a polymorphic action.
1275 // Tests using IgnoreResult() on a monomorphic action.
1289 // Tests using IgnoreResult() on an action that returns a class type.
1341 // mock action itself accepts an rvalue reference or a non-scalar object by
1342 // value then the final action should receive an rvalue reference, but initial
1347 // Mock action accepts by value: the initial action should be fed a const
1348 // lvalue reference, and the final action an rvalue reference.
1366 // Mock action accepts by const lvalue reference: both actions should receive
1386 // Mock action accepts by non-const lvalue reference: both actions should get
1404 // Mock action accepts by rvalue reference: the initial actions should receive
1405 // a non-const lvalue reference if it wants it, and the final action an rvalue
1463 // With &&-qualified and move-only final action.
1479 // Tests using WithArgs and with an action that takes 1 argument.
1486 // Tests using WithArgs with an action that takes 2 arguments.
1502 // Tests using WithArgs with an action that takes 10 arguments.
1511 // Tests using WithArgs with an action that is not Invoke().
1557 // Tests using WithArgs with an action that returns void.
1584 // It should be possible to use an &&-qualified inner action as long as the
1859 // The unique_ptr can be saved by the action.
1894 // Edge case: if an action has both a const-qualified and an &&-qualified call
1897 // action beyond one call), and the const-qualified one by WillRepeatedly.
1925 // WillOnce should have no problem coping with a move-only action, whether it is
1963 // It should be possible to use an action that returns a value with a mock
1978 // possible to hand an lvalue reference to a copyable action to WillOnce.
1982 const auto action = [] { return 17; };
1983 EXPECT_CALL(mock, Call).WillOnce(action);
2042 // Tests for std::function based action.
2108 // Also between the lambda and the action itself.
2120 // Ensure creation of an empty action succeeds.