/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | EnumTest.java | 35 import protobuf_unittest.UnittestProto.ForeignEnum; 43 ForeignEnum e = ForeignEnum.forNumber(ForeignEnum.FOREIGN_BAR.getNumber()); in testForNumber() 44 assertEquals(ForeignEnum.FOREIGN_BAR, e); in testForNumber() 46 e = ForeignEnum.forNumber(1000); in testForNumber()
|
D | TestUtil.java | 225 import protobuf_unittest.UnittestProto.ForeignEnum; 345 message.setOptionalForeignEnum(ForeignEnum.FOREIGN_BAZ); in setAllFields() 381 message.addRepeatedForeignEnum(ForeignEnum.FOREIGN_BAR); in setAllFields() 416 message.addRepeatedForeignEnum(ForeignEnum.FOREIGN_BAZ); in setAllFields() 441 message.setDefaultForeignEnum(ForeignEnum.FOREIGN_FOO); in setAllFields() 489 message.setRepeatedForeignEnum(1, ForeignEnum.FOREIGN_FOO); in modifyRepeatedFields() 560 Assert.assertEquals(ForeignEnum.FOREIGN_BAZ, message.getOptionalForeignEnum()); in assertAllFieldsSet() 619 Assert.assertEquals(ForeignEnum.FOREIGN_BAR, message.getRepeatedForeignEnum(0)); in assertAllFieldsSet() 648 Assert.assertEquals(ForeignEnum.FOREIGN_BAZ, message.getRepeatedForeignEnum(1)); in assertAllFieldsSet() 696 Assert.assertEquals(ForeignEnum.FOREIGN_FOO, message.getDefaultForeignEnum()); in assertAllFieldsSet() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/ |
D | SampleMessages.cs | 57 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes() 79 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
|
D | JsonFormatterTest.cs | 80 SingleForeignEnum = ForeignEnum.ForeignBar, in AllSingleFields() 172 var message = new TestAllTypes { SingleForeignEnum = (ForeignEnum) 100 }; in UnknownEnumValueNumeric_SingleField() 179 …age = new TestAllTypes { RepeatedForeignEnum = { ForeignEnum.ForeignBaz, (ForeignEnum) 100, Foreig… in UnknownEnumValueNumeric_RepeatedField() 193 … var message = new TestAllTypes { RepeatedForeignEnum = { (ForeignEnum) 200, (ForeignEnum) 100 } }; in UnknownEnumValue_RepeatedField_AllEntriesUnknown() 543 [TestCase(ForeignEnum.ForeignBar, "'FOREIGN_BAR'")]
|
D | FieldCodecTest.cs | 61 new FieldCodecTestData<ForeignEnum>( 62 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
|
D | GeneratedMessageTest.cs | 69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues() 148 SingleForeignEnum = ForeignEnum.ForeignBar, in RoundTrip_SingleValues() 182 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in RoundTrip_RepeatedValues()
|
D | JsonParserTest.cs | 903 [TestCase("\"FOREIGN_BAR\"", ForeignEnum.ForeignBar)] 904 [TestCase("5", ForeignEnum.ForeignBar)] 905 [TestCase("100", (ForeignEnum)100)] 906 public void EnumValid(string value, ForeignEnum expectedValue) in EnumValid()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/ |
D | testbinary.proto | 62 optional ForeignEnum optional_foreign_enum = 22; 86 repeated ForeignEnum repeated_foreign_enum = 52; 116 enum ForeignEnum { enum 150 optional ForeignEnum extend_optional_foreign_enum = 22; 167 repeated ForeignEnum extend_repeated_foreign_enum = 52; 182 repeated ForeignEnum extend_packed_repeated_foreign_enum = 82
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | unittest_no_field_presence.proto | 77 ForeignEnum optional_foreign_enum = 22; 80 //optional protobuf_unittest.ForeignEnum optional_proto2_enum = 23; 109 repeated ForeignEnum repeated_foreign_enum = 52; 134 enum ForeignEnum { enum
|
D | unittest_proto3.proto | 101 ForeignEnum single_foreign_enum = 22; 130 repeated ForeignEnum repeated_foreign_enum = 52; 162 enum ForeignEnum { enum 234 ForeignEnum EnumField = 3; 239 repeated ForeignEnum RepeatedEnumField = 9; 328 repeated ForeignEnum packed_enum = 103 [packed = true]; 347 repeated ForeignEnum unpacked_enum = 103 [packed = false];
|
D | unittest.proto | 103 optional ForeignEnum optional_foreign_enum = 22; 141 repeated ForeignEnum repeated_foreign_enum = 52; 167 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; 201 enum ForeignEnum { enum 244 optional ForeignEnum optional_foreign_enum_extension = 22; 284 repeated ForeignEnum repeated_foreign_enum_extension = 52; 313 optional ForeignEnum 495 optional ForeignEnum EnumField = 3; 502 repeated ForeignEnum RepeatedEnumField = 9; 717 repeated ForeignEnum packed_enum = 103 [packed = true]; [all …]
|
D | unittest_proto3_lite.proto | 84 ForeignEnum optional_foreign_enum = 22; 127 repeated ForeignEnum repeated_foreign_enum = 52; 163 repeated ForeignEnum packed_enum = 103 [packed = true]; 196 enum ForeignEnum { enum
|
D | unittest_proto3_arena.proto | 84 ForeignEnum optional_foreign_enum = 22; 127 repeated ForeignEnum repeated_foreign_enum = 52; 163 repeated ForeignEnum packed_enum = 103 [packed = true]; 196 enum ForeignEnum { enum
|
D | unittest_proto3_arena_lite.proto | 85 ForeignEnum optional_foreign_enum = 22; 128 repeated ForeignEnum repeated_foreign_enum = 52; 164 repeated ForeignEnum packed_enum = 103 [packed = true]; 197 enum ForeignEnum { enum
|
D | unittest_no_arena.proto | 107 optional ForeignEnum optional_foreign_enum = 22; 145 repeated ForeignEnum repeated_foreign_enum = 52; 171 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; 194 enum ForeignEnum { enum
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/binary/ |
D | proto_test.js | 125 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO); 149 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 221 proto.jspb.test.ForeignEnum.FOREIGN_FOO); 253 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 369 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 413 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 545 proto.jspb.test.ForeignEnum.FOREIGN_FOO); 582 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]); 613 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/ |
D | unittest.proto | 100 optional ForeignEnum optional_foreign_enum = 22; 138 repeated ForeignEnum repeated_foreign_enum = 52; 164 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; 182 enum ForeignEnum { enum 220 optional ForeignEnum optional_foreign_enum_extension = 22; 260 repeated ForeignEnum repeated_foreign_enum_extension = 52; 289 optional ForeignEnum 461 optional ForeignEnum EnumField = 3; 468 repeated ForeignEnum RepeatedEnumField = 9; 578 repeated ForeignEnum packed_enum = 103 [packed = true]; [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/more_protos/src/proto/google/protobuf/ |
D | unittest.proto | 100 optional ForeignEnum optional_foreign_enum = 22; 138 repeated ForeignEnum repeated_foreign_enum = 52; 164 optional ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; 182 enum ForeignEnum { enum 220 optional ForeignEnum optional_foreign_enum_extension = 22; 260 repeated ForeignEnum repeated_foreign_enum_extension = 52; 289 optional ForeignEnum 461 optional ForeignEnum EnumField = 3; 468 repeated ForeignEnum RepeatedEnumField = 9; 578 repeated ForeignEnum packed_enum = 103 [packed = true]; [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | TestUtil.java | 139 import protobuf_unittest.UnittestProto.ForeignEnum; 257 message.setOptionalForeignEnum(ForeignEnum.FOREIGN_BAZ); in setAllFields() 293 message.addRepeatedForeignEnum(ForeignEnum.FOREIGN_BAR); in setAllFields() 328 message.addRepeatedForeignEnum(ForeignEnum.FOREIGN_BAZ); in setAllFields() 353 message.setDefaultForeignEnum(ForeignEnum.FOREIGN_FOO); in setAllFields() 395 message.setRepeatedForeignEnum(1, ForeignEnum.FOREIGN_FOO); in modifyRepeatedFields() 466 Assert.assertEquals(ForeignEnum.FOREIGN_BAZ, message.getOptionalForeignEnum()); in assertAllFieldsSet() 525 Assert.assertEquals(ForeignEnum.FOREIGN_BAR, message.getRepeatedForeignEnum(0)); in assertAllFieldsSet() 554 Assert.assertEquals(ForeignEnum.FOREIGN_BAZ, message.getRepeatedForeignEnum(1)); in assertAllFieldsSet() 602 Assert.assertEquals(ForeignEnum.FOREIGN_FOO, message.getDefaultForeignEnum()); in assertAllFieldsSet() [all …]
|
D | GeneratedMessageTest.java | 49 import protobuf_unittest.UnittestProto.ForeignEnum; 333 builder.addAllRepeatedForeignEnum(Arrays.asList(ForeignEnum.FOREIGN_BAZ)); in testRepeatedAppend() 342 Arrays.asList(ForeignEnum.FOREIGN_BAZ)); in testRepeatedAppend() 362 Arrays.asList(ForeignEnum.FOREIGN_BAZ, null)); in testRepeatedAppendRejectsNull() 485 Internal.EnumLiteMap<ForeignEnum> map = ForeignEnum.internalGetValueMap(); in testEnumMap() 487 for (ForeignEnum value : ForeignEnum.values()) { in testEnumMap()
|
D | DescriptorsTest.java | 52 import protobuf_unittest.UnittestProto.ForeignEnum; 113 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testFileDescriptor() 293 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testEnumDescriptor() 309 EnumValueDescriptor value = ForeignEnum.FOREIGN_FOO.getValueDescriptor(); in testEnumDescriptor()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/ |
D | conformance.proto | 154 ForeignEnum optional_foreign_enum = 22; 182 repeated ForeignEnum repeated_foreign_enum = 52; 206 map < string, ForeignEnum> map_string_foreign_enum = 74; 269 enum ForeignEnum { enum
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | symbol_database_test.py | 61 db.RegisterEnumDescriptor(unittest_pb2.ForeignEnum.DESCRIPTOR)
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/TestProtos/ |
D | UnittestProto3.cs | 154 …:GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.ForeignEnum), typeof(global… in UnittestProto3Reflection() 194 public enum ForeignEnum { enum 541 private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = 0; 543 public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum { 770 …private static readonly pb::FieldCodec<global::Google.Protobuf.TestProtos.ForeignEnum> _repeated_r… 771 …pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x); 772 …gle.Protobuf.TestProtos.ForeignEnum> repeatedForeignEnum_ = new pbc::RepeatedField<global::Google.… 774 public pbc::RepeatedField<global::Google.Protobuf.TestProtos.ForeignEnum> RepeatedForeignEnum { 1443 singleForeignEnum_ = (global::Google.Protobuf.TestProtos.ForeignEnum) input.ReadEnum(); in MergeFrom() 3009 private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = 0; [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 131 …elds[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.SetValue(message, ForeignEnum.ForeignFoo); in SetValue_SingleFields() 141 SingleForeignEnum = ForeignEnum.ForeignFoo, in SetValue_SingleFields()
|