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,
146 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ bool IsSatisfiedByCallCount(int call_count) const
Definition: gmock-cardinalities.h:98
Definition: gmock-actions.h:49
Cardinality Between(int min, int max)
Definition: gmock-cardinalities.cc:148
virtual ~CardinalityInterface()
Definition: gmock-cardinalities.h:61
void DescribeTo(::std::ostream *os) const
Definition: gmock-cardinalities.h:115
int ConservativeUpperBound() const
Definition: gmock-cardinalities.h:95
Definition: gmock-cardinalities.h:59
virtual int ConservativeUpperBound() const
Definition: gmock-cardinalities.h:66
int ConservativeLowerBound() const
Definition: gmock-cardinalities.h:94
virtual bool IsSatisfiedByCallCount(int call_count) const =0
bool IsOverSaturatedByCallCount(int call_count) const
Definition: gmock-cardinalities.h:109
Cardinality AtLeast(int n)
Definition: gmock-cardinalities.cc:139
Definition: gtest-linked_ptr.h:136
virtual bool IsSaturatedByCallCount(int call_count) const =0
Cardinality(const CardinalityInterface *impl)
Definition: gmock-cardinalities.h:90
Cardinality MakeCardinality(const CardinalityInterface *c)
Definition: gmock-cardinalities.h:140
virtual void DescribeTo(::std::ostream *os) const =0
virtual int ConservativeLowerBound() const
Definition: gmock-cardinalities.h:65
Cardinality AnyNumber()
Definition: gmock-cardinalities.cc:145
internal::linked_ptr< const CardinalityInterface > impl_
Definition: gmock-cardinalities.h:121
Definition: gmock-cardinalities.h:83
bool IsSaturatedByCallCount(int call_count) const
Definition: gmock-cardinalities.h:103
Cardinality AtMost(int n)
Definition: gmock-cardinalities.cc:142
Cardinality()
Definition: gmock-cardinalities.h:87
Cardinality Exactly(int n)
Definition: gmock-cardinalities.cc:153