Lines Matching defs:action

55 // To implement an action Foo, define:
82 "Default action undefined for the function return type.");
161 // There's no need for a default action for signed wchar_t, as that
164 // There's also no need for a default action for unsigned wchar_t, as
325 // Implement this interface to define an action for function type F.
335 // Performs the action. This method is not const, as in general an
336 // action can have side effects and be stateful. For example, a
337 // get-the-next-element-from-the-collection action will need to
346 // object that represents an action to be taken when a mock function
352 // concrete action (including its current state), and an Action<F>
365 // used to represent the "do-default" action.
369 Action(const Action& action) : impl_(action.impl_) {}
376 explicit Action(const Action<Func>& action);
378 // Returns true iff this is the DoDefault() action.
381 // Performs the action. Note that this method is const even though
384 // another concrete action, not that the concrete action it binds to
390 "You are using DoDefault() inside a composite action like "
392 "reasons. Please instead spell out the default action, or "
393 "assign the default action to an Action variable and use "
406 // polymorphic action (i.e. an action that can be used in mock
409 // To define a polymorphic action, a user first provides a COPYABLE
422 // Then the user creates the polymorphic action using
467 // Creates a polymorphic action from its implementation. This is
509 // Implements the polymorphic Return(x) action, which can be used in
514 // Function<F>::Result when this action is cast to Action<F> rather than
515 // when that action is performed. This is important in scenarios like
561 // Implements the Return(x) action for a particular function type F.
605 << "A ByMove() action should only be performed once.";
622 // Implements the ReturnNull() action.
640 // Implements the Return() action.
650 // Implements the polymorphic ReturnRef(x) action, which can be used
673 // Implements the ReturnRef(x) action for a particular function type F.
697 // Implements the polymorphic ReturnRefOfCopy(x) action, which can be
722 // Implements the ReturnRefOfCopy(x) action for a particular function type F.
746 // Implements the polymorphic DoDefault() action.
755 // Implements the Assign action to set a given pointer referent to a
776 // Implements the SetErrnoAndReturn action to simulate return from
799 // Implements the SetArgumentPointee<N>(x) action for any function
806 // Constructs an action that sets the variable pointed to by the
825 // Constructs an action that sets the variable pointed to by the
845 // Implements the InvokeWithoutArgs(f) action. The template argument
858 // Allows InvokeWithoutArgs(f) to be used as any action whose type is
869 // Implements the InvokeWithoutArgs(object_ptr, &Class::Method) action.
888 // Implements the IgnoreResult(action) action.
892 explicit IgnoreResultAction(const A& action) : action_(action) {}
919 explicit Impl(const A& action) : action_(action) {}
922 // Performs the action and ignores its result.
947 // InvokeArgument<N>(...) action. The idea was from "reference
970 // a2, ...) action.
985 // Implements the DoAll(...) action for a particular function type F.
1057 // Creates an action that returns 'value'. 'value' is passed by value
1065 // Creates an action that returns NULL.
1070 // Creates an action that returns from a void function.
1075 // Creates an action that returns the reference to a variable.
1081 // Creates an action that returns the reference to a copy of the
1082 // argument. The copy is created when the action is constructed and
1083 // lives as long as the action.
1089 // Modifies the parent action (a Return() action) to perform a move of the
1098 // Creates an action that does the default action for the give mock function.
1103 // Creates an action that sets the variable pointed by the N-th
1145 // Creates an action that sets a pointer referent to a given value.
1153 // Creates an action that sets errno and returns the appropriate error.
1165 // Creates an action that invokes 'function_impl' with no argument.
1173 // Creates an action that invokes the given method on the given object
1183 // Creates an action that performs an_action and throws away its