Home
last modified time | relevance | path

Searched refs:OneofFieldCase (Results 1 – 11 of 11) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DEnumTest.java51 TestAllTypes.OneofFieldCase e = 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 = TestAllTypesLite.OneofFieldCase.forNumber( in testForNumberLite_oneof()
69 TestAllTypesLite.OneofFieldCase.ONEOF_NESTED_MESSAGE.getNumber()); in testForNumberLite_oneof()
70 assertEquals(TestAllTypesLite.OneofFieldCase.ONEOF_NESTED_MESSAGE, e); in testForNumberLite_oneof()
72 e = TestAllTypesLite.OneofFieldCase.forNumber(1000); in testForNumberLite_oneof()
DLiteTest.java45 import com.google.protobuf.UnittestLite.TestAllTypesLite.OneofFieldCase;
1360 OneofFieldCase.ONEOFFIELD_NOT_SET, message.getOneofFieldCase()); in testSanityCopyOnWrite()
1361 assertEquals(OneofFieldCase.ONEOF_STRING, builder.getOneofFieldCase()); in testSanityCopyOnWrite()
1365 OneofFieldCase.ONEOF_STRING, messageAfterBuild.getOneofFieldCase()); in testSanityCopyOnWrite()
1369 OneofFieldCase.ONEOF_STRING, messageAfterBuild.getOneofFieldCase()); in testSanityCopyOnWrite()
1371 assertEquals(OneofFieldCase.ONEOF_UINT32, builder.getOneofFieldCase()); in testSanityCopyOnWrite()
1374 assertEquals(OneofFieldCase.ONEOF_UINT32, messageOrBuilder.getOneofFieldCase()); in testSanityCopyOnWrite()
DFieldPresenceTest.java281 TestAllTypes.OneofFieldCase.ONEOF_INT32, message.getOneofFieldCase()); in testSerializeAndParse()
DTestUtil.java702 Assert.assertEquals(TestAllTypes.OneofFieldCase.ONEOF_BYTES, message.getOneofFieldCase()); in assertAllFieldsSet()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
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()
/external/protobuf/csharp/src/Google.Protobuf.Test/
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 …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs198 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Oneof()
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestWellKnownTypes.cs1322 switch (other.OneofFieldCase) { in OneofWellKnownTypes()
1598 public OneofFieldOneofCase OneofFieldCase { property in Google.Protobuf.TestProtos.OneofWellKnownTypes
1636 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
1797 switch (other.OneofFieldCase) { in MergeFrom()
DUnittestProto3.cs302 switch (other.OneofFieldCase) { in TestAllTypes()
803 public OneofFieldOneofCase OneofFieldCase { property in Google.Protobuf.TestProtos.TestAllTypes
871 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
1271 switch (other.OneofFieldCase) { in MergeFrom()
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DConformance.cs851 switch (other.OneofFieldCase) { in TestAllTypes()
1931 public OneofFieldOneofCase OneofFieldCase { property in Conformance.TestAllTypes
2059 if (OneofFieldCase != other.OneofFieldCase) return false; in Equals()
2912 switch (other.OneofFieldCase) { in MergeFrom()
/external/protobuf/js/binary/
Dproto_test.js226 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING);