Lines Matching refs:expectation
43 // A user can use the EXPECT_CALL() macro to specify an expectation on
92 // An abstract handle of an expectation.
95 // A set of expectation handles.
109 // Implements an expectation.
133 // expectation gets picked. Therefore, we sequence all mock function
166 // Returns the expectation that matches the given function arguments
208 // which must be an expectation on this mock function.
462 // An abstract handle of an expectation. Useful in the .After()
480 // Constructs a null object that doesn't reference any expectation.
502 // Returns true if and only if rhs references the same expectation as this
535 // Returns the expectation this object references.
540 // A shared_ptr that co-owns the expectation this handle references.
544 // A set of expectation handles. Useful in the .After() clause of
617 // Adds an expectation to this sequence. The caller must ensure
619 void AddExpectation(const Expectation& expectation) const;
622 // The last expectation in this sequence.
674 // types (e.g. all pre-requisites of a particular expectation, all
675 // expectations in a sequence). Therefore these expectation objects
689 // Where in the source file was the expectation spec defined?
693 // Returns the cardinality specified in the expectation spec.
696 // Describes the source file location of this expectation.
702 // expectation has occurred.
735 // expectation.
750 // Explicitly specifies the cardinality of this expectation. Used
758 // Sets the cardinality of this expectation spec.
767 // Retires all pre-requisites of this expectation.
770 // Returns true if and only if this expectation is retired.
776 // Retires this expectation.
782 // Returns a human-readable description of this expectation.
786 // Returns true if and only if this expectation is satisfied.
792 // Returns true if and only if this expectation is saturated.
798 // Returns true if and only if this expectation is over-saturated.
804 // Returns true if and only if all pre-requisites of this expectation are
809 // Adds unsatisfied pre-requisites of this expectation to 'result'.
813 // Returns the number this expectation has been invoked.
819 // Increments the number this expectation has been invoked.
842 const char* file_; // The file that contains the expectation.
843 int line_; // The line number of the expectation.
845 std::string description_; // User-readable name for the expectation.
848 Cardinality cardinality_; // The cardinality of the expectation.
850 // satisfied before this expectation can be matched) of this
851 // expectation. We use std::shared_ptr in the set because we want an
857 // This group of fields are the current state of the expectation,
859 int call_count_; // How many times this expectation has been invoked.
860 bool retired_; // True if and only if this expectation has retired.
873 // Implements an expectation for the given function type.
898 // yet (for example, if the expectation was never used).
1105 // expectation.
1112 // Returns true if and only if this expectation matches the given arguments.
1119 // Returns true if and only if this expectation should handle the given
1125 // In case the action count wasn't checked when the expectation
1126 // was defined (e.g. if this expectation has no WillRepeatedly()
1128 // expectation is used for the first time.
1134 // expectation to the given ostream.
1140 *os << " Expected: the expectation is active\n"
1172 // expectation.
1173 *os << "The call matches the expectation.\n";
1209 // over-saturate this expectation, returns the default action;
1210 // otherwise, returns the next action in this expectation. Also
1264 // specifying the default behavior of, or expectation on, a mock
1301 // Adds a new expectation spec to the function mocker and returns
1531 // Adds and returns an expectation spec for this mock function.
1537 TypedExpectation<F>* const expectation =
1539 const std::shared_ptr<ExpectationBase> untyped_expectation(expectation);
1544 // Adds this expectation into the implicit sequence if there is one.
1550 return *expectation;
1589 // Returns the expectation that matches the given function arguments
1596 // Critical section: We must find the matching expectation and the
1637 // Returns the expectation that matches the arguments, or NULL if no
1638 // expectation matches them.
1656 // Returns a message that the arguments don't match any expectation.
1675 << (count == 1 ? "expectation, but it didn't match"
1679 TypedExpectation<F>* const expectation =
1682 expectation->DescribeLocationTo(why);
1684 *why << "tried expectation #" << i << ": ";
1686 *why << expectation->source_text() << "...\n";
1687 expectation->ExplainMatchResultTo(args, why);
1688 expectation->DescribeCallCountTo(why);
1756 // No expectation is set on this mock method - we have an
1831 // In case the action deletes a piece of the expectation, we
1846 // No expectation matches this call - reports a failure.
1853 // We had an expected call and the matching expectation is
1966 // The expectation spec says that the first Bar("a") must happen
2068 // expectation setter method plus an operator() overload on the MockSpec object.