Lines Matching refs:Expectation

93 class Expectation;
113 // Helper class for testing the Expectation class template.
207 // Returns an Expectation object that references and co-owns exp,
209 Expectation GetHandleOf(ExpectationBase* exp);
466 // Expectation e1 = EXPECT_CALL(...)...;
474 // - Constness is shallow: a const Expectation object itself cannot
478 class GTEST_API_ Expectation {
481 Expectation();
482 Expectation(Expectation&&) = default;
483 Expectation(const Expectation&) = default;
484 Expectation& operator=(Expectation&&) = default;
485 Expectation& operator=(const Expectation&) = default;
486 ~Expectation();
489 // Expectation e = EXPECT_CALL(...);
493 // Expectation objects, and needs to call the non-const Retire()
495 // Expectation must receive a *non-const* reference to the
497 Expectation(internal::ExpectationBase& exp); // NOLINT
504 bool operator==(const Expectation& rhs) const {
508 bool operator!=(const Expectation& rhs) const { return !(*this == rhs); }
522 // This comparator is needed for putting Expectation objects into a set.
525 bool operator()(const Expectation& lhs, const Expectation& rhs) const {
530 typedef ::std::set<Expectation, Less> Set;
532 Expectation(
560 typedef Expectation::Set::const_iterator const_iterator;
562 // An object stored in the set. This is an alias of Expectation.
563 typedef Expectation::Set::value_type value_type;
572 *this += Expectation(exp);
576 // Expectation and thus must not be explicit. This allows either an
577 // Expectation or an ExpectationSet to be used in .After().
578 ExpectationSet(const Expectation& e) { // NOLINT
585 // Returns true if and only if rhs contains the same set of Expectation
595 ExpectationSet& operator+=(const Expectation& e) {
606 Expectation::Set expectations_;
615 Sequence() : last_expectation_(new Expectation) {}
619 void AddExpectation(const Expectation& expectation) const;
623 std::shared_ptr<Expectation> last_expectation_;
671 // Expectation:
679 // on the template argument of Expectation to the base class.
684 // source_text is the EXPECT_CALL(...) source that created this Expectation.
717 friend class ::testing::Expectation;
734 // Returns an Expectation object that references and co-owns this
736 virtual Expectation GetHandle() = 0;
852 // Expectation object to be co-owned by its FunctionMocker and its
1104 // Returns an Expectation object that references and co-owns this
1106 Expectation GetHandle() override { return owner_->GetHandleOf(this); }
1547 implicit_sequence->AddExpectation(Expectation(untyped_expectation));
2030 // Constructs an Expectation object that references and co-owns exp.
2031 inline Expectation::Expectation(internal::ExpectationBase& exp) // NOLINT