Lines Matching refs:action

36 // A user can use the ON_CALL() macro to specify the default action of
41 // .WillByDefault(action);
53 // .WillOnce(action)
54 // .WillRepeatedly(action)
145 // Performs the default action with the given arguments and returns
146 // the action's result. The call description string will be used in
148 // action fails.
154 // Performs the given action with the given arguments and returns
155 // the action's result.
171 // untyped_action is set to point to the action that should be
172 // performed (or NULL if the action is "do default"), and
237 // All default action specs for this function mocker.
251 // Where in the source file was the default action spec defined?
316 OnCallSpec& WillByDefault(const Action<F>& action) {
322 ExpectSpecProperty(!action.IsDoDefault(),
324 action_ = action;
333 // Returns the action specified by the user.
346 // .WillByDefault(action);
354 // action => action_
828 // Checks the action count (i.e. the number of WillOnce() and
897 // Check the validity of the action count if it hasn't been done
994 TypedExpectation& WillOnce(const Action<F>& action) {
1000 untyped_actions_.push_back(new Action<F>(action));
1008 TypedExpectation& WillRepeatedly(const Action<F>& action) {
1021 repeated_action_ = action;
1026 // Now that no more action clauses can be specified, we check
1040 // Now that no more action clauses can be specified, we check
1057 // Returns the action specified by the .WillRepeatedly() clause.
1096 // In case the action count wasn't checked when the expectation
1150 // Returns the action that should be taken for the current invocation.
1182 // over-saturate this expectation, returns the default action;
1183 // otherwise, returns the next action in this expectation. Also
1187 // action.
1257 // Adds a new default action spec to the function mocker and returns
1366 // Prints the held value as an action's result to os.
1379 // Prints the held value as an action's result to os.
1386 // Performs the given mock function's default action and returns the
1397 // Performs the given action and returns the result in a new-ed
1401 PerformAction(const Action<F>& action,
1403 return new ActionResultHolder(Wrapper(action.Perform(args)));
1426 // Performs the given mock function's default action and returns ownership
1437 // Performs the given action and returns ownership of an empty
1441 const Action<F>& action,
1443 action.Perform(args);
1491 // Performs the default action of this mock function on the given
1506 "\n The mock function has no default action "
1518 // Performs the default action with the given arguments and returns
1519 // the action's result. The call description string will be used in
1521 // action fails. The caller is responsible for deleting the result.
1531 // Performs the given action with the given arguments and returns
1532 // the action's result. The caller is responsible for deleting the
1537 // Make a copy of the action before performing it, in case the
1538 // action deletes the mock object (and thus deletes itself).
1539 const Action<F> action = *static_cast<const Action<F>*>(untyped_action);
1542 return ResultHolder::PerformAction(action, args);
1552 // deleted, for example if an action contains a reference counted smart
1589 // Adds and returns a default action spec for this mock function.
1622 // The current spec (either default action spec or expectation spec)
1631 // Describes what default action will be performed for the given
1643 *os << "taking default action specified at:\n"
1665 // untyped_action is set to point to the action that should be
1666 // performed (or NULL if the action is "do default"), and
1671 // corresponding action that needs to be taken in an ATOMIC
1675 // However, performing the action has to be left out of the critical
1677 // action does (it can invoke an arbitrary user function or even a
1697 const Action<F>* action = exp->GetActionForArguments(this, args, what, why);
1698 if (action != NULL && action->IsDoDefault())
1699 action = NULL; // Normalize "do default" to NULL.
1700 *untyped_action = action;
1768 // The current spec (either default action spec or expectation spec)