Home
last modified time | relevance | path

Searched refs:ForeignEnum (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DEnumTest.java35 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()
DTestUtil.java225 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/
DSampleMessages.cs57 SingleForeignEnum = ForeignEnum.ForeignBar, in CreateFullTestAllTypes()
79 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in CreateFullTestAllTypes()
DJsonFormatterTest.cs80 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'")]
DFieldCodecTest.cs61 new FieldCodecTestData<ForeignEnum>(
62 … FieldCodec.ForEnum(100, t => (int) t, t => (ForeignEnum) t), ForeignEnum.ForeignBaz, "Enum"),
DGeneratedMessageTest.cs69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues()
148 SingleForeignEnum = ForeignEnum.ForeignBar, in RoundTrip_SingleValues()
182 RepeatedForeignEnum = { ForeignEnum.ForeignFoo, ForeignEnum.ForeignBar }, in RoundTrip_RepeatedValues()
DJsonParserTest.cs903 [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/
Dtestbinary.proto62 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/
Dunittest_no_field_presence.proto77 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
Dunittest_proto3.proto101 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];
Dunittest.proto103 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 …]
Dunittest_proto3_lite.proto84 ForeignEnum optional_foreign_enum = 22;
127 repeated ForeignEnum repeated_foreign_enum = 52;
163 repeated ForeignEnum packed_enum = 103 [packed = true];
196 enum ForeignEnum { enum
Dunittest_proto3_arena.proto84 ForeignEnum optional_foreign_enum = 22;
127 repeated ForeignEnum repeated_foreign_enum = 52;
163 repeated ForeignEnum packed_enum = 103 [packed = true];
196 enum ForeignEnum { enum
Dunittest_proto3_arena_lite.proto85 ForeignEnum optional_foreign_enum = 22;
128 repeated ForeignEnum repeated_foreign_enum = 52;
164 repeated ForeignEnum packed_enum = 103 [packed = true];
197 enum ForeignEnum { enum
Dunittest_no_arena.proto107 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/
Dproto_test.js125 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/
Dunittest.proto100 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/
Dunittest.proto100 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/
DTestUtil.java139 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 …]
DGeneratedMessageTest.java49 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()
DDescriptorsTest.java52 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/
Dconformance.proto154 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/
Dsymbol_database_test.py61 db.RegisterEnumDescriptor(unittest_pb2.ForeignEnum.DESCRIPTOR)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestProto3.cs154 …: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/
DFieldAccessTest.cs131 …elds[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.SetValue(message, ForeignEnum.ForeignFoo); in SetValue_SingleFields()
141 SingleForeignEnum = ForeignEnum.ForeignFoo, in SetValue_SingleFields()

12