Home
last modified time | relevance | path

Searched refs:Cardinality (Results 1 - 14 of 14) sorted by relevance

/third_party/googletest/googlemock/test/
H A Dgmock-cardinalities_test.cc45 using testing::Cardinality;
61 // Tests that Cardinality objects can be default constructed.
62 TEST(CardinalityTest, IsDefaultConstructable) { Cardinality c; } in TEST()
64 // Tests that Cardinality objects are copyable.
67 Cardinality c = Exactly(1); in TEST()
80 const Cardinality c = AtMost(5); in TEST()
86 // Tests that Cardinality::DescribeActualCallCountTo() creates the
90 Cardinality::DescribeActualCallCountTo(0, &ss0); in TEST()
94 Cardinality::DescribeActualCallCountTo(1, &ss1); in TEST()
98 Cardinality in TEST()
[all...]
H A Dgmock-spec-builders_test.cc1865 Cardinality EvenNumber() { return Cardinality(new EvenNumberCardinality); } in EvenNumber()
/third_party/googletest/googlemock/include/gmock/
H A Dgmock-cardinalities.h58 // 2. a factory function that creates a Cardinality object from a
63 // management as Cardinality objects can now be copied like plain values.
87 // A Cardinality is a copyable and IMMUTABLE (except by assignment)
89 // be called. The implementation of Cardinality is just a std::shared_ptr
90 // to const CardinalityInterface. Don't inherit from Cardinality!
91 class GTEST_API_ Cardinality { class
93 // Constructs a null cardinality. Needed for storing Cardinality
95 Cardinality() {} in Cardinality() function in testing::Cardinality
97 // Constructs a Cardinality from its implementation.
98 explicit Cardinality(cons function in testing::Cardinality
[all...]
H A Dgmock-spec-builders.h694 const Cardinality& cardinality() const { return cardinality_; }
752 void SpecifyCardinality(const Cardinality& cardinality);
759 void set_cardinality(const Cardinality& a_cardinality) {
838 void UntypedTimes(const Cardinality& a_cardinality);
848 Cardinality cardinality_; // The cardinality of the expectation.
932 TypedExpectation& Times(const Cardinality& a_cardinality) {
/third_party/googletest/googlemock/src/
H A Dgmock-cardinalities.cc129 void Cardinality::DescribeActualCallCountTo(int actual_call_count, in DescribeActualCallCountTo()
139 GTEST_API_ Cardinality AtLeast(int n) { return Between(n, INT_MAX); } in AtLeast()
142 GTEST_API_ Cardinality AtMost(int n) { return Between(0, n); } in AtMost()
145 GTEST_API_ Cardinality AnyNumber() { return AtLeast(0); } in AnyNumber()
148 GTEST_API_ Cardinality Between(int min, int max) { in Between()
149 return Cardinality(new BetweenCardinalityImpl(min, max)); in Between()
153 GTEST_API_ Cardinality Exactly(int n) { return Between(n, n); } in Exactly()
H A Dgmock-spec-builders.cc105 void ExpectationBase::SpecifyCardinality(const Cardinality& a_cardinality) { in SpecifyCardinality()
197 Cardinality::DescribeActualCallCountTo(call_count(), os); in GTEST_EXCLUSIVE_LOCK_REQUIRED_()
264 void ExpectationBase::UntypedTimes(const Cardinality& a_cardinality) { in UntypedTimes()
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
H A DType.cs67 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Field), global::Google.Protobuf.WellKnownTypes.Field.Parser, new[]{ "Kind", "Cardinality", "Number", "Name", "TypeUrl", "OneofIndex", "Packed", "Options", "JsonName", "DefaultValue" }, null, new[]{ typeof(global::Google.Protobuf.WellKnownTypes.Field.Types.Kind), typeof(global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality) }, null, null), in TypeReflection()
509 private global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality cardinality_ = global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality.Unknown;
514 public global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality Cardinality { property in Google.Protobuf.WellKnownTypes.Field
648 if (Cardinality != other.Cardinality) return false; in Equals()
664 if (Cardinality != global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality in GetHashCode()
1050 public enum Cardinality { global() enum in Google.Protobuf.WellKnownTypes.Field.Types
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Field/
H A DCardinality.php12 * Protobuf type <code>google.protobuf.Field.Cardinality</code>
14 class Cardinality class
69 class_alias(Cardinality::class, \Google\Protobuf\Field_Cardinality::class);
/third_party/protobuf/php/src/Google/Protobuf/
H A DField_Cardinality.php9 * This class is deprecated. Use Google\Protobuf\Field\Cardinality instead.
14 class_exists(Field\Cardinality::class);
15 @trigger_error('Google\Protobuf\Field_Cardinality is deprecated and will be removed in the next major release. Use Google\Protobuf\Field\Cardinality instead', E_USER_DEPRECATED);
/third_party/protobuf/php/tests/
H A DWellKnownTest.php18 use Google\Protobuf\Field\Cardinality;
215 $m->setCardinality(Cardinality::CARDINALITY_OPTIONAL);
216 $this->assertSame(Cardinality::CARDINALITY_OPTIONAL, $m->getCardinality());
414 ['\Google\Protobuf\Field\Cardinality'],
/third_party/protobuf/src/google/protobuf/
H A Dtype.pb.h597 typedef Field_Cardinality Cardinality; typedef in PROTOBUF_FINAL
598 static constexpr Cardinality CARDINALITY_UNKNOWN =
600 static constexpr Cardinality CARDINALITY_OPTIONAL =
602 static constexpr Cardinality CARDINALITY_REQUIRED =
604 static constexpr Cardinality CARDINALITY_REPEATED =
609 static constexpr Cardinality Cardinality_MIN =
611 static constexpr Cardinality Cardinality_MAX =
621 static_assert(::std::is_same<T, Cardinality>::value || in Cardinality_Name()
627 Cardinality* value) { in Cardinality_Parse()
736 // .google.protobuf.Field.Cardinality cardinalit
[all...]
H A Dgenerated_message_table_driven_lite.h66 enum Cardinality { enum
213 template <typename UnknownFieldHandler, Cardinality cardinality,
300 template <typename UnknownFieldHandler, Cardinality cardinality>
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
H A DFileDescriptor.cs76 ForceReflectionInitialization<Field.Types.Cardinality>(); in FileDescriptor()
/third_party/protobuf/src/google/protobuf/util/
H A Dtype_resolver_util_test.cc81 bool HasField(const Type& type, Field::Cardinality cardinality, in HasField()

Completed in 16 milliseconds