/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MapForProto2LiteTest.java | 33 import map_lite_test.MapForProto2TestProto.TestMap; 34 import map_lite_test.MapForProto2TestProto.TestMap.MessageValue; 48 private void setMapValues(TestMap.Builder builder) { in setMapValues() 61 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValues() 62 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValues() 63 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValues() 77 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues() 87 private void assertMapValuesSet(TestMap message) { in assertMapValuesSet() 104 assertEquals(TestMap.EnumValue.FOO, message.getInt32ToEnumField().get(1)); in assertMapValuesSet() 105 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(2)); in assertMapValuesSet() [all …]
|
D | MapTest.java | 37 import map_test.MapTestProto.TestMap; 38 import map_test.MapTestProto.TestMap.MessageValue; 52 private void setMapValues(TestMap.Builder builder) { in setMapValues() 65 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValues() 66 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValues() 67 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValues() 81 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues() 91 private void assertMapValuesSet(TestMap message) { in assertMapValuesSet() 108 assertEquals(TestMap.EnumValue.FOO, message.getInt32ToEnumField().get(1)); in assertMapValuesSet() 109 assertEquals(TestMap.EnumValue.BAR, message.getInt32ToEnumField().get(2)); in assertMapValuesSet() [all …]
|
D | MapForProto2Test.java | 34 import map_test.MapForProto2TestProto.TestMap; 35 import map_test.MapForProto2TestProto.TestMap.MessageValue; 36 import map_test.MapForProto2TestProto.TestMap.MessageWithRequiredFields; 51 private void setMapValues(TestMap.Builder builder) { in setMapValues() 64 builder.getMutableInt32ToEnumField().put(1, TestMap.EnumValue.FOO); in setMapValues() 65 builder.getMutableInt32ToEnumField().put(2, TestMap.EnumValue.BAR); in setMapValues() 66 builder.getMutableInt32ToEnumField().put(3, TestMap.EnumValue.BAZ); in setMapValues() 80 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues() 90 private void assertMapValuesSet(TestMap message) { in assertMapValuesSet() 107 assertEquals(TestMap.EnumValue.FOO, message.getInt32ToEnumField().get(1)); in assertMapValuesSet() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ForwardingConcurrentMapTest.java | 31 private static class TestMap class in ForwardingConcurrentMapTest 41 TestMap map = new TestMap(); in testPutIfAbsent() 50 TestMap map = new TestMap(); in testRemove() 60 TestMap map = new TestMap(); in testReplace() 69 TestMap map = new TestMap(); in testReplaceConditional()
|
D | SynchronizedMapTest.java | 42 TestMap<K, V> inner = new TestMap<K, V>(new HashMap<K, V>(), mutex); in create() 47 static class TestMap<K, V> extends ForwardingMap<K, V> class in SynchronizedMapTest 51 public TestMap(Map<K, V> delegate, Object mutex) { in TestMap() method in SynchronizedMapTest.TestMap
|
D | SynchronizedNavigableMapTest.java | 49 TestMap<K, V> inner = new TestMap<K, V>(innermost, mutex); in create() 96 static class TestMap<K, V> extends SynchronizedMapTest.TestMap<K, V> class in SynchronizedNavigableMapTest 99 public TestMap(NavigableMap<K, V> delegate, Object mutex) { in TestMap() method in SynchronizedNavigableMapTest.TestMap 242 TestMap<String, String> inner = in suite() 243 new TestMap<String, String>(innermost, mutex); in suite()
|
/external/protobuf/src/google/protobuf/ |
D | map_test_util.h | 44 static void SetMapFields(unittest::TestMap* message); 50 static void SetMapFieldsInitialized(unittest::TestMap* message); 54 static void ModifyMapFields(unittest::TestMap* message); 58 static void ExpectMapFieldsSet(const unittest::TestMap& message); 67 const unittest::TestMap& message); 71 static void ExpectMapFieldsModified(const unittest::TestMap& message); 74 static void ExpectClear(const unittest::TestMap& message); 77 static void ExpectMapsSize(const unittest::TestMap& message, int size); 81 const unittest::TestMap& message, int index); 85 unittest::TestMap* message);
|
D | map_test.cc | 87 using google::protobuf::unittest::TestMap; 944 TestMap message; in TEST_F() 1135 TestMap message; in TEST_F() 1628 TestMap m0, m1, m2; in TEST_F() 1751 unittest::TestMap message; in TEST() 1761 unittest::TestMap message; in TEST() 1774 unittest::TestMap message; in TEST() 1789 unittest::TestMap message1, message2; in TEST() 1814 unittest::TestMap message1, message2; in TEST() 1826 unittest::TestMap message; in TEST() [all …]
|
/external/protobuf/csharp/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 …]
|
D | JsonFormatterTest.cs | 57 AssertJson("{ }", formatter.Format(new TestMap())); in DefaultValues_WhenOmitted() 136 …JsonFormatter.Default.Format(new TestMap { MapStringString = { { "with spaces", "bar" }, { "a", "b… in MapField_StringString() 144 … JsonFormatter.Default.Format(new TestMap { MapInt32Int32 = { { 0, 1 }, { 2, 3 } } })); in MapField_Int32Int32() 152 … JsonFormatter.Default.Format(new TestMap { MapBoolBool = { { false, true }, { true, false } } })); in MapField_BoolBool() 184 …var message = new TestMap { MapInt32Enum = { { 1, MapEnum.Foo }, { 2, (MapEnum) 100 }, { 3, MapEnu… in UnknownEnumValueNumeric_MapField()
|
/external/google-breakpad/src/processor/ |
D | static_map_unittest.cc | 43 typedef google_breakpad::StaticMap< KeyType, ValueType > TestMap; typedef 94 TestMap test_map; 99 test_map = TestMap(data); in TEST_F() 111 test_map = TestMap(data); in TEST_F() 116 test_map = TestMap(data); in TEST_F() 134 test_map = TestMap(data); in TEST_F() 147 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() 154 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() 162 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() 170 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() [all …]
|
D | range_map_unittest.cc | 71 typedef RangeMap< AddressType, linked_ptr<CountedObject> > TestMap; typedef 105 static bool StoreTest(TestMap *range_map, const RangeTest *range_test) { in StoreTest() 129 static bool RetrieveTest(TestMap *range_map, const RangeTest *range_test) { in RetrieveTest() 269 static bool RetrieveIndexTest(TestMap *range_map, int set) { in RetrieveIndexTest() 332 scoped_ptr<TestMap> range_map(new TestMap()); in RetriveAtIndexTest2() 457 scoped_ptr<TestMap> range_map(new TestMap()); in RunTests()
|
D | static_range_map_unittest.cc | 47 typedef google_breakpad::StaticRangeMap< AddressType, EntryType > TestMap; typedef 183 void RetrieveTest(TestMap* range_map, const RangeTest* range_test); 191 void RetrieveIndexTest(const TestMap* range_map, int set); 208 void TestStaticRangeMap::RetrieveTest(TestMap* range_map, in RetrieveTest() 312 void TestStaticRangeMap::RetrieveIndexTest(const TestMap* range_map, int set) { in RetrieveIndexTest() 374 scoped_ptr<TestMap> static_range_map(new TestMap(memaddr.get())); in RunTestCase()
|
D | static_contained_range_map_unittest.cc | 46 typedef google_breakpad::StaticContainedRangeMap<unsigned int, int> TestMap; typedef 233 test_map_ = TestMap(serialized_data_.get()); in SetUp() 242 scoped_ptr<TestMap> test_map(new TestMap(serialized_data.get())); in TEST_F() 262 scoped_ptr<TestMap> test_map(new TestMap(serialized_data.get())); in TEST_F()
|
D | static_address_map_unittest.cc | 48 typedef google_breakpad::StaticAddressMap<int, char> TestMap; typedef 82 test_map[testcase] = TestMap(map_data[testcase]); in SetUp() 149 TestMap test_map[kNumberTestCases];
|
/external/google-breakpad/src/common/ |
D | simple_string_dictionary_unittest.cc | 36 typedef NonAllocatingMap<5, 9, 15> TestMap; in TEST() typedef 37 TestMap map; in TEST() 39 const TestMap::Entry* entry = TestMap::Iterator(map).Next(); in TEST() 44 entry = TestMap::Iterator(map).Next(); in TEST() 254 typedef NonAllocatingMap<4, 5, 7> TestMap; in TEST() typedef 255 TestMap map; in TEST() 272 TestMap deserialized(serialized_copy, size); in TEST()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 81 … var mapMessage = new TestMap { MapStringString = { { "key1", "value1" }, { "key2", "value2" } } }; in GetValue() 82 fields = TestMap.Descriptor.Fields; in GetValue() 83 …var dictionary = (IDictionary) fields[TestMap.MapStringStringFieldNumber].Accessor.GetValue(mapMes… in GetValue() 115 … var mapMessage = new TestMap { MapStringString = { { "key1", "value1" }, { "key2", "value2" } } }; in Clear() 116 fields = TestMap.Descriptor.Fields; in Clear() 117 fields[TestMap.MapStringStringFieldNumber].Accessor.Clear(mapMessage); in Clear() 160 IMessage message = new TestMap(); in SetValue_MapFields() 162 …Assert.Throws<InvalidOperationException>(() => fields[TestMap.MapStringStringFieldNumber].Accessor… in SetValue_MapFields() 178 …dCastException>(() => fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(new TestMap())); in GetValue_IncorrectType()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ |
D | MapUnittestProto3.cs | 153 …ypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMap), global::Google.Protobuf.TestProtos.Tes… in MapUnittestProto3Reflection() 179 public sealed partial class TestMap : pb::IMessage<TestMap> { class 180 …private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => … 181 public static pb::MessageParser<TestMap> Parser { get { return _parser; } } 191 public TestMap() { in TestMap() method in Google.Protobuf.TestProtos.TestMap 197 public TestMap(TestMap other) : this() { in TestMap() method in Google.Protobuf.TestProtos.TestMap 217 public TestMap Clone() { in Clone() 218 return new TestMap(this); in Clone() 375 return Equals(other as TestMap); in Equals() 378 public bool Equals(TestMap other) { in Equals() [all …]
|
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | JsonFormatTest.java | 57 import com.google.protobuf.util.JsonTestProto.TestMap; 213 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUnknownEnumValues() 216 TestMap mapMessage = mapBuilder.build(); in testUnknownEnumValues() 478 TestMap.Builder builder = TestMap.newBuilder(); in testMapFields() 510 TestMap message = builder.build(); in testMapFields() 604 builder = TestMap.newBuilder(); in testMapFields() 621 TestMap.Builder builder = TestMap.newBuilder(); in testMapNullValueIsRejected() 633 TestMap.Builder builder = TestMap.newBuilder(); in testMapNullValueIsRejected() 646 TestMap.Builder builder = TestMap.newBuilder(); in testParserAcceptNonQuotedObjectKey() 652 TestMap message = builder.build(); in testParserAcceptNonQuotedObjectKey() [all …]
|
/external/pcre/pcrecpp/ |
D | pcre_stringpiece_unittest.cc | 38 typedef std::map<StringPiece, int> TestMap; in CheckSTLComparator() typedef 39 TestMap map; in CheckSTLComparator() 47 TestMap::const_iterator iter = map.begin(); in CheckSTLComparator() 56 TestMap::iterator new_iter = map.find("zot"); in CheckSTLComparator()
|
/external/protobuf/python/google/protobuf/internal/ |
D | message_test.py | 1261 msg = map_unittest_pb2.TestMap() 1311 msg = map_unittest_pb2.TestMap() 1327 msg = map_unittest_pb2.TestMap() 1356 msg2 = map_unittest_pb2.TestMap() 1375 msg = map_unittest_pb2.TestMap() 1391 msg = map_unittest_pb2.TestMap() 1418 msg2 = map_unittest_pb2.TestMap() 1427 msg = map_unittest_pb2.TestMap() 1434 msg2 = map_unittest_pb2.TestMap() 1469 msg = map_unittest_pb2.TestMap() [all …]
|
/external/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | map_for_proto2_test.proto | 39 message TestMap { message 64 // Wire-compatible with TestMap.int32_to_enum_field so we can test the 65 // parsing behavior of TestMap regarding unknown enum values.
|
D | map_for_proto2_lite_test.proto | 37 message TestMap { message 62 // Wire-compatible with TestMap.int32_to_enum_field so we can test the 63 // parsing behavior of TestMap regarding unknown enum values.
|
/external/protobuf/objectivec/Tests/ |
D | GPBTestUtilities.h | 35 @class TestMap; 66 - (void)setAllMapFields:(TestMap *)message numEntries:(uint32_t)count;
|
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/ |
D | NanoTest.java | 33 import com.google.protobuf.nano.MapTestProto.TestMap; 37 import com.google.protobuf.nano.MapTestProto.TestMap.MessageValue; 2796 TestMap msg = new TestMap(); in testMessageNanoPrinterForMaps() 2808 msg.int32ToMessageField = new HashMap<Integer, MapTestProto.TestMap.MessageValue>(); in testMessageNanoPrinterForMaps() 4098 TestMap origin = new TestMap(); in testMapsSerializeAndParse() 4103 TestMap parsed = new TestMap(); in testMapsSerializeAndParse() 4108 TestMap primitiveMap = new TestMap(); in testMapSerializeRejectNull() 4118 TestMap messageMap = new TestMap(); in testMapSerializeRejectNull() 4120 new HashMap<Integer, MapTestProto.TestMap.MessageValue>(); in testMapSerializeRejectNull() 4135 TestMap.MessageValue origValue = new TestMap.MessageValue(); in testMapMergeOverrideMessageValues() [all …]
|