Home
last modified time | relevance | path

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

/external/protobuf/csharp/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()
/external/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()
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DJsonFormatTest.java216 TestMap mapMessage = mapBuilder.build(); in testUnknownEnumValues() local
224 toJsonString(mapMessage)); in testUnknownEnumValues()
225 assertRoundTripEquals(mapMessage); in testUnknownEnumValues()
1088 TestMap mapMessage = TestMap.getDefaultInstance(); in testIncludingDefaultValueFields() local
1089 assertEquals("{\n}", JsonFormat.printer().print(mapMessage)); in testIncludingDefaultValueFields()
1149 JsonFormat.printer().includingDefaultValueFields().print(mapMessage)); in testIncludingDefaultValueFields()