38 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ 39 #define GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ 75 virtual void DescribeTo(::std::ostream* os)
const = 0;
99 return impl_->IsSatisfiedByCallCount(call_count);
104 return impl_->IsSaturatedByCallCount(call_count);
110 return impl_->IsSaturatedByCallCount(call_count) &&
111 !impl_->IsSatisfiedByCallCount(call_count);
115 void DescribeTo(::std::ostream* os)
const { impl_->DescribeTo(os); }
118 static void DescribeActualCallCountTo(
int actual_call_count,
147 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ virtual void DescribeTo(::std::ostream *os) const =0
GTEST_API_ Cardinality AtLeast(int n)
GTEST_API_ Cardinality AtMost(int n)
void DescribeTo(::std::ostream *os) const
virtual int ConservativeUpperBound() const
Cardinality(const CardinalityInterface *impl)
bool IsOverSaturatedByCallCount(int call_count) const
virtual bool IsSatisfiedByCallCount(int call_count) const =0
int ConservativeUpperBound() const
virtual int ConservativeLowerBound() const
virtual ~CardinalityInterface()
Cardinality MakeCardinality(const CardinalityInterface *c)
GTEST_API_ Cardinality Between(int min, int max)
GTEST_API_ Cardinality Exactly(int n)
bool IsSaturatedByCallCount(int call_count) const
GTEST_API_ Cardinality AnyNumber()
virtual bool IsSaturatedByCallCount(int call_count) const =0
bool IsSatisfiedByCallCount(int call_count) const
int ConservativeLowerBound() const