Home
last modified time | relevance | path

Searched refs:mapMessage (Results 1 – 4 of 4) sorted by relevance

/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs81 … var mapMessage = new TestMap { MapStringString = { { "key1", "value1" }, { "key2", "value2" } } }; in GetValue()
83 …ictionary = (IDictionary) fields[TestMap.MapStringStringFieldNumber].Accessor.GetValue(mapMessage); in GetValue()
84 Assert.AreEqual(mapMessage.MapStringString, dictionary); in GetValue()
115 … var mapMessage = new TestMap { MapStringString = { { "key1", "value1" }, { "key2", "value2" } } }; in Clear()
117 fields[TestMap.MapStringStringFieldNumber].Accessor.Clear(mapMessage); in Clear()
118 Assert.AreEqual(0, mapMessage.MapStringString.Count); in Clear()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMap.java370 RubyMessage mapMessage = (RubyMessage) rubyClass.newInstance(context, Block.NULL_BLOCK); in build() local
371 mapMessage.setField(context, keyField, key); in build()
372 mapMessage.setField(context, valueField, table.get(key)); in build()
373 list.add(mapMessage.build(context)); in build()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs85 … var mapMessage = new TestMap { MapStringString = { { "key1", "value1" }, { "key2", "value2" } } }; in GetValue()
87 …ictionary = (IDictionary) fields[TestMap.MapStringStringFieldNumber].Accessor.GetValue(mapMessage); in GetValue()
88 Assert.AreEqual(mapMessage.MapStringString, dictionary); in GetValue()
306 … var mapMessage = new TestMap { MapStringString = { { "key1", "value1" }, { "key2", "value2" } } }; in Clear()
308 fields[TestMap.MapStringStringFieldNumber].Accessor.Clear(mapMessage); in Clear()
309 Assert.AreEqual(0, mapMessage.MapStringString.Count); in Clear()
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DJsonFormatTest.java256 TestMap mapMessage = mapBuilder.build(); in testUnknownEnumValues() local
264 toJsonString(mapMessage)); in testUnknownEnumValues()
265 assertRoundTripEquals(mapMessage); in testUnknownEnumValues()
1481 TestMap mapMessage = TestMap.getDefaultInstance(); in testIncludingDefaultValueFields() local
1482 assertEquals("{\n}", JsonFormat.printer().print(mapMessage)); in testIncludingDefaultValueFields()
1542 JsonFormat.printer().includingDefaultValueFields().print(mapMessage)); in testIncludingDefaultValueFields()
1760 TestMap mapMessage = mapBuilder.build(); in testSortedMapKeys() local
1783 toSortedJsonString(mapMessage)); in testSortedMapKeys()