Home
last modified time | relevance | path

Searched refs:DefaultValue (Results 1 – 25 of 63) sorted by relevance

123

/third_party/googletest/googlemock/test/
Dgmock-actions_test.cc65 using ::testing::DefaultValue;
243 EXPECT_FALSE(DefaultValue<int>::IsSet()); in TEST()
244 EXPECT_FALSE(DefaultValue<MyDefaultConstructible>::IsSet()); in TEST()
245 EXPECT_FALSE(DefaultValue<const MyNonDefaultConstructible>::IsSet()); in TEST()
250 EXPECT_TRUE(DefaultValue<int>::Exists()); in TEST()
251 EXPECT_FALSE(DefaultValue<const MyNonDefaultConstructible>::Exists()); in TEST()
253 DefaultValue<int>::Set(1); in TEST()
254 DefaultValue<const MyNonDefaultConstructible>::Set( in TEST()
257 EXPECT_EQ(1, DefaultValue<int>::Get()); in TEST()
258 EXPECT_EQ(42, DefaultValue<const MyNonDefaultConstructible>::Get().value()); in TEST()
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DFieldCodecTest.cs87 public void DefaultValue(ICodecTestData codec) in DefaultValue() method in Google.Protobuf.FieldCodecTest
171 codec.WriteTagAndValue(codedOutput, codec.DefaultValue); in TestDefaultValue()
174 Assert.AreEqual(0, codec.CalculateSizeWithTag(codec.DefaultValue)); in TestDefaultValue()
177 Assert.AreEqual(default(T), codec.DefaultValue); in TestDefaultValue()
181 if (codec.DefaultValue != null) // This part isn't appropriate for message types. in TestDefaultValue()
188 codec.ValueWriter(ref ctx, codec.DefaultValue); in TestDefaultValue()
196 Assert.AreEqual(stream.Position, codec.ValueSizeCalculator(codec.DefaultValue)); in TestDefaultValue()
199 Assert.AreEqual(codec.DefaultValue, codec.Read(codedInput)); in TestDefaultValue()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DFieldCodecTest.cs87 public void DefaultValue(ICodecTestData codec) in DefaultValue() method in Google.Protobuf.FieldCodecTest
174 codec.WriteTagAndValue(codedOutput, codec.DefaultValue); in TestDefaultValue()
177 Assert.AreEqual(0, codec.CalculateSizeWithTag(codec.DefaultValue)); in TestDefaultValue()
180 Assert.AreEqual(default(T), codec.DefaultValue); in TestDefaultValue()
185 if (codec.DefaultValue != null) // This part isn't appropriate for message types. in TestDefaultValue()
192 codec.ValueWriter(ref ctx, codec.DefaultValue); in TestDefaultValue()
201 Assert.AreEqual(stream.Position, codec.ValueSizeCalculator(codec.DefaultValue)); in TestDefaultValue()
204 Assert.AreEqual(codec.DefaultValue, codec.Read(codedInput)); in TestDefaultValue()
/third_party/abseil-cpp/absl/flags/
Dflag_test.cc390 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_01).DefaultValue(), in TEST_F()
392 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_02).DefaultValue(), in TEST_F()
394 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_03).DefaultValue(), in TEST_F()
396 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_04).DefaultValue(), in TEST_F()
398 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_05).DefaultValue(), in TEST_F()
400 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_06).DefaultValue(), in TEST_F()
402 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_07).DefaultValue(), in TEST_F()
404 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_08).DefaultValue(), in TEST_F()
406 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_09).DefaultValue(), in TEST_F()
408 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_10).DefaultValue(), in TEST_F()
[all …]
Dcommandlineflag_test.cc106 EXPECT_EQ(flag_01->DefaultValue(), "201"); in TEST_F()
113 EXPECT_EQ(flag_02->DefaultValue(), "dflt"); in TEST_F()
190 EXPECT_EQ(flag_01->DefaultValue(), "111"); in TEST_F()
197 EXPECT_EQ(flag_02->DefaultValue(), "abc"); in TEST_F()
Dflag.h141 std::string DefaultValue() const { return GetImpl().DefaultValue(); }
Dcommandlineflag.h141 virtual std::string DefaultValue() const = 0;
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/
Dflag_test.cc393 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_01).DefaultValue(), in TEST_F()
395 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_02).DefaultValue(), in TEST_F()
397 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_03).DefaultValue(), in TEST_F()
399 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_04).DefaultValue(), in TEST_F()
401 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_05).DefaultValue(), in TEST_F()
403 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_06).DefaultValue(), in TEST_F()
405 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_07).DefaultValue(), in TEST_F()
407 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_08).DefaultValue(), in TEST_F()
409 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_09).DefaultValue(), in TEST_F()
411 EXPECT_EQ(absl::GetFlagReflectionHandle(FLAGS_test_flag_10).DefaultValue(), in TEST_F()
[all …]
Dcommandlineflag_test.cc106 EXPECT_EQ(flag_01->DefaultValue(), "201"); in TEST_F()
113 EXPECT_EQ(flag_02->DefaultValue(), "dflt"); in TEST_F()
190 EXPECT_EQ(flag_01->DefaultValue(), "111"); in TEST_F()
197 EXPECT_EQ(flag_02->DefaultValue(), "abc"); in TEST_F()
Dflag.h141 std::string DefaultValue() const { return GetImpl().DefaultValue(); }
Dcommandlineflag.h141 virtual std::string DefaultValue() const = 0;
/third_party/protobuf/csharp/src/Google.Protobuf/
DExtension.cs80 internal TValue DefaultValue => codec.DefaultValue; field in Google.Protobuf.Extension
DFieldCodec.cs600 T value = codec.DefaultValue;
742 internal T DefaultValue { get; }
794 DefaultValue = defaultValue;
879 private bool IsDefault(T value) => EqualityComparer.Equals(value, DefaultValue);
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dknobs_init.h99 auto knobValue = knob.DefaultValue(); in InitKnob()
106 knob.Value(knob.DefaultValue()); in InitKnob()
/third_party/protobuf/python/google/protobuf/internal/
Dtype_checkers.py157 def DefaultValue(self): member in TypeCheckerWithDefault
180 def DefaultValue(self): member in IntValueChecker
200 def DefaultValue(self): member in EnumValueChecker
236 def DefaultValue(self): member in UnicodeValueChecker
295 def DefaultValue(self): member in FloatValueChecker
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DType.cs627 public string DefaultValue { property in Google.Protobuf.WellKnownTypes.Field
656 if (DefaultValue != other.DefaultValue) return false; in Equals()
672 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); in GetHashCode()
722 if (DefaultValue.Length != 0) { in WriteTo()
724 output.WriteString(DefaultValue); in WriteTo()
768 if (DefaultValue.Length != 0) { in IBufferMessage.InternalWriteTo()
770 output.WriteString(DefaultValue); in IBufferMessage.InternalWriteTo()
806 if (DefaultValue.Length != 0) { in CalculateSize()
807 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); in CalculateSize()
845 if (other.DefaultValue.Length != 0) { in MergeFrom()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_extension.cc159 DefaultValue(options_, descriptor_)); in GenerateDefinition()
166 default_str = DefaultValue(options_, descriptor_); in GenerateDefinition()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_map_field.cc98 (*variables)["key_default_value"] = DefaultValue(key, true, name_resolver); in SetMessageVariables()
113 DefaultValue(value, true, name_resolver) + ".getNumber()"; in SetMessageVariables()
124 DefaultValue(value, true, name_resolver); in SetMessageVariables()
131 DefaultValue(value, true, name_resolver); in SetMessageVariables()
Djava_map_field_lite.cc94 (*variables)["key_default_value"] = DefaultValue(key, true, name_resolver); in SetMessageVariables()
108 DefaultValue(value, true, name_resolver) + ".getNumber()"; in SetMessageVariables()
119 DefaultValue(value, true, name_resolver); in SetMessageVariables()
126 DefaultValue(value, true, name_resolver); in SetMessageVariables()
Djava_helpers.h236 std::string DefaultValue(const FieldDescriptor* field, bool immutable,
240 return DefaultValue(field, true, name_resolver); in ImmutableDefaultValue()
Djava_extension.cc77 : DefaultValue(descriptor, immutable, name_resolver); in InitTemplateVars()
/third_party/libxml2/os400/libxmlrpg/
Dglobals.rpgle514 d DefaultValue')
519 d DefaultValue')
524 d DefaultValue')
529 d DefaultValue')
534 d DefaultValue')
539 d DefaultValue')
/third_party/googletest/docs/
Dgmock_cheat_sheet.md137 [`DefaultValue<T>`](reference/mocking.md#DefaultValue). For example:
142 DefaultValue<std::unique_ptr<Buzz>>::SetFactory(
157 DefaultValue<std::unique_ptr<Buzz>>::Clear();
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/
Dgen_knobs.h83 static _type DefaultValue() { return (m_default); } \\ in DefaultValue() function
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_extension.cc111 vars["default"] = DefaultValue(descriptor_); in GenerateStaticVariablesInitialization()

123