Home
last modified time | relevance | path

Searched refs:OneofFieldCase (Results 1 - 20 of 20) sorted by relevance

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DEnumTest.java50 TestAllTypes.OneofFieldCase e = in testForNumber_oneof()
51 TestAllTypes.OneofFieldCase.forNumber( in testForNumber_oneof()
52 TestAllTypes.OneofFieldCase.ONEOF_NESTED_MESSAGE.getNumber()); in testForNumber_oneof()
53 assertEquals(TestAllTypes.OneofFieldCase.ONEOF_NESTED_MESSAGE, e); in testForNumber_oneof()
55 e = TestAllTypes.OneofFieldCase.forNumber(1000); in testForNumber_oneof()
68 TestAllTypesLite.OneofFieldCase e = in testForNumberLite_oneof()
69 TestAllTypesLite.OneofFieldCase.forNumber( in testForNumberLite_oneof()
70 TestAllTypesLite.OneofFieldCase.ONEOF_NESTED_MESSAGE.getNumber()); in testForNumberLite_oneof()
71 assertEquals(TestAllTypesLite.OneofFieldCase.ONEOF_NESTED_MESSAGE, e); in testForNumberLite_oneof()
73 e = TestAllTypesLite.OneofFieldCase in testForNumberLite_oneof()
[all...]
H A DFieldPresenceTest.java419 assertEquals(TestAllTypes.OneofFieldCase.ONEOF_INT32, message.getOneofFieldCase()); in testSerializeAndParse()
H A DTestUtil.java689 Assert.assertEquals(TestAllTypes.OneofFieldCase.ONEOF_BYTES, message.getOneofFieldCase()); in assertAllFieldsSet()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
H A DWrappersTest.cs264 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.EmptyField, message.OneofFieldCase); in Oneof()
268 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.StringField, message.OneofFieldCase); in Oneof()
272 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.StringField, message.OneofFieldCase); in Oneof()
276 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.DoubleField, message.OneofFieldCase); in Oneof()
280 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.DoubleField, message.OneofFieldCase); in Oneof()
284 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Oneof()
294 Assert.AreEqual(message.OneofFieldCase, parsed.OneofFieldCase); in AssertOneofRoundTrip()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
H A DFieldAccessTest.cs276 Assert.AreEqual(TestProtos.TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Oneof()
341 Assert.AreEqual(TestProtos.TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in Clear_Proto3_Oneof()
343 Assert.AreEqual(TestProtos.TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in Clear_Proto3_Oneof()
346 Assert.AreEqual(TestProtos.TestAllTypes.OneofFieldOneofCase.OneofUint32, message.OneofFieldCase); in Clear_Proto3_Oneof()
348 Assert.AreEqual(TestProtos.TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Clear_Proto3_Oneof()
359 Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in Clear_Proto2_Oneof()
361 Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in Clear_Proto2_Oneof()
364 Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.OneofUint32, message.OneofFieldCase); in Clear_Proto2_Oneof()
366 Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Clear_Proto2_Oneof()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
H A DGeneratedMessageTest.cs109 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in DefaultValues()
562 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in OneofProperties()
569 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in OneofProperties()
577 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofBytes, message.OneofFieldCase); in OneofProperties()
584 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message.OneofFieldCase); in OneofProperties()
592 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofNestedMessage, message.OneofFieldCase); in OneofProperties()
599 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in OneofProperties()
607 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message1.OneofFieldCase); in Oneof_DefaultValuesNotEqual()
608 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in Oneof_DefaultValuesNotEqual()
623 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in OneofSerialization_NonDefaultValue()
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DGeneratedMessageTest.cs110 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in DefaultValues()
608 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in OneofProperties()
615 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in OneofProperties()
623 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofBytes, message.OneofFieldCase); in OneofProperties()
630 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message.OneofFieldCase); in OneofProperties()
638 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofNestedMessage, message.OneofFieldCase); in OneofProperties()
645 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in OneofProperties()
653 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message1.OneofFieldCase); in Oneof_DefaultValuesNotEqual()
654 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in Oneof_DefaultValuesNotEqual()
671 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, parsedMessage.OneofFieldCase); in OneofSerialization_NonDefaultValue()
[all...]
H A DGeneratedMessageTest.Proto2.cs63 Assert.AreEqual(Proto2.TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in DefaultProto2Values()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
H A DWrappersTest.cs271 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.EmptyField, message.OneofFieldCase); in Oneof()
275 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.StringField, message.OneofFieldCase); in Oneof()
279 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.StringField, message.OneofFieldCase); in Oneof()
283 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.DoubleField, message.OneofFieldCase); in Oneof()
287 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.DoubleField, message.OneofFieldCase); in Oneof()
291 Assert.AreEqual(OneofWellKnownTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Oneof()
300 Assert.AreEqual(message.OneofFieldCase, parsed.OneofFieldCase); in AssertOneofRoundTrip()
/third_party/protobuf/java/lite/src/test/java/com/google/protobuf/
H A DLiteTest.java45 import com.google.protobuf.UnittestLite.TestAllTypesLite.OneofFieldCase;
1266 assertEquals(OneofFieldCase.ONEOFFIELD_NOT_SET, message.getOneofFieldCase()); in testSanityCopyOnWrite()
1267 assertEquals(OneofFieldCase.ONEOF_STRING, builder.getOneofFieldCase()); in testSanityCopyOnWrite()
1270 assertEquals(OneofFieldCase.ONEOF_STRING, messageAfterBuild.getOneofFieldCase()); in testSanityCopyOnWrite()
1273 assertEquals(OneofFieldCase.ONEOF_STRING, messageAfterBuild.getOneofFieldCase()); in testSanityCopyOnWrite()
1275 assertEquals(OneofFieldCase.ONEOF_UINT32, builder.getOneofFieldCase()); in testSanityCopyOnWrite()
1278 assertEquals(OneofFieldCase.ONEOF_UINT32, messageOrBuilder.getOneofFieldCase()); in testSanityCopyOnWrite()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
H A DFieldAccessTest.cs198 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Oneof()
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
H A DUnittestWellKnownTypes.cs1788 switch (other.OneofFieldCase) { in OneofWellKnownTypes()
2085 public OneofFieldOneofCase OneofFieldCase { property in Google.Protobuf.TestProtos.OneofWellKnownTypes
2126 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
2377 switch (other.OneofFieldCase) { in MergeFrom()
H A DTestMessagesProto3.cs431 switch (other.OneofFieldCase) { in TestAllTypesProto3()
2080 public OneofFieldOneofCase OneofFieldCase { property in ProtobufTestMessages.Proto3.TestAllTypesProto3
2252 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
3700 switch (other.OneofFieldCase) { in MergeFrom()
H A DTestMessagesProto2.cs391 switch (other.OneofFieldCase) { in TestAllTypesProto2()
2278 public OneofFieldOneofCase OneofFieldCase { property in ProtobufTestMessages.Proto2.TestAllTypesProto2
2419 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
3564 switch (other.OneofFieldCase) { in MergeFrom()
H A DUnittestProto3.cs330 switch (other.OneofFieldCase) { in TestAllTypes()
882 public OneofFieldOneofCase OneofFieldCase { property in Google.Protobuf.TestProtos.TestAllTypes
953 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
1506 switch (other.OneofFieldCase) { in MergeFrom()
H A DUnittest.cs1227 switch (other.OneofFieldCase) { in TestAllTypes()
2631 public OneofFieldOneofCase OneofFieldCase { property in Google.Protobuf.TestProtos.Proto2.TestAllTypes
2729 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
3665 switch (other.OneofFieldCase) { in MergeFrom()
28216 public OneofFieldOneofCase OneofFieldCase { global() property in Google.Protobuf.TestProtos.Proto2.TestHugeFieldNumbers
[all...]
/third_party/protobuf/js/binary/
H A Dproto_test.js228 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING);
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
H A Dproto_test.js226 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING);
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
H A Dproto_test.js226 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING);
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
H A DJsonFormatTest.java474 assertEquals(TestOneof.OneofFieldCase.ONEOF_NULL_VALUE, message.getOneofFieldCase()); in testNullInOneof()

Completed in 96 milliseconds