38 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ 39 #define GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ 44 #include "gtest/gtest.h" 60 class CardinalityInterface
77 virtual void DescribeTo(::std::ostream * os)
const = 0;
103 return impl_->IsSatisfiedByCallCount(call_count);
109 return impl_->IsSaturatedByCallCount(call_count);
116 return impl_->IsSaturatedByCallCount(call_count) &&
117 !impl_->IsSatisfiedByCallCount(call_count);
121 void DescribeTo(::std::ostream * os)
const { impl_->DescribeTo(os); }
124 static void DescribeActualCallCountTo(
int actual_call_count,
125 ::std::ostream * os);
149 return Cardinality(c);
154 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_
GTEST_API_ Cardinality AtLeast(int n)
GTEST_API_ Cardinality AtMost(int n)
void DescribeTo(::std::ostream *os) const
virtual bool IsSatisfiedByCallCount(int call_count) const =0
virtual int ConservativeUpperBound() const
Cardinality(const CardinalityInterface *impl)
bool IsOverSaturatedByCallCount(int call_count) const
virtual bool IsSaturatedByCallCount(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()
bool IsSatisfiedByCallCount(int call_count) const
virtual void DescribeTo(::std::ostream *os) const =0
int ConservativeLowerBound() const