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_ Definition: gmock-actions.h:53
virtual ~CardinalityInterface()
Definition: gmock-cardinalities.h:61
GTEST_API_ Cardinality AtLeast(int n)
virtual int ConservativeLowerBound() const
Definition: gmock-cardinalities.h:65
GTEST_API_ Cardinality AtMost(int n)
Definition: gmock-cardinalities.h:59
#define GTEST_API_
Definition: gtest-port.h:934
bool IsSaturatedByCallCount(int call_count) const
Definition: gmock-cardinalities.h:103
virtual bool IsSatisfiedByCallCount(int call_count) const =0
void DescribeTo(::std::ostream *os) const
Definition: gmock-cardinalities.h:115
bool IsSatisfiedByCallCount(int call_count) const
Definition: gmock-cardinalities.h:98
int ConservativeUpperBound() const
Definition: gmock-cardinalities.h:95
Definition: gtest-linked_ptr.h:146
virtual bool IsSaturatedByCallCount(int call_count) const =0
Cardinality(const CardinalityInterface *impl)
Definition: gmock-cardinalities.h:90
virtual int ConservativeUpperBound() const
Definition: gmock-cardinalities.h:66
Cardinality MakeCardinality(const CardinalityInterface *c)
Definition: gmock-cardinalities.h:141
virtual void DescribeTo(::std::ostream *os) const =0
GTEST_API_ Cardinality Between(int min, int max)
GTEST_API_ Cardinality Exactly(int n)
GTEST_API_ Cardinality AnyNumber()
bool IsOverSaturatedByCallCount(int call_count) const
Definition: gmock-cardinalities.h:109
Definition: gmock-cardinalities.h:83
int ConservativeLowerBound() const
Definition: gmock-cardinalities.h:94
Cardinality()
Definition: gmock-cardinalities.h:87