Home
last modified time | relevance | path

Searched refs:SampleEnum (Results 1 – 25 of 28) sorted by relevance

12

/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dmap_test.proto103 enum SampleEnum { enum
107 map<string, SampleEnum> if = 1;
108 map<string, SampleEnum> const = 2;
109 map<string, SampleEnum> private = 3;
110 map<string, SampleEnum> class = 4;
111 map<string, SampleEnum> int = 5;
112 map<string, SampleEnum> void = 6;
114 map<string, SampleEnum> string = 7;
115 map<string, SampleEnum> package = 8;
117 map<string, SampleEnum> enum = 9;
[all …]
Dmap_lite_test.proto104 enum SampleEnum { enum
108 map<string, SampleEnum> if = 1;
109 map<string, SampleEnum> const = 2;
110 map<string, SampleEnum> private = 3;
111 map<string, SampleEnum> class = 4;
112 map<string, SampleEnum> int = 5;
113 map<string, SampleEnum> void = 6;
115 map<string, SampleEnum> string = 7;
116 map<string, SampleEnum> package = 8;
118 map<string, SampleEnum> enum = 9;
[all …]
Dmap_for_proto2_test.proto112 enum SampleEnum { enum
116 map<string, SampleEnum> if = 1;
117 map<string, SampleEnum> const = 2;
118 map<string, SampleEnum> private = 3;
119 map<string, SampleEnum> class = 4;
120 map<string, SampleEnum> int = 5;
121 map<string, SampleEnum> void = 6;
123 map<string, SampleEnum> string = 7;
124 map<string, SampleEnum> package = 8;
126 map<string, SampleEnum> enum = 9;
[all …]
Dmap_for_proto2_lite_test.proto110 enum SampleEnum { enum
114 map<string, SampleEnum> if = 1;
115 map<string, SampleEnum> const = 2;
116 map<string, SampleEnum> private = 3;
117 map<string, SampleEnum> class = 4;
118 map<string, SampleEnum> int = 5;
119 map<string, SampleEnum> void = 6;
121 map<string, SampleEnum> string = 7;
122 map<string, SampleEnum> package = 8;
124 map<string, SampleEnum> enum = 9;
[all …]
/external/cronet/third_party/protobuf/java/core/src/test/proto/com/google/protobuf/
Dmap_for_proto2_test.proto112 enum SampleEnum { enum
116 map<string, SampleEnum> if = 1;
117 map<string, SampleEnum> const = 2;
118 map<string, SampleEnum> private = 3;
119 map<string, SampleEnum> class = 4;
120 map<string, SampleEnum> int = 5;
121 map<string, SampleEnum> void = 6;
123 map<string, SampleEnum> string = 7;
124 map<string, SampleEnum> package = 8;
126 map<string, SampleEnum> enum = 9;
[all …]
Dmap_lite_test.proto104 enum SampleEnum { enum
108 map<string, SampleEnum> if = 1;
109 map<string, SampleEnum> const = 2;
110 map<string, SampleEnum> private = 3;
111 map<string, SampleEnum> class = 4;
112 map<string, SampleEnum> int = 5;
113 map<string, SampleEnum> void = 6;
115 map<string, SampleEnum> string = 7;
116 map<string, SampleEnum> package = 8;
118 map<string, SampleEnum> enum = 9;
[all …]
Dmap_test.proto103 enum SampleEnum { enum
107 map<string, SampleEnum> if = 1;
108 map<string, SampleEnum> const = 2;
109 map<string, SampleEnum> private = 3;
110 map<string, SampleEnum> class = 4;
111 map<string, SampleEnum> int = 5;
112 map<string, SampleEnum> void = 6;
114 map<string, SampleEnum> string = 7;
115 map<string, SampleEnum> package = 8;
117 map<string, SampleEnum> enum = 9;
[all …]
Dmap_for_proto2_lite_test.proto110 enum SampleEnum { enum
114 map<string, SampleEnum> if = 1;
115 map<string, SampleEnum> const = 2;
116 map<string, SampleEnum> private = 3;
117 map<string, SampleEnum> class = 4;
118 map<string, SampleEnum> int = 5;
119 map<string, SampleEnum> void = 6;
121 map<string, SampleEnum> string = 7;
122 map<string, SampleEnum> package = 8;
124 map<string, SampleEnum> enum = 9;
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs547 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumArray()
548 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumArray()
551 Assert.AreEqual(SampleEnum.None, values[0]); in TestNegativeEnumArray()
552 Assert.AreEqual(((SampleEnum)(-1)), values[1]); in TestNegativeEnumArray()
553 Assert.AreEqual(SampleEnum.NegativeValue, values[2]); in TestNegativeEnumArray()
554 Assert.AreEqual(((SampleEnum)(-3)), values[3]); in TestNegativeEnumArray()
555 Assert.AreEqual(((SampleEnum)(-4)), values[4]); in TestNegativeEnumArray()
556 Assert.AreEqual(((SampleEnum)(-5)), values[5]); in TestNegativeEnumArray()
585 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumPackedArray()
586 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumPackedArray()
[all …]
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs547 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumArray()
548 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumArray()
551 Assert.AreEqual(SampleEnum.None, values[0]); in TestNegativeEnumArray()
552 Assert.AreEqual(((SampleEnum)(-1)), values[1]); in TestNegativeEnumArray()
553 Assert.AreEqual(SampleEnum.NegativeValue, values[2]); in TestNegativeEnumArray()
554 Assert.AreEqual(((SampleEnum)(-3)), values[3]); in TestNegativeEnumArray()
555 Assert.AreEqual(((SampleEnum)(-4)), values[4]); in TestNegativeEnumArray()
556 Assert.AreEqual(((SampleEnum)(-5)), values[5]); in TestNegativeEnumArray()
585 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumPackedArray()
586 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumPackedArray()
[all …]
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs548 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumArray()
549 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumArray()
552 Assert.AreEqual(SampleEnum.None, values[0]); in TestNegativeEnumArray()
553 Assert.AreEqual(((SampleEnum)(-1)), values[1]); in TestNegativeEnumArray()
554 Assert.AreEqual(SampleEnum.NegativeValue, values[2]); in TestNegativeEnumArray()
555 Assert.AreEqual(((SampleEnum)(-3)), values[3]); in TestNegativeEnumArray()
556 Assert.AreEqual(((SampleEnum)(-4)), values[4]); in TestNegativeEnumArray()
557 Assert.AreEqual(((SampleEnum)(-5)), values[5]); in TestNegativeEnumArray()
586 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumPackedArray()
587 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumPackedArray()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs548 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumArray()
549 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumArray()
552 Assert.AreEqual(SampleEnum.None, values[0]); in TestNegativeEnumArray()
553 Assert.AreEqual(((SampleEnum)(-1)), values[1]); in TestNegativeEnumArray()
554 Assert.AreEqual(SampleEnum.NegativeValue, values[2]); in TestNegativeEnumArray()
555 Assert.AreEqual(((SampleEnum)(-3)), values[3]); in TestNegativeEnumArray()
556 Assert.AreEqual(((SampleEnum)(-4)), values[4]); in TestNegativeEnumArray()
557 Assert.AreEqual(((SampleEnum)(-5)), values[5]); in TestNegativeEnumArray()
586 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumPackedArray()
587 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumPackedArray()
[all …]
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DReflectionUtil.cs67 ForceInitialize<SampleEnum>(); in ReflectionUtil()
357 public enum SampleEnum enum in Google.Protobuf.Reflection.ReflectionUtil
363 public static SampleEnum SampleEnumMethod() => SampleEnum.X; in SampleEnumMethod()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DReflectionUtil.cs67 ForceInitialize<SampleEnum>(); in ReflectionUtil()
357 public enum SampleEnum enum in Google.Protobuf.Reflection.ReflectionUtil
363 public static SampleEnum SampleEnumMethod() => SampleEnum.X; in SampleEnumMethod()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DSampleEnum.cs36 internal enum SampleEnum enum
DCodedOutputStreamTest.cs371 Assert.AreEqual(10, CodedOutputStream.ComputeEnumSize((int) SampleEnum.NegativeValue)); in TestNegativeEnumNoTag()
375 output.WriteEnum((int) SampleEnum.NegativeValue); in TestNegativeEnumNoTag()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DSampleEnum.cs36 internal enum SampleEnum enum
DCodedOutputStreamTest.cs371 Assert.AreEqual(10, CodedOutputStream.ComputeEnumSize((int) SampleEnum.NegativeValue)); in TestNegativeEnumNoTag()
375 output.WriteEnum((int) SampleEnum.NegativeValue); in TestNegativeEnumNoTag()
DCodedInputStreamTest.cs689 Assert.AreEqual((int)SampleEnum.NegativeValue, input.ReadEnum()); in TestNegativeEnum()
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DSampleEnum.cs36 internal enum SampleEnum enum
DCodedOutputStreamTest.cs276 Assert.AreEqual(10, CodedOutputStream.ComputeEnumSize((int) SampleEnum.NegativeValue)); in TestNegativeEnumNoTag()
280 output.WriteEnum((int) SampleEnum.NegativeValue); in TestNegativeEnumNoTag()
DCodedInputStreamTest.cs388 Assert.AreEqual((int)SampleEnum.NegativeValue, input.ReadEnum()); in TestNegativeEnum()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DSampleEnum.cs36 internal enum SampleEnum enum
DCodedOutputStreamTest.cs276 Assert.AreEqual(10, CodedOutputStream.ComputeEnumSize((int) SampleEnum.NegativeValue)); in TestNegativeEnumNoTag()
280 output.WriteEnum((int) SampleEnum.NegativeValue); in TestNegativeEnumNoTag()
DCodedInputStreamTest.cs388 Assert.AreEqual((int)SampleEnum.NegativeValue, input.ReadEnum()); in TestNegativeEnum()

12