Home
last modified time | relevance | path

Searched refs:Cardinality (Results 1 – 7 of 7) sorted by relevance

/external/google-breakpad/src/testing/include/gmock/
Dgmock-cardinalities.h83 class GTEST_API_ Cardinality {
87 Cardinality() {} in Cardinality() function
90 explicit Cardinality(const CardinalityInterface* impl) : impl_(impl) {} in Cardinality() function
126 GTEST_API_ Cardinality AtLeast(int n);
129 GTEST_API_ Cardinality AtMost(int n);
132 GTEST_API_ Cardinality AnyNumber();
135 GTEST_API_ Cardinality Between(int min, int max);
138 GTEST_API_ Cardinality Exactly(int n);
141 inline Cardinality MakeCardinality(const CardinalityInterface* c) { in MakeCardinality()
142 return Cardinality(c); in MakeCardinality()
Dgmock-spec-builders.h694 const Cardinality& cardinality() const { return cardinality_; } in cardinality()
744 void SpecifyCardinality(const Cardinality& cardinality);
751 void set_cardinality(const Cardinality& a_cardinality) { in set_cardinality()
834 void UntypedTimes(const Cardinality& a_cardinality);
843 Cardinality cardinality_; // The cardinality of the expectation.
917 TypedExpectation& Times(const Cardinality& a_cardinality) { in Times()
/external/google-breakpad/src/testing/test/
Dgmock-cardinalities_test.cc47 using testing::Cardinality;
64 Cardinality c; in TEST()
70 Cardinality c = Exactly(1); in TEST()
83 const Cardinality c = AtMost(5); in TEST()
93 Cardinality::DescribeActualCallCountTo(0, &ss0); in TEST()
97 Cardinality::DescribeActualCallCountTo(1, &ss1); in TEST()
101 Cardinality::DescribeActualCallCountTo(2, &ss2); in TEST()
105 Cardinality::DescribeActualCallCountTo(3, &ss3); in TEST()
111 const Cardinality c = AnyNumber(); in TEST()
128 const Cardinality c = AnyNumber(); in TEST()
[all …]
Dgmock-spec-builders_test.cc70 using testing::Cardinality;
1823 Cardinality EvenNumber() { in EvenNumber()
1824 return Cardinality(new EvenNumberCardinality); in EvenNumber()
/external/google-breakpad/src/testing/src/
Dgmock-cardinalities.cc130 void Cardinality::DescribeActualCallCountTo(int actual_call_count, in DescribeActualCallCountTo()
140 GTEST_API_ Cardinality AtLeast(int n) { return Between(n, INT_MAX); } in AtLeast()
143 GTEST_API_ Cardinality AtMost(int n) { return Between(0, n); } in AtMost()
146 GTEST_API_ Cardinality AnyNumber() { return AtLeast(0); } in AnyNumber()
149 GTEST_API_ Cardinality Between(int min, int max) { in Between()
150 return Cardinality(new BetweenCardinalityImpl(min, max)); in Between()
154 GTEST_API_ Cardinality Exactly(int n) { return Between(n, n); } in Exactly()
Dgmock-spec-builders.cc89 void ExpectationBase::SpecifyCardinality(const Cardinality& a_cardinality) { in SpecifyCardinality()
158 Cardinality::DescribeActualCallCountTo(call_count(), os); in DescribeCallCountTo()
225 void ExpectationBase::UntypedTimes(const Cardinality& a_cardinality) { in UntypedTimes()
/external/protobuf/src/google/protobuf/
Dextension_set.cc238 enum Cardinality { enum