/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MapLiteTest.java | 37 import map_lite_test.MapTestProto.TestMap; 38 import map_lite_test.MapTestProto.TestMap.MessageValue; 53 private void setMapValues(TestMap.Builder builder) { in setMapValues() 64 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValues() 65 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValues() 66 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValues() 77 TestMap.Builder usingMutableMapBuilder = TestMap.newBuilder(); in testSetMapValues() 79 TestMap usingMutableMap = usingMutableMapBuilder.build(); in testSetMapValues() 82 TestMap.Builder usingAccessorsBuilder = TestMap.newBuilder(); in testSetMapValues() 84 TestMap usingAccessors = usingAccessorsBuilder.build(); in testSetMapValues() [all …]
|
D | MapForProto2LiteTest.java | 38 import map_lite_test.MapForProto2TestProto.TestMap; 39 import map_lite_test.MapForProto2TestProto.TestMap.MessageValue; 56 private void setMapValues(TestMap.Builder builder) { in setMapValues() 67 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValues() 68 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValues() 69 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValues() 80 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testSetMapValues() 82 TestMap map = mapBuilder.build(); in testSetMapValues() 86 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues() 96 private void assertMapValuesSet(TestMap message) { in assertMapValuesSet() [all …]
|
D | MapTest.java | 46 import map_test.MapTestProto.TestMap; 47 import map_test.MapTestProto.TestMap.MessageValue; 65 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() 78 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValuesUsingMutableMap() 79 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValuesUsingMutableMap() 80 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValuesUsingMutableMap() 94 private void setMapValuesUsingAccessors(TestMap.Builder builder) { in setMapValuesUsingAccessors() 105 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValuesUsingAccessors() 106 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValuesUsingAccessors() 107 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValuesUsingAccessors() [all …]
|
D | MapForProto2Test.java | 42 import map_test.MapForProto2TestProto.TestMap; 43 import map_test.MapForProto2TestProto.TestMap.MessageValue; 44 import map_test.MapForProto2TestProto.TestMap.MessageWithRequiredFields; 66 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() 79 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValuesUsingMutableMap() 80 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValuesUsingMutableMap() 81 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValuesUsingMutableMap() 95 private void setMapValuesUsingAccessors(TestMap.Builder builder) { in setMapValuesUsingAccessors() 106 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValuesUsingAccessors() 107 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValuesUsingAccessors() [all …]
|
/external/cronet/tot/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MapLiteTest.java | 37 import map_lite_test.MapTestProto.TestMap; 38 import map_lite_test.MapTestProto.TestMap.MessageValue; 53 private void setMapValues(TestMap.Builder builder) { in setMapValues() 64 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValues() 65 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValues() 66 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValues() 77 TestMap.Builder usingMutableMapBuilder = TestMap.newBuilder(); in testSetMapValues() 79 TestMap usingMutableMap = usingMutableMapBuilder.build(); in testSetMapValues() 82 TestMap.Builder usingAccessorsBuilder = TestMap.newBuilder(); in testSetMapValues() 84 TestMap usingAccessors = usingAccessorsBuilder.build(); in testSetMapValues() [all …]
|
D | MapForProto2LiteTest.java | 38 import map_lite_test.MapForProto2TestProto.TestMap; 39 import map_lite_test.MapForProto2TestProto.TestMap.MessageValue; 56 private void setMapValues(TestMap.Builder builder) { in setMapValues() 67 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValues() 68 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValues() 69 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValues() 80 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testSetMapValues() 82 TestMap map = mapBuilder.build(); in testSetMapValues() 86 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues() 96 private void assertMapValuesSet(TestMap message) { in assertMapValuesSet() [all …]
|
D | MapTest.java | 46 import map_test.MapTestProto.TestMap; 47 import map_test.MapTestProto.TestMap.MessageValue; 65 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() 78 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValuesUsingMutableMap() 79 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValuesUsingMutableMap() 80 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValuesUsingMutableMap() 94 private void setMapValuesUsingAccessors(TestMap.Builder builder) { in setMapValuesUsingAccessors() 105 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValuesUsingAccessors() 106 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValuesUsingAccessors() 107 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValuesUsingAccessors() [all …]
|
D | MapForProto2Test.java | 42 import map_test.MapForProto2TestProto.TestMap; 43 import map_test.MapForProto2TestProto.TestMap.MessageValue; 44 import map_test.MapForProto2TestProto.TestMap.MessageWithRequiredFields; 66 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() 79 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValuesUsingMutableMap() 80 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValuesUsingMutableMap() 81 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValuesUsingMutableMap() 95 private void setMapValuesUsingAccessors(TestMap.Builder builder) { in setMapValuesUsingAccessors() 106 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValuesUsingAccessors() 107 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValuesUsingAccessors() [all …]
|
/external/cronet/stable/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MapLiteTest.java | 37 import map_lite_test.MapTestProto.TestMap; 38 import map_lite_test.MapTestProto.TestMap.MessageValue; 53 private void setMapValues(TestMap.Builder builder) { in setMapValues() 64 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValues() 65 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValues() 66 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValues() 77 TestMap.Builder usingMutableMapBuilder = TestMap.newBuilder(); in testSetMapValues() 79 TestMap usingMutableMap = usingMutableMapBuilder.build(); in testSetMapValues() 82 TestMap.Builder usingAccessorsBuilder = TestMap.newBuilder(); in testSetMapValues() 84 TestMap usingAccessors = usingAccessorsBuilder.build(); in testSetMapValues() [all …]
|
D | MapForProto2LiteTest.java | 38 import map_lite_test.MapForProto2TestProto.TestMap; 39 import map_lite_test.MapForProto2TestProto.TestMap.MessageValue; 56 private void setMapValues(TestMap.Builder builder) { in setMapValues() 67 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValues() 68 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValues() 69 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValues() 80 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testSetMapValues() 82 TestMap map = mapBuilder.build(); in testSetMapValues() 86 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues() 96 private void assertMapValuesSet(TestMap message) { in assertMapValuesSet() [all …]
|
D | MapTest.java | 46 import map_test.MapTestProto.TestMap; 47 import map_test.MapTestProto.TestMap.MessageValue; 65 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() 78 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValuesUsingMutableMap() 79 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValuesUsingMutableMap() 80 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValuesUsingMutableMap() 94 private void setMapValuesUsingAccessors(TestMap.Builder builder) { in setMapValuesUsingAccessors() 105 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValuesUsingAccessors() 106 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValuesUsingAccessors() 107 .putInt32ToEnumField(3, TestMap.EnumValue.BAZ) in setMapValuesUsingAccessors() [all …]
|
D | MapForProto2Test.java | 42 import map_test.MapForProto2TestProto.TestMap; 43 import map_test.MapForProto2TestProto.TestMap.MessageValue; 44 import map_test.MapForProto2TestProto.TestMap.MessageWithRequiredFields; 66 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() 79 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValuesUsingMutableMap() 80 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValuesUsingMutableMap() 81 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValuesUsingMutableMap() 95 private void setMapValuesUsingAccessors(TestMap.Builder builder) { in setMapValuesUsingAccessors() 106 .putInt32ToEnumField(1, TestMap.EnumValue.FOO) in setMapValuesUsingAccessors() 107 .putInt32ToEnumField(2, TestMap.EnumValue.BAR) in setMapValuesUsingAccessors() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ForwardingConcurrentMapTest.java | 30 private static class TestMap extends ForwardingConcurrentMap<String, Integer> { class in ForwardingConcurrentMapTest 40 TestMap map = new TestMap(); in testPutIfAbsent() 49 TestMap map = new TestMap(); in testRemove() 59 TestMap map = new TestMap(); in testReplace() 68 TestMap map = new TestMap(); in testReplaceConditional()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | ForwardingConcurrentMapTest.java | 30 private static class TestMap extends ForwardingConcurrentMap<String, Integer> { class in ForwardingConcurrentMapTest 40 TestMap map = new TestMap(); in testPutIfAbsent() 49 TestMap map = new TestMap(); in testRemove() 59 TestMap map = new TestMap(); in testReplace() 68 TestMap map = new TestMap(); in testReplaceConditional()
|
/external/grpc-grpc/test/core/promise/ |
D | try_seq_metadata_test.cc | 28 struct TestMap : public MetadataMap<TestMap, GrpcStatusMetadata> { struct 29 using MetadataMap<TestMap, GrpcStatusMetadata>::MetadataMap; 33 Poll<TestMap> r = TrySeq( in TEST() 35 TestMap m; in TEST() 40 TestMap m; in TEST()
|
/external/cronet/stable/third_party/protobuf/src/google/protobuf/ |
D | map_test_util.inc | 40 // Set every field in the TestMap message to a unique value. 41 static void SetMapFields(UNITTEST::TestMap* message); 47 static void SetMapFieldsInitialized(UNITTEST::TestMap* message); 51 static void ModifyMapFields(UNITTEST::TestMap* message); 55 static void ExpectMapFieldsSet(const UNITTEST::TestMap& message); 63 static void ExpectMapFieldsSetInitialized(const UNITTEST::TestMap& message); 67 static void ExpectMapFieldsModified(const UNITTEST::TestMap& message); 70 static void ExpectClear(const UNITTEST::TestMap& message); 73 static void ExpectMapsSize(const UNITTEST::TestMap& message, int size); 77 const UNITTEST::TestMap& message, int index); [all …]
|
/external/protobuf/src/google/protobuf/ |
D | map_test_util.inc | 40 // Set every field in the TestMap message to a unique value. 41 static void SetMapFields(UNITTEST::TestMap* message); 47 static void SetMapFieldsInitialized(UNITTEST::TestMap* message); 51 static void ModifyMapFields(UNITTEST::TestMap* message); 55 static void ExpectMapFieldsSet(const UNITTEST::TestMap& message); 63 static void ExpectMapFieldsSetInitialized(const UNITTEST::TestMap& message); 67 static void ExpectMapFieldsModified(const UNITTEST::TestMap& message); 70 static void ExpectClear(const UNITTEST::TestMap& message); 73 static void ExpectMapsSize(const UNITTEST::TestMap& message, int size); 77 const UNITTEST::TestMap& message, int index); [all …]
|
/external/cronet/tot/third_party/protobuf/src/google/protobuf/ |
D | map_test_util.inc | 40 // Set every field in the TestMap message to a unique value. 41 static void SetMapFields(UNITTEST::TestMap* message); 47 static void SetMapFieldsInitialized(UNITTEST::TestMap* message); 51 static void ModifyMapFields(UNITTEST::TestMap* message); 55 static void ExpectMapFieldsSet(const UNITTEST::TestMap& message); 63 static void ExpectMapFieldsSetInitialized(const UNITTEST::TestMap& message); 67 static void ExpectMapFieldsModified(const UNITTEST::TestMap& message); 70 static void ExpectClear(const UNITTEST::TestMap& message); 73 static void ExpectMapsSize(const UNITTEST::TestMap& message, int size); 77 const UNITTEST::TestMap& message, int index); [all …]
|
/external/google-breakpad/src/processor/ |
D | static_contained_range_map_unittest.cc | 49 typedef google_breakpad::StaticContainedRangeMap<unsigned int, int> TestMap; typedef 236 test_map_ = TestMap(serialized_data_.get()); in SetUp() 245 scoped_ptr<TestMap> test_map(new TestMap(serialized_data.get())); in TEST_F() 265 scoped_ptr<TestMap> test_map(new TestMap(serialized_data.get())); in TEST_F() 289 scoped_ptr<TestMap> test_map(new TestMap(serialized_data.get())); in TEST_F()
|
D | static_map_unittest.cc | 46 typedef google_breakpad::StaticMap< KeyType, ValueType > TestMap; typedef 97 TestMap test_map; 102 test_map = TestMap(data); in TEST_F() 114 test_map = TestMap(data); in TEST_F() 119 test_map = TestMap(data); in TEST_F() 137 test_map = TestMap(data); in TEST_F() 150 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() 157 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() 165 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() 173 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() [all …]
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 211 var message = new TestMap in RoundTrip_Maps() 233 TestMap parsed = TestMap.Parser.ParseFrom(bytes); in RoundTrip_Maps() 240 var message = new TestMap in MapWithEmptyEntry() 248 var parsed = TestMap.Parser.ParseFrom(bytes); in MapWithEmptyEntry() 259 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue() 267 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyValue() 277 output.WriteTag(TestMap.MapInt32DoubleFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_PrimitiveValue() 284 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_PrimitiveValue() 294 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_MessageValue() 301 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_MessageValue() [all …]
|
/external/cronet/stable/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 211 var message = new TestMap in RoundTrip_Maps() 233 TestMap parsed = TestMap.Parser.ParseFrom(bytes); in RoundTrip_Maps() 240 var message = new TestMap in MapWithEmptyEntry() 248 var parsed = TestMap.Parser.ParseFrom(bytes); in MapWithEmptyEntry() 259 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue() 267 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyValue() 277 output.WriteTag(TestMap.MapInt32DoubleFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_PrimitiveValue() 284 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_PrimitiveValue() 294 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_MessageValue() 301 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_MessageValue() [all …]
|
/external/cronet/tot/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 211 var message = new TestMap in RoundTrip_Maps() 233 TestMap parsed = TestMap.Parser.ParseFrom(bytes); in RoundTrip_Maps() 240 var message = new TestMap in MapWithEmptyEntry() 248 var parsed = TestMap.Parser.ParseFrom(bytes); in MapWithEmptyEntry() 259 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue() 267 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyValue() 277 output.WriteTag(TestMap.MapInt32DoubleFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_PrimitiveValue() 284 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_PrimitiveValue() 294 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_MessageValue() 301 var parsed = TestMap.Parser.ParseFrom(memoryStream.ToArray()); in MapWithOnlyKey_MessageValue() [all …]
|
/external/cronet/tot/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 214 var message = new TestMap in RoundTrip_Maps() 237 MessageParsingHelpers.AssertRoundtrip(TestMap.Parser, message); in RoundTrip_Maps() 243 var message = new TestMap in MapWithEmptyEntry() 254 TestMap.Parser, in MapWithEmptyEntry() 269 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue() 278 TestMap.Parser, in MapWithOnlyValue() 292 output.WriteTag(TestMap.MapInt32DoubleFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_PrimitiveValue() 300 TestMap.Parser, in MapWithOnlyKey_PrimitiveValue() 314 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_MessageValue() 322 TestMap.Parser, in MapWithOnlyKey_MessageValue() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 214 var message = new TestMap in RoundTrip_Maps() 237 MessageParsingHelpers.AssertRoundtrip(TestMap.Parser, message); in RoundTrip_Maps() 243 var message = new TestMap in MapWithEmptyEntry() 254 TestMap.Parser, in MapWithEmptyEntry() 269 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyValue() 278 TestMap.Parser, in MapWithOnlyValue() 292 output.WriteTag(TestMap.MapInt32DoubleFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_PrimitiveValue() 300 TestMap.Parser, in MapWithOnlyKey_PrimitiveValue() 314 … output.WriteTag(TestMap.MapInt32ForeignMessageFieldNumber, WireFormat.WireType.LengthDelimited); in MapWithOnlyKey_MessageValue() 322 TestMap.Parser, in MapWithOnlyKey_MessageValue() [all …]
|