Lines Matching defs:action

387   Action<MyGlobalFunction> action = MakeAction(new MyActionImpl);
394 EXPECT_EQ(5, action.Perform(make_tuple(true, 5)));
400 Action<MyGlobalFunction> action(new MyActionImpl);
405 const Action<MyGlobalFunction> action(new MyActionImpl);
407 EXPECT_EQ(5, action.Perform(make_tuple(true, 5)));
408 EXPECT_EQ(0, action.Perform(make_tuple(false, 1)));
420 // a2 should work like the action it was copied from.
430 // a2 should work like the action it was copied from.
461 // Implements a polymorphic action that returns the second of the
466 // polymorphic action whose Perform() method template is either
472 // Implements a polymorphic action that can be used in a nullary
481 // polymorphic action whose Perform() method template is either
499 // Tests that MakePolymorphicAction() turns a polymorphic action
500 // implementation class into a polymorphic action.
516 // Tests that Return() works as an action for void-returning
582 // when the action is cast to Action<T(...)> rather than when the action is
605 Action<ToType()> action(Return(x));
609 action.Perform(tuple<>());
624 Action<DestinationType()> action(Return(s));
691 // Tests that DoDefault() does the default action for the mock method.
733 // Tests that using DoDefault() inside a composite action leads to a
764 // Tests that DoDefault() does the action specified by ON_CALL().
893 // s.t. the action works even when the original proto_buffer has
895 // action.
915 // s.t. the action works even when the original proto_buffer has
917 // action.
940 // proto2_buffer s.t. the action works even when the original
942 // before using the action.
965 // proto2_buffer s.t. the action works even when the original
967 // before using the action.
1012 // s.t. the action works even when the original proto_buffer has
1014 // action.
1034 // s.t. the action works even when the original proto_buffer has
1036 // action.
1059 // proto2_buffer s.t. the action works even when the original
1061 // before using the action.
1084 // proto2_buffer s.t. the action works even when the original
1086 // before using the action.
1127 // As an action that takes one argument.
1131 // As an action that takes two arguments.
1135 // As an action that returns void.
1144 // As an action that takes no argument.
1148 // As an action that takes three arguments.
1153 // As an action that returns void.
1168 // Tests using IgnoreResult() on a polymorphic action.
1174 // Tests using IgnoreResult() on a monomorphic action.
1188 // Tests using IgnoreResult() on an action that returns a class type.