38 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ 39 #define GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ 43 #include "gmock/internal/gmock-port.h" 44 #include "gtest/gtest.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_
GTEST_API_ Cardinality AtLeast(int n)
internal::linked_ptr< const CardinalityInterface > impl_
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