/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | LegacyGeneratedCodeTest.cs | 53 Bb = new ParseContextEnabledMessageB { OptionalInt32 = 12345 } in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream() 55 OptionalInt32 = 6789 in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream() 67 Assert.AreEqual(12345, parsed.A.Bb.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream() 68 Assert.AreEqual(6789, parsed.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedInputStream() 78 Bb = new ParseContextEnabledMessageB { OptionalInt32 = 12345 } in LegacyGeneratedCodeThrowsWithReadOnlySequence() 80 OptionalInt32 = 6789 in LegacyGeneratedCodeThrowsWithReadOnlySequence() 110 Bb = new ParseContextEnabledMessageB { OptionalInt32 = 12345 } in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream() 112 OptionalInt32 = 6789 in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream() 122 Assert.AreEqual(12345, parsed.A.Bb.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream() 123 Assert.AreEqual(6789, parsed.OptionalInt32); in IntermixingOfNewAndLegacyGeneratedCodeWorksWithCodedOutputStream() [all …]
|
D | Proto3OptionalTest.cs | 48 Assert.AreEqual(0, message.OptionalInt32); in OptionalInt32FieldLifecycle() 50 message.OptionalInt32 = 5; in OptionalInt32FieldLifecycle() 52 Assert.AreEqual(5, message.OptionalInt32); in OptionalInt32FieldLifecycle() 54 message.OptionalInt32 = 0; in OptionalInt32FieldLifecycle() 56 Assert.AreEqual(0, message.OptionalInt32); in OptionalInt32FieldLifecycle() 60 Assert.AreEqual(0, message.OptionalInt32); in OptionalInt32FieldLifecycle() 92 Assert.AreEqual(0, clone.OptionalInt32); in Clone() 110 var message = new TestProto3Optional { OptionalInt32 = 0 }; in Serialization_SetToDefault() 124 Assert.AreEqual(0, deserialized.OptionalInt32); in Serialization_Roundtrip() 137 var message1 = new TestProto3Optional { OptionalInt32 = 0 }; in Equality_IgnoresPresence()
|
D | SampleMessages.cs | 116 OptionalInt32 = 100, in CreateFullTestAllTypesProto2()
|
D | JsonFormatterTest.cs | 172 message.OptionalInt32 = 0; in WithFormatDefaultValues_DoesNotAffectProto3OptionalFields()
|
D | GeneratedMessageTest.Proto2.cs | 28 Assert.AreEqual(0, message.OptionalInt32); in DefaultProto2Values()
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
D | UnittestProto3Optional.cs | 137 public int OptionalInt32 { property in ProtobufUnittest.TestProto3Optional 564 if (OptionalInt32 != other.OptionalInt32) return false; in Equals() 591 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode() 630 output.WriteInt32(OptionalInt32); in WriteTo() 723 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo() 815 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize() 889 OptionalInt32 = other.OptionalInt32; in MergeFrom() 972 OptionalInt32 = input.ReadInt32(); in MergeFrom() 1076 OptionalInt32 = input.ReadInt32(); in IBufferMessage.InternalMergeFrom()
|
D | TestMessagesProto2.cs | 439 public int OptionalInt32 { property in ProtobufTestMessages.Proto2.TestAllTypesProto2 2301 if (OptionalInt32 != other.OptionalInt32) return false; in Equals() 2429 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode() 2569 output.WriteInt32(OptionalInt32); in WriteTo() 2850 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo() 3130 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize() 3362 OptionalInt32 = other.OptionalInt32; in MergeFrom() 3615 OptionalInt32 = input.ReadInt32(); in MergeFrom() 4164 OptionalInt32 = input.ReadInt32(); in IBufferMessage.InternalMergeFrom() 6028 public int OptionalInt32 { property in ProtobufTestMessages.Proto2.UnknownToTestAllTypes [all …]
|
D | TestMessagesProto3.cs | 476 public int OptionalInt32 { property in ProtobufTestMessages.Proto3.TestAllTypesProto3 2103 if (OptionalInt32 != other.OptionalInt32) return false; in Equals() 2259 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); in GetHashCode() 2425 if (OptionalInt32 != 0) { in WriteTo() 2427 output.WriteInt32(OptionalInt32); in WriteTo() 2769 if (OptionalInt32 != 0) { in IBufferMessage.InternalWriteTo() 2771 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo() 3113 if (OptionalInt32 != 0) { in CalculateSize() 3114 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize() 3403 if (other.OptionalInt32 != 0) { in MergeFrom() [all …]
|
D | UnittestProto3.cs | 3797 public int OptionalInt32 { property in Google.Protobuf.TestProtos.TestMutualRecursionB 3818 if (OptionalInt32 != other.OptionalInt32) return false; in Equals() 3826 if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode(); in GetHashCode() 3847 if (OptionalInt32 != 0) { in WriteTo() 3849 output.WriteInt32(OptionalInt32); in WriteTo() 3864 if (OptionalInt32 != 0) { in IBufferMessage.InternalWriteTo() 3866 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo() 3880 if (OptionalInt32 != 0) { in CalculateSize() 3881 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize() 3900 if (other.OptionalInt32 != 0) { in MergeFrom() [all …]
|
D | Unittest.cs | 1259 public int OptionalInt32 { property in Google.Protobuf.TestProtos.Proto2.TestAllTypes 2654 if (OptionalInt32 != other.OptionalInt32) return false; in Equals() 2736 if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); in GetHashCode() 2830 output.WriteInt32(OptionalInt32); in WriteTo() 3065 output.WriteInt32(OptionalInt32); in IBufferMessage.InternalWriteTo() 3299 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); in CalculateSize() 3485 OptionalInt32 = other.OptionalInt32; in MergeFrom() 3698 OptionalInt32 = input.ReadInt32(); in MergeFrom() 4051 OptionalInt32 = input.ReadInt32(); in IBufferMessage.InternalMergeFrom() 11737 public int OptionalInt32 { property in Google.Protobuf.TestProtos.Proto2.TestMutualRecursionB [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 317 OptionalInt32 = 0, in Clear_Proto3Optional()
|