Home
last modified time | relevance | path

Searched refs:primitiveField (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs141 … FieldDescriptor primitiveField = messageType.FindDescriptor<FieldDescriptor>("single_int32"); in FieldDescriptor()
145 Assert.AreEqual("single_int32", primitiveField.Name); in FieldDescriptor()
147 primitiveField.FullName); in FieldDescriptor()
148 Assert.AreEqual(1, primitiveField.FieldNumber); in FieldDescriptor()
149 Assert.AreEqual(messageType, primitiveField.ContainingType); in FieldDescriptor()
150 Assert.AreEqual(UnittestProto3Reflection.Descriptor, primitiveField.File); in FieldDescriptor()
151 Assert.AreEqual(FieldType.Int32, primitiveField.FieldType); in FieldDescriptor()
152 Assert.IsNull(primitiveField.Proto.Options); in FieldDescriptor()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDescriptorsTest.java196 FieldDescriptor primitiveField = in testFieldDescriptor() local
208 assertEquals("optional_int32", primitiveField.getName()); in testFieldDescriptor()
210 primitiveField.getFullName()); in testFieldDescriptor()
211 assertEquals(1, primitiveField.getNumber()); in testFieldDescriptor()
212 assertEquals(messageType, primitiveField.getContainingType()); in testFieldDescriptor()
213 assertEquals(UnittestProto.getDescriptor(), primitiveField.getFile()); in testFieldDescriptor()
214 assertEquals(FieldDescriptor.Type.INT32, primitiveField.getType()); in testFieldDescriptor()
215 assertEquals(FieldDescriptor.JavaType.INT, primitiveField.getJavaType()); in testFieldDescriptor()
217 primitiveField.getOptions()); in testFieldDescriptor()
218 assertFalse(primitiveField.isExtension()); in testFieldDescriptor()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java197 FieldDescriptor primitiveField = in testFieldDescriptor() local
209 assertEquals("optional_int32", primitiveField.getName()); in testFieldDescriptor()
211 primitiveField.getFullName()); in testFieldDescriptor()
212 assertEquals(1, primitiveField.getNumber()); in testFieldDescriptor()
213 assertEquals(messageType, primitiveField.getContainingType()); in testFieldDescriptor()
214 assertEquals(UnittestProto.getDescriptor(), primitiveField.getFile()); in testFieldDescriptor()
215 assertEquals(FieldDescriptor.Type.INT32, primitiveField.getType()); in testFieldDescriptor()
216 assertEquals(FieldDescriptor.JavaType.INT, primitiveField.getJavaType()); in testFieldDescriptor()
218 primitiveField.getOptions()); in testFieldDescriptor()
219 assertFalse(primitiveField.isExtension()); in testFieldDescriptor()
[all …]