Lines Matching full:message

34 #include <google/protobuf/message.h>
39 void MapTestUtil::SetMapFields(unittest::TestMap* message) { in SetMapFields() argument
41 unittest::MAP_ENUM_BAZ>(message); in SetMapFields()
44 void MapTestUtil::SetArenaMapFields(unittest::TestArenaMap* message) { in SetArenaMapFields() argument
46 unittest::MAP_ENUM_BAZ>(message); in SetArenaMapFields()
49 void MapTestUtil::SetMapFieldsInitialized(unittest::TestMap* message) { in SetMapFieldsInitialized() argument
50 MapTestUtilImpl::SetMapFieldsInitialized(message); in SetMapFieldsInitialized()
53 void MapTestUtil::ModifyMapFields(unittest::TestMap* message) { in ModifyMapFields() argument
55 message); in ModifyMapFields()
58 void MapTestUtil::ExpectClear(const unittest::TestMap& message) { in ExpectClear() argument
59 MapTestUtilImpl::ExpectClear(message); in ExpectClear()
62 void MapTestUtil::ExpectMapFieldsSet(const unittest::TestMap& message) { in ExpectMapFieldsSet() argument
64 unittest::MAP_ENUM_BAZ>(message); in ExpectMapFieldsSet()
68 const unittest::TestArenaMap& message) { in ExpectArenaMapFieldsSet() argument
71 message); in ExpectArenaMapFieldsSet()
75 const unittest::TestMap& message) { in ExpectMapFieldsSetInitialized() argument
78 message); in ExpectMapFieldsSetInitialized()
82 const unittest::TestMap& message) { in ExpectMapFieldsModified() argument
85 message); in ExpectMapFieldsModified()
89 const unittest::TestMap& message, int size) { in ExpectMapsSize() argument
90 const Descriptor* descriptor = message.GetDescriptor(); in ExpectMapsSize()
92 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
93 message, descriptor->FindFieldByName("map_int32_int32"))); in ExpectMapsSize()
94 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
95 message, descriptor->FindFieldByName("map_int64_int64"))); in ExpectMapsSize()
96 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
97 message, descriptor->FindFieldByName("map_uint32_uint32"))); in ExpectMapsSize()
98 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
99 message, descriptor->FindFieldByName("map_uint64_uint64"))); in ExpectMapsSize()
100 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
101 message, descriptor->FindFieldByName("map_sint32_sint32"))); in ExpectMapsSize()
102 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
103 message, descriptor->FindFieldByName("map_sint64_sint64"))); in ExpectMapsSize()
104 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
105 message, descriptor->FindFieldByName("map_fixed32_fixed32"))); in ExpectMapsSize()
106 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
107 message, descriptor->FindFieldByName("map_fixed64_fixed64"))); in ExpectMapsSize()
108 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
109 message, descriptor->FindFieldByName("map_sfixed32_sfixed32"))); in ExpectMapsSize()
110 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
111 message, descriptor->FindFieldByName("map_sfixed64_sfixed64"))); in ExpectMapsSize()
112 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
113 message, descriptor->FindFieldByName("map_int32_float"))); in ExpectMapsSize()
114 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
115 message, descriptor->FindFieldByName("map_int32_double"))); in ExpectMapsSize()
116 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
117 message, descriptor->FindFieldByName("map_bool_bool"))); in ExpectMapsSize()
118 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
119 message, descriptor->FindFieldByName("map_string_string"))); in ExpectMapsSize()
120 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
121 message, descriptor->FindFieldByName("map_int32_bytes"))); in ExpectMapsSize()
122 EXPECT_EQ(size, message.GetReflection()->FieldSize( in ExpectMapsSize()
123 message, descriptor->FindFieldByName("map_int32_foreign_message"))); in ExpectMapsSize()
126 std::vector<const Message*> MapTestUtil::GetMapEntries( in GetMapEntries()
127 const unittest::TestMap& message, int index) { in GetMapEntries() argument
128 const Descriptor* descriptor = message.GetDescriptor(); in GetMapEntries()
129 std::vector<const Message*> result; in GetMapEntries()
131 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
132 message, descriptor->FindFieldByName("map_int32_int32"), index)); in GetMapEntries()
133 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
134 message, descriptor->FindFieldByName("map_int64_int64"), index)); in GetMapEntries()
135 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
136 message, descriptor->FindFieldByName("map_uint32_uint32"), index)); in GetMapEntries()
137 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
138 message, descriptor->FindFieldByName("map_uint64_uint64"), index)); in GetMapEntries()
139 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
140 message, descriptor->FindFieldByName("map_sint32_sint32"), index)); in GetMapEntries()
141 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
142 message, descriptor->FindFieldByName("map_sint64_sint64"), index)); in GetMapEntries()
143 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
144 message, descriptor->FindFieldByName("map_fixed32_fixed32"), index)); in GetMapEntries()
145 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
146 message, descriptor->FindFieldByName("map_fixed64_fixed64"), index)); in GetMapEntries()
147 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
148 message, descriptor->FindFieldByName("map_sfixed32_sfixed32"), index)); in GetMapEntries()
149 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
150 message, descriptor->FindFieldByName("map_sfixed64_sfixed64"), index)); in GetMapEntries()
151 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
152 message, descriptor->FindFieldByName("map_int32_float"), index)); in GetMapEntries()
153 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
154 message, descriptor->FindFieldByName("map_int32_double"), index)); in GetMapEntries()
155 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
156 message, descriptor->FindFieldByName("map_bool_bool"), index)); in GetMapEntries()
157 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
158 message, descriptor->FindFieldByName("map_string_string"), index)); in GetMapEntries()
159 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
160 message, descriptor->FindFieldByName("map_int32_bytes"), index)); in GetMapEntries()
161 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
162 message, descriptor->FindFieldByName("map_int32_enum"), index)); in GetMapEntries()
163 result.push_back(&message.GetReflection()->GetRepeatedMessage( in GetMapEntries()
164 message, descriptor->FindFieldByName("map_int32_foreign_message"), index)); in GetMapEntries()
169 std::vector<const Message*> MapTestUtil::GetMapEntriesFromRelease( in GetMapEntriesFromRelease()
170 unittest::TestMap* message) { in GetMapEntriesFromRelease() argument
171 const Descriptor* descriptor = message->GetDescriptor(); in GetMapEntriesFromRelease()
172 std::vector<const Message*> result; in GetMapEntriesFromRelease()
174 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
175 message, descriptor->FindFieldByName("map_int32_int32"))); in GetMapEntriesFromRelease()
176 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
177 message, descriptor->FindFieldByName("map_int64_int64"))); in GetMapEntriesFromRelease()
178 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
179 message, descriptor->FindFieldByName("map_uint32_uint32"))); in GetMapEntriesFromRelease()
180 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
181 message, descriptor->FindFieldByName("map_uint64_uint64"))); in GetMapEntriesFromRelease()
182 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
183 message, descriptor->FindFieldByName("map_sint32_sint32"))); in GetMapEntriesFromRelease()
184 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
185 message, descriptor->FindFieldByName("map_sint64_sint64"))); in GetMapEntriesFromRelease()
186 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
187 message, descriptor->FindFieldByName("map_fixed32_fixed32"))); in GetMapEntriesFromRelease()
188 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
189 message, descriptor->FindFieldByName("map_fixed64_fixed64"))); in GetMapEntriesFromRelease()
190 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
191 message, descriptor->FindFieldByName("map_sfixed32_sfixed32"))); in GetMapEntriesFromRelease()
192 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
193 message, descriptor->FindFieldByName("map_sfixed64_sfixed64"))); in GetMapEntriesFromRelease()
194 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
195 message, descriptor->FindFieldByName("map_int32_float"))); in GetMapEntriesFromRelease()
196 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
197 message, descriptor->FindFieldByName("map_int32_double"))); in GetMapEntriesFromRelease()
198 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
199 message, descriptor->FindFieldByName("map_bool_bool"))); in GetMapEntriesFromRelease()
200 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
201 message, descriptor->FindFieldByName("map_string_string"))); in GetMapEntriesFromRelease()
202 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
203 message, descriptor->FindFieldByName("map_int32_bytes"))); in GetMapEntriesFromRelease()
204 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
205 message, descriptor->FindFieldByName("map_int32_enum"))); in GetMapEntriesFromRelease()
206 result.push_back(message->GetReflection()->ReleaseLast( in GetMapEntriesFromRelease()
207 message, descriptor->FindFieldByName("map_int32_foreign_message"))); in GetMapEntriesFromRelease()
340 Message* message) { in SetMapFieldsViaReflection() argument
341 const Reflection* reflection = message->GetReflection(); in SetMapFieldsViaReflection()
342 Message* sub_message = NULL; in SetMapFieldsViaReflection()
343 Message* sub_foreign_message = NULL; in SetMapFieldsViaReflection()
346 sub_message = reflection->AddMessage(message, F("map_int32_int32")); in SetMapFieldsViaReflection()
352 sub_message = reflection->AddMessage(message, F("map_int64_int64")); in SetMapFieldsViaReflection()
358 sub_message = reflection->AddMessage(message, F("map_uint32_uint32")); in SetMapFieldsViaReflection()
364 sub_message = reflection->AddMessage(message, F("map_uint64_uint64")); in SetMapFieldsViaReflection()
370 sub_message = reflection->AddMessage(message, F("map_sint32_sint32")); in SetMapFieldsViaReflection()
376 sub_message = reflection->AddMessage(message, F("map_sint64_sint64")); in SetMapFieldsViaReflection()
382 sub_message = reflection->AddMessage(message, F("map_fixed32_fixed32")); in SetMapFieldsViaReflection()
388 sub_message = reflection->AddMessage(message, F("map_fixed64_fixed64")); in SetMapFieldsViaReflection()
394 sub_message = reflection->AddMessage(message, F("map_sfixed32_sfixed32")); in SetMapFieldsViaReflection()
400 sub_message = reflection->AddMessage(message, F("map_sfixed64_sfixed64")); in SetMapFieldsViaReflection()
406 sub_message = reflection->AddMessage(message, F("map_int32_float")); in SetMapFieldsViaReflection()
412 sub_message = reflection->AddMessage(message, F("map_int32_double")); in SetMapFieldsViaReflection()
418 sub_message = reflection->AddMessage(message, F("map_bool_bool")); in SetMapFieldsViaReflection()
424 sub_message = reflection->AddMessage(message, F("map_string_string")); in SetMapFieldsViaReflection()
430 sub_message = reflection->AddMessage(message, F("map_int32_bytes")); in SetMapFieldsViaReflection()
436 sub_message = reflection->AddMessage(message, F("map_int32_enum")); in SetMapFieldsViaReflection()
443 ->AddMessage(message, F("map_int32_foreign_message")); in SetMapFieldsViaReflection()
452 sub_message = reflection->AddMessage(message, F("map_int32_int32")); in SetMapFieldsViaReflection()
458 sub_message = reflection->AddMessage(message, F("map_int64_int64")); in SetMapFieldsViaReflection()
464 sub_message = reflection->AddMessage(message, F("map_uint32_uint32")); in SetMapFieldsViaReflection()
470 sub_message = reflection->AddMessage(message, F("map_uint64_uint64")); in SetMapFieldsViaReflection()
476 sub_message = reflection->AddMessage(message, F("map_sint32_sint32")); in SetMapFieldsViaReflection()
482 sub_message = reflection->AddMessage(message, F("map_sint64_sint64")); in SetMapFieldsViaReflection()
488 sub_message = reflection->AddMessage(message, F("map_fixed32_fixed32")); in SetMapFieldsViaReflection()
494 sub_message = reflection->AddMessage(message, F("map_fixed64_fixed64")); in SetMapFieldsViaReflection()
500 sub_message = reflection->AddMessage(message, F("map_sfixed32_sfixed32")); in SetMapFieldsViaReflection()
506 sub_message = reflection->AddMessage(message, F("map_sfixed64_sfixed64")); in SetMapFieldsViaReflection()
512 sub_message = reflection->AddMessage(message, F("map_int32_float")); in SetMapFieldsViaReflection()
518 sub_message = reflection->AddMessage(message, F("map_int32_double")); in SetMapFieldsViaReflection()
524 sub_message = reflection->AddMessage(message, F("map_bool_bool")); in SetMapFieldsViaReflection()
530 sub_message = reflection->AddMessage(message, F("map_string_string")); in SetMapFieldsViaReflection()
536 sub_message = reflection->AddMessage(message, F("map_int32_bytes")); in SetMapFieldsViaReflection()
542 sub_message = reflection->AddMessage(message, F("map_int32_enum")); in SetMapFieldsViaReflection()
549 ->AddMessage(message, F("map_int32_foreign_message")); in SetMapFieldsViaReflection()
559 Message* message) { in SetMapFieldsViaMapReflection() argument
560 const Reflection* reflection = message->GetReflection(); in SetMapFieldsViaMapReflection()
562 Message* sub_foreign_message = NULL; in SetMapFieldsViaMapReflection()
569 message, F("map_int32_int32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
574 message, F("map_int64_int64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
579 message, F("map_uint32_uint32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
584 message, F("map_uint64_uint64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
589 message, F("map_sint32_sint32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
594 message, F("map_sint64_sint64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
599 message, F("map_fixed32_fixed32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
604 message, F("map_fixed64_fixed64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
609 message, F("map_sfixed32_sfixed32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
614 message, F("map_sfixed64_sfixed64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
619 message, F("map_int32_float"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
624 message, F("map_int32_double"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
629 message, F("map_bool_bool"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
634 message, F("map_string_string"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
639 message, F("map_int32_bytes"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
644 message, F("map_int32_enum"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
649 message, F("map_int32_foreign_message"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
657 message, F("map_int32_int32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
660 message, F("map_int32_int32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
664 message, F("map_int64_int64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
667 message, F("map_int64_int64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
671 message, F("map_uint32_uint32"), map_key, &map_val); in SetMapFieldsViaMapReflection()
676 message, F("map_uint64_uint64"), map_key, &map_val); in SetMapFieldsViaMapReflection()
681 message, F("map_sint32_sint32"), map_key, &map_val); in SetMapFieldsViaMapReflection()
686 message, F("map_sint64_sint64"), map_key, &map_val); in SetMapFieldsViaMapReflection()
691 message, F("map_fixed32_fixed32"), map_key, &map_val); in SetMapFieldsViaMapReflection()
696 message, F("map_fixed64_fixed64"), map_key, &map_val); in SetMapFieldsViaMapReflection()
701 message, F("map_sfixed32_sfixed32"), map_key, &map_val); in SetMapFieldsViaMapReflection()
706 message, F("map_sfixed64_sfixed64"), map_key, &map_val); in SetMapFieldsViaMapReflection()
711 message, F("map_int32_float"), map_key, &map_val); in SetMapFieldsViaMapReflection()
716 message, F("map_int32_double"), map_key, &map_val); in SetMapFieldsViaMapReflection()
721 message, F("map_bool_bool"), map_key, &map_val); in SetMapFieldsViaMapReflection()
726 message, F("map_string_string"), map_key, &map_val); in SetMapFieldsViaMapReflection()
731 message, F("map_int32_bytes"), map_key, &map_val); in SetMapFieldsViaMapReflection()
736 message, F("map_int32_enum"), map_key, &map_val); in SetMapFieldsViaMapReflection()
741 message, F("map_int32_foreign_message"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
748 Message* message) { in ClearMapFieldsViaReflection() argument
749 const Reflection* reflection = message->GetReflection(); in ClearMapFieldsViaReflection()
751 reflection->ClearField(message, F("map_int32_int32")); in ClearMapFieldsViaReflection()
752 reflection->ClearField(message, F("map_int64_int64")); in ClearMapFieldsViaReflection()
753 reflection->ClearField(message, F("map_uint32_uint32")); in ClearMapFieldsViaReflection()
754 reflection->ClearField(message, F("map_uint64_uint64")); in ClearMapFieldsViaReflection()
755 reflection->ClearField(message, F("map_sint32_sint32")); in ClearMapFieldsViaReflection()
756 reflection->ClearField(message, F("map_sint64_sint64")); in ClearMapFieldsViaReflection()
757 reflection->ClearField(message, F("map_fixed32_fixed32")); in ClearMapFieldsViaReflection()
758 reflection->ClearField(message, F("map_fixed64_fixed64")); in ClearMapFieldsViaReflection()
759 reflection->ClearField(message, F("map_sfixed32_sfixed32")); in ClearMapFieldsViaReflection()
760 reflection->ClearField(message, F("map_sfixed64_sfixed64")); in ClearMapFieldsViaReflection()
761 reflection->ClearField(message, F("map_int32_float")); in ClearMapFieldsViaReflection()
762 reflection->ClearField(message, F("map_int32_double")); in ClearMapFieldsViaReflection()
763 reflection->ClearField(message, F("map_bool_bool")); in ClearMapFieldsViaReflection()
764 reflection->ClearField(message, F("map_string_string")); in ClearMapFieldsViaReflection()
765 reflection->ClearField(message, F("map_int32_bytes")); in ClearMapFieldsViaReflection()
766 reflection->ClearField(message, F("map_int32_enum")); in ClearMapFieldsViaReflection()
767 reflection->ClearField(message, F("map_int32_foreign_message")); in ClearMapFieldsViaReflection()
771 Message* message) { in ModifyMapFieldsViaReflection() argument
772 const Reflection* reflection = message->GetReflection(); in ModifyMapFieldsViaReflection()
774 Message* sub_foreign_message; in ModifyMapFieldsViaReflection()
780 message, F("map_int32_int32"), map_key, &map_val)); in ModifyMapFieldsViaReflection()
785 message, F("map_int64_int64"), map_key, &map_val)); in ModifyMapFieldsViaReflection()
790 message, F("map_uint32_uint32"), map_key, &map_val)); in ModifyMapFieldsViaReflection()
795 message, F("map_uint64_uint64"), map_key, &map_val); in ModifyMapFieldsViaReflection()
800 message, F("map_sint32_sint32"), map_key, &map_val); in ModifyMapFieldsViaReflection()
805 message, F("map_sint64_sint64"), map_key, &map_val); in ModifyMapFieldsViaReflection()
810 message, F("map_fixed32_fixed32"), map_key, &map_val); in ModifyMapFieldsViaReflection()
815 message, F("map_fixed64_fixed64"), map_key, &map_val); in ModifyMapFieldsViaReflection()
820 message, F("map_sfixed32_sfixed32"), map_key, &map_val); in ModifyMapFieldsViaReflection()
825 message, F("map_sfixed64_sfixed64"), map_key, &map_val); in ModifyMapFieldsViaReflection()
830 message, F("map_int32_float"), map_key, &map_val); in ModifyMapFieldsViaReflection()
835 message, F("map_int32_double"), map_key, &map_val); in ModifyMapFieldsViaReflection()
840 message, F("map_bool_bool"), map_key, &map_val); in ModifyMapFieldsViaReflection()
845 message, F("map_string_string"), map_key, &map_val); in ModifyMapFieldsViaReflection()
850 message, F("map_int32_bytes"), map_key, &map_val); in ModifyMapFieldsViaReflection()
855 message, F("map_int32_enum"), map_key, &map_val); in ModifyMapFieldsViaReflection()
860 message, F("map_int32_foreign_message"), map_key, &map_val)); in ModifyMapFieldsViaReflection()
867 Message* message) { in RemoveLastMapsViaReflection() argument
868 const Reflection* reflection = message->GetReflection(); in RemoveLastMapsViaReflection()
871 reflection->ListFields(*message, &output); in RemoveLastMapsViaReflection()
875 reflection->RemoveLast(message, field); in RemoveLastMapsViaReflection()
880 Message* message) { in ReleaseLastMapsViaReflection() argument
881 const Reflection* reflection = message->GetReflection(); in ReleaseLastMapsViaReflection()
884 reflection->ListFields(*message, &output); in ReleaseLastMapsViaReflection()
890 Message* released = reflection->ReleaseLast(message, field); in ReleaseLastMapsViaReflection()
897 void MapReflectionTester::SwapMapsViaReflection(Message* message) { in SwapMapsViaReflection() argument
898 const Reflection* reflection = message->GetReflection(); in SwapMapsViaReflection()
900 reflection->ListFields(*message, &output); in SwapMapsViaReflection()
904 reflection->SwapElements(message, field, 0, 1); in SwapMapsViaReflection()
909 MutableUnknownFieldsOfMapFieldsViaReflection(Message* message) { in MutableUnknownFieldsOfMapFieldsViaReflection() argument
910 const Reflection* reflection = message->GetReflection(); in MutableUnknownFieldsOfMapFieldsViaReflection()
911 Message* sub_message = NULL; in MutableUnknownFieldsOfMapFieldsViaReflection()
913 sub_message = reflection->AddMessage(message, F("map_int32_int32")); in MutableUnknownFieldsOfMapFieldsViaReflection()
916 sub_message = reflection->AddMessage(message, F("map_int64_int64")); in MutableUnknownFieldsOfMapFieldsViaReflection()
919 sub_message = reflection->AddMessage(message, F("map_uint32_uint32")); in MutableUnknownFieldsOfMapFieldsViaReflection()
922 sub_message = reflection->AddMessage(message, F("map_uint64_uint64")); in MutableUnknownFieldsOfMapFieldsViaReflection()
925 sub_message = reflection->AddMessage(message, F("map_sint32_sint32")); in MutableUnknownFieldsOfMapFieldsViaReflection()
928 sub_message = reflection->AddMessage(message, F("map_sint64_sint64")); in MutableUnknownFieldsOfMapFieldsViaReflection()
931 sub_message = reflection->AddMessage(message, F("map_fixed32_fixed32")); in MutableUnknownFieldsOfMapFieldsViaReflection()
934 sub_message = reflection->AddMessage(message, F("map_fixed64_fixed64")); in MutableUnknownFieldsOfMapFieldsViaReflection()
937 sub_message = reflection->AddMessage(message, F("map_sfixed32_sfixed32")); in MutableUnknownFieldsOfMapFieldsViaReflection()
940 sub_message = reflection->AddMessage(message, F("map_sfixed64_sfixed64")); in MutableUnknownFieldsOfMapFieldsViaReflection()
943 sub_message = reflection->AddMessage(message, F("map_int32_float")); in MutableUnknownFieldsOfMapFieldsViaReflection()
946 sub_message = reflection->AddMessage(message, F("map_int32_double")); in MutableUnknownFieldsOfMapFieldsViaReflection()
949 sub_message = reflection->AddMessage(message, F("map_bool_bool")); in MutableUnknownFieldsOfMapFieldsViaReflection()
952 sub_message = reflection->AddMessage(message, F("map_string_string")); in MutableUnknownFieldsOfMapFieldsViaReflection()
955 sub_message = reflection->AddMessage(message, F("map_int32_bytes")); in MutableUnknownFieldsOfMapFieldsViaReflection()
958 sub_message = reflection->AddMessage(message, F("map_int32_enum")); in MutableUnknownFieldsOfMapFieldsViaReflection()
961 sub_message = reflection->AddMessage(message, F("map_int32_foreign_message")); in MutableUnknownFieldsOfMapFieldsViaReflection()
967 const Message& message) { in ExpectMapFieldsSetViaReflection() argument
969 const Reflection* reflection = message.GetReflection(); in ExpectMapFieldsSetViaReflection()
970 const Message* sub_message; in ExpectMapFieldsSetViaReflection()
975 ASSERT_EQ(2, reflection->FieldSize(message, F("map_int32_int32"))); in ExpectMapFieldsSetViaReflection()
976 ASSERT_EQ(2, reflection->FieldSize(message, F("map_int64_int64"))); in ExpectMapFieldsSetViaReflection()
977 ASSERT_EQ(2, reflection->FieldSize(message, F("map_uint32_uint32"))); in ExpectMapFieldsSetViaReflection()
978 ASSERT_EQ(2, reflection->FieldSize(message, F("map_uint64_uint64"))); in ExpectMapFieldsSetViaReflection()
979 ASSERT_EQ(2, reflection->FieldSize(message, F("map_sint32_sint32"))); in ExpectMapFieldsSetViaReflection()
980 ASSERT_EQ(2, reflection->FieldSize(message, F("map_sint64_sint64"))); in ExpectMapFieldsSetViaReflection()
981 ASSERT_EQ(2, reflection->FieldSize(message, F("map_fixed32_fixed32"))); in ExpectMapFieldsSetViaReflection()
982 ASSERT_EQ(2, reflection->FieldSize(message, F("map_fixed64_fixed64"))); in ExpectMapFieldsSetViaReflection()
983 ASSERT_EQ(2, reflection->FieldSize(message, F("map_sfixed32_sfixed32"))); in ExpectMapFieldsSetViaReflection()
984 ASSERT_EQ(2, reflection->FieldSize(message, F("map_sfixed64_sfixed64"))); in ExpectMapFieldsSetViaReflection()
985 ASSERT_EQ(2, reflection->FieldSize(message, F("map_int32_float"))); in ExpectMapFieldsSetViaReflection()
986 ASSERT_EQ(2, reflection->FieldSize(message, F("map_int32_double"))); in ExpectMapFieldsSetViaReflection()
987 ASSERT_EQ(2, reflection->FieldSize(message, F("map_bool_bool"))); in ExpectMapFieldsSetViaReflection()
988 ASSERT_EQ(2, reflection->FieldSize(message, F("map_string_string"))); in ExpectMapFieldsSetViaReflection()
989 ASSERT_EQ(2, reflection->FieldSize(message, F("map_int32_bytes"))); in ExpectMapFieldsSetViaReflection()
990 ASSERT_EQ(2, reflection->FieldSize(message, F("map_int32_enum"))); in ExpectMapFieldsSetViaReflection()
991 ASSERT_EQ(2, reflection->FieldSize(message, F("map_int32_foreign_message"))); in ExpectMapFieldsSetViaReflection()
1000 &reflection->GetRepeatedMessage(message, F("map_int32_int32"), i); in ExpectMapFieldsSetViaReflection()
1009 message, F("map_int32_int32"), map_key)); in ExpectMapFieldsSetViaReflection()
1019 &reflection->GetRepeatedMessage(message, F("map_int64_int64"), i); in ExpectMapFieldsSetViaReflection()
1028 message, F("map_int64_int64"), map_key)); in ExpectMapFieldsSetViaReflection()
1038 &reflection->GetRepeatedMessage(message, F("map_uint32_uint32"), i); in ExpectMapFieldsSetViaReflection()
1047 message, F("map_uint32_uint32"), map_key)); in ExpectMapFieldsSetViaReflection()
1056 &reflection->GetRepeatedMessage(message, F("map_uint64_uint64"), i); in ExpectMapFieldsSetViaReflection()
1065 message, F("map_uint64_uint64"), map_key)); in ExpectMapFieldsSetViaReflection()
1074 &reflection->GetRepeatedMessage(message, F("map_sint32_sint32"), i); in ExpectMapFieldsSetViaReflection()
1083 message, F("map_sint32_sint32"), map_key)); in ExpectMapFieldsSetViaReflection()
1092 &reflection->GetRepeatedMessage(message, F("map_sint64_sint64"), i); in ExpectMapFieldsSetViaReflection()
1101 message, F("map_sint64_sint64"), map_key)); in ExpectMapFieldsSetViaReflection()
1110 &reflection->GetRepeatedMessage(message, F("map_fixed32_fixed32"), i); in ExpectMapFieldsSetViaReflection()
1119 message, F("map_fixed32_fixed32"), map_key)); in ExpectMapFieldsSetViaReflection()
1128 &reflection->GetRepeatedMessage(message, F("map_fixed64_fixed64"), i); in ExpectMapFieldsSetViaReflection()
1137 message, F("map_fixed64_fixed64"), map_key)); in ExpectMapFieldsSetViaReflection()
1146 message, F("map_sfixed32_sfixed32"), i); in ExpectMapFieldsSetViaReflection()
1155 message, F("map_sfixed32_sfixed32"), map_key)); in ExpectMapFieldsSetViaReflection()
1164 message, F("map_sfixed64_sfixed64"), i); in ExpectMapFieldsSetViaReflection()
1173 message, F("map_sfixed64_sfixed64"), map_key)); in ExpectMapFieldsSetViaReflection()
1182 &reflection->GetRepeatedMessage(message, F("map_int32_float"), i); in ExpectMapFieldsSetViaReflection()
1191 message, F("map_int32_float"), map_key)); in ExpectMapFieldsSetViaReflection()
1200 &reflection->GetRepeatedMessage(message, F("map_int32_double"), i); in ExpectMapFieldsSetViaReflection()
1209 message, F("map_int32_double"), map_key)); in ExpectMapFieldsSetViaReflection()
1218 &reflection->GetRepeatedMessage(message, F("map_bool_bool"), i); in ExpectMapFieldsSetViaReflection()
1227 message, F("map_bool_bool"), map_key)); in ExpectMapFieldsSetViaReflection()
1236 &reflection->GetRepeatedMessage(message, F("map_string_string"), i); in ExpectMapFieldsSetViaReflection()
1245 message, F("map_string_string"), map_key)); in ExpectMapFieldsSetViaReflection()
1254 &reflection->GetRepeatedMessage(message, F("map_int32_bytes"), i); in ExpectMapFieldsSetViaReflection()
1263 message, F("map_int32_bytes"), map_key)); in ExpectMapFieldsSetViaReflection()
1272 message, F("map_int32_enum"), i); in ExpectMapFieldsSetViaReflection()
1281 message, F("map_int32_enum"), map_key)); in ExpectMapFieldsSetViaReflection()
1290 message, F("map_int32_foreign_message"), i); in ExpectMapFieldsSetViaReflection()
1293 const Message& foreign_message = sub_message->GetReflection()->GetMessage( in ExpectMapFieldsSetViaReflection()
1301 message, F("map_int32_foreign_message"), map_key)); in ExpectMapFieldsSetViaReflection()
1307 Message* message) { in ExpectMapFieldsSetViaReflectionIterator() argument
1310 const Reflection* reflection = message->GetReflection(); in ExpectMapFieldsSetViaReflectionIterator()
1312 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_int32_int32"))); in ExpectMapFieldsSetViaReflectionIterator()
1313 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_int64_int64"))); in ExpectMapFieldsSetViaReflectionIterator()
1314 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_uint32_uint32"))); in ExpectMapFieldsSetViaReflectionIterator()
1315 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_uint64_uint64"))); in ExpectMapFieldsSetViaReflectionIterator()
1316 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_sint32_sint32"))); in ExpectMapFieldsSetViaReflectionIterator()
1317 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_sint64_sint64"))); in ExpectMapFieldsSetViaReflectionIterator()
1318 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_fixed32_fixed32"))); in ExpectMapFieldsSetViaReflectionIterator()
1319 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_fixed64_fixed64"))); in ExpectMapFieldsSetViaReflectionIterator()
1320 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_sfixed32_sfixed32"))); in ExpectMapFieldsSetViaReflectionIterator()
1321 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_sfixed64_sfixed64"))); in ExpectMapFieldsSetViaReflectionIterator()
1322 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_int32_float"))); in ExpectMapFieldsSetViaReflectionIterator()
1323 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_int32_double"))); in ExpectMapFieldsSetViaReflectionIterator()
1324 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_bool_bool"))); in ExpectMapFieldsSetViaReflectionIterator()
1325 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_string_string"))); in ExpectMapFieldsSetViaReflectionIterator()
1326 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_int32_bytes"))); in ExpectMapFieldsSetViaReflectionIterator()
1327 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_int32_enum"))); in ExpectMapFieldsSetViaReflectionIterator()
1328 ASSERT_EQ(2, reflection->FieldSize(*message, F("map_int32_foreign_message"))); in ExpectMapFieldsSetViaReflectionIterator()
1335 for (MapIterator iter = reflection->MapBegin(message, F("map_int32_int32")); in ExpectMapFieldsSetViaReflectionIterator()
1336 iter != reflection->MapEnd(message, F("map_int32_int32")); in ExpectMapFieldsSetViaReflectionIterator()
1339 message->DebugString(); in ExpectMapFieldsSetViaReflectionIterator()
1340 message->ShortDebugString(); in ExpectMapFieldsSetViaReflectionIterator()
1341 message->SerializeToString(&serialized); in ExpectMapFieldsSetViaReflectionIterator()
1342 message->SpaceUsed(); in ExpectMapFieldsSetViaReflectionIterator()
1343 message->ByteSize(); in ExpectMapFieldsSetViaReflectionIterator()
1353 for (MapIterator iter = reflection->MapBegin(message, F("map_int64_int64")); in ExpectMapFieldsSetViaReflectionIterator()
1354 iter != reflection->MapEnd(message, F("map_int64_int64")); ++iter) { in ExpectMapFieldsSetViaReflectionIterator()
1364 message, F("map_uint32_uint32")); in ExpectMapFieldsSetViaReflectionIterator()
1365 iter != reflection->MapEnd(message, F("map_uint32_uint32")); in ExpectMapFieldsSetViaReflectionIterator()
1376 message, F("map_uint64_uint64")); in ExpectMapFieldsSetViaReflectionIterator()
1377 iter != reflection->MapEnd(message, F("map_uint64_uint64")); in ExpectMapFieldsSetViaReflectionIterator()
1388 message, F("map_sint32_sint32")); in ExpectMapFieldsSetViaReflectionIterator()
1389 iter != reflection->MapEnd(message, F("map_sint32_sint32")); in ExpectMapFieldsSetViaReflectionIterator()
1400 message, F("map_sint64_sint64")); in ExpectMapFieldsSetViaReflectionIterator()
1401 iter != reflection->MapEnd(message, F("map_sint64_sint64")); ++iter) { in ExpectMapFieldsSetViaReflectionIterator()
1411 message, F("map_fixed32_fixed32")); in ExpectMapFieldsSetViaReflectionIterator()
1412 iter != reflection->MapEnd(message, F("map_fixed32_fixed32")); in ExpectMapFieldsSetViaReflectionIterator()
1423 message, F("map_fixed64_fixed64")); in ExpectMapFieldsSetViaReflectionIterator()
1424 iter != reflection->MapEnd(message, F("map_fixed64_fixed64")); in ExpectMapFieldsSetViaReflectionIterator()
1435 message, F("map_sfixed32_sfixed32")); in ExpectMapFieldsSetViaReflectionIterator()
1436 iter != reflection->MapEnd(message, F("map_sfixed32_sfixed32")); in ExpectMapFieldsSetViaReflectionIterator()
1446 for (MapIterator iter = reflection->MapBegin(message, F("map_int32_float")); in ExpectMapFieldsSetViaReflectionIterator()
1447 iter != reflection->MapEnd(message, F("map_int32_float")); ++iter) { in ExpectMapFieldsSetViaReflectionIterator()
1457 message, F("map_int32_double")); in ExpectMapFieldsSetViaReflectionIterator()
1458 iter != reflection->MapEnd(message, F("map_int32_double")); ++iter) { in ExpectMapFieldsSetViaReflectionIterator()
1467 for (MapIterator iter = reflection->MapBegin(message, F("map_bool_bool")); in ExpectMapFieldsSetViaReflectionIterator()
1468 iter != reflection->MapEnd(message, F("map_bool_bool")); ++iter) { in ExpectMapFieldsSetViaReflectionIterator()
1479 message, F("map_string_string")); in ExpectMapFieldsSetViaReflectionIterator()
1480 iter != reflection->MapEnd(message, F("map_string_string")); in ExpectMapFieldsSetViaReflectionIterator()
1483 message->DebugString(); in ExpectMapFieldsSetViaReflectionIterator()
1484 message->ShortDebugString(); in ExpectMapFieldsSetViaReflectionIterator()
1485 message->SerializeToString(&serialized); in ExpectMapFieldsSetViaReflectionIterator()
1486 message->SpaceUsed(); in ExpectMapFieldsSetViaReflectionIterator()
1487 message->ByteSize(); in ExpectMapFieldsSetViaReflectionIterator()
1497 for (MapIterator iter = reflection->MapBegin(message, F("map_int32_bytes")); in ExpectMapFieldsSetViaReflectionIterator()
1498 iter != reflection->MapEnd(message, F("map_int32_bytes")); ++iter) { in ExpectMapFieldsSetViaReflectionIterator()
1507 for (MapIterator iter = reflection->MapBegin(message, F("map_int32_enum")); in ExpectMapFieldsSetViaReflectionIterator()
1508 iter != reflection->MapEnd(message, F("map_int32_enum")); ++iter) { in ExpectMapFieldsSetViaReflectionIterator()
1519 message, F("map_int32_foreign_message")); in ExpectMapFieldsSetViaReflectionIterator()
1520 iter != reflection->MapEnd(message, F("map_int32_foreign_message")); in ExpectMapFieldsSetViaReflectionIterator()
1523 message->DebugString(); in ExpectMapFieldsSetViaReflectionIterator()
1524 message->ShortDebugString(); in ExpectMapFieldsSetViaReflectionIterator()
1525 message->SerializeToString(&serialized); in ExpectMapFieldsSetViaReflectionIterator()
1526 message->SpaceUsed(); in ExpectMapFieldsSetViaReflectionIterator()
1527 message->ByteSize(); in ExpectMapFieldsSetViaReflectionIterator()
1528 const Message& sub_message = iter.GetValueRef().GetMessageValue(); in ExpectMapFieldsSetViaReflectionIterator()
1537 const Message& message) { in ExpectClearViaReflection() argument
1538 const Reflection* reflection = message.GetReflection(); in ExpectClearViaReflection()
1540 EXPECT_EQ(0, reflection->FieldSize(message, F("map_int32_int32"))); in ExpectClearViaReflection()
1541 EXPECT_EQ(0, reflection->FieldSize(message, F("map_int64_int64"))); in ExpectClearViaReflection()
1542 EXPECT_EQ(0, reflection->FieldSize(message, F("map_uint32_uint32"))); in ExpectClearViaReflection()
1543 EXPECT_EQ(0, reflection->FieldSize(message, F("map_uint64_uint64"))); in ExpectClearViaReflection()
1544 EXPECT_EQ(0, reflection->FieldSize(message, F("map_sint32_sint32"))); in ExpectClearViaReflection()
1545 EXPECT_EQ(0, reflection->FieldSize(message, F("map_sint64_sint64"))); in ExpectClearViaReflection()
1546 EXPECT_EQ(0, reflection->FieldSize(message, F("map_fixed32_fixed32"))); in ExpectClearViaReflection()
1547 EXPECT_EQ(0, reflection->FieldSize(message, F("map_fixed64_fixed64"))); in ExpectClearViaReflection()
1548 EXPECT_EQ(0, reflection->FieldSize(message, F("map_sfixed32_sfixed32"))); in ExpectClearViaReflection()
1549 EXPECT_EQ(0, reflection->FieldSize(message, F("map_sfixed64_sfixed64"))); in ExpectClearViaReflection()
1550 EXPECT_EQ(0, reflection->FieldSize(message, F("map_int32_float"))); in ExpectClearViaReflection()
1551 EXPECT_EQ(0, reflection->FieldSize(message, F("map_int32_double"))); in ExpectClearViaReflection()
1552 EXPECT_EQ(0, reflection->FieldSize(message, F("map_bool_bool"))); in ExpectClearViaReflection()
1553 EXPECT_EQ(0, reflection->FieldSize(message, F("map_string_string"))); in ExpectClearViaReflection()
1554 EXPECT_EQ(0, reflection->FieldSize(message, F("map_int32_bytes"))); in ExpectClearViaReflection()
1555 EXPECT_EQ(0, reflection->FieldSize(message, F("map_int32_enum"))); in ExpectClearViaReflection()
1556 EXPECT_EQ(0, reflection->FieldSize(message, F("map_int32_foreign_message"))); in ExpectClearViaReflection()
1560 Message* message) { in ExpectClearViaReflectionIterator() argument
1561 const Reflection* reflection = message->GetReflection(); in ExpectClearViaReflectionIterator()
1562 EXPECT_TRUE(reflection->MapBegin(message, F("map_int32_int32")) == in ExpectClearViaReflectionIterator()
1563 reflection->MapEnd(message, F("map_int32_int32"))); in ExpectClearViaReflectionIterator()
1564 EXPECT_TRUE(reflection->MapBegin(message, F("map_int64_int64")) == in ExpectClearViaReflectionIterator()
1565 reflection->MapEnd(message, F("map_int64_int64"))); in ExpectClearViaReflectionIterator()
1566 EXPECT_TRUE(reflection->MapBegin(message, F("map_uint32_uint32")) == in ExpectClearViaReflectionIterator()
1567 reflection->MapEnd(message, F("map_uint32_uint32"))); in ExpectClearViaReflectionIterator()
1568 EXPECT_TRUE(reflection->MapBegin(message, F("map_uint64_uint64")) == in ExpectClearViaReflectionIterator()
1569 reflection->MapEnd(message, F("map_uint64_uint64"))); in ExpectClearViaReflectionIterator()
1570 EXPECT_TRUE(reflection->MapBegin(message, F("map_sint32_sint32")) == in ExpectClearViaReflectionIterator()
1571 reflection->MapEnd(message, F("map_sint32_sint32"))); in ExpectClearViaReflectionIterator()
1572 EXPECT_TRUE(reflection->MapBegin(message, F("map_sint64_sint64")) == in ExpectClearViaReflectionIterator()
1573 reflection->MapEnd(message, F("map_sint64_sint64"))); in ExpectClearViaReflectionIterator()
1574 EXPECT_TRUE(reflection->MapBegin(message, F("map_fixed32_fixed32")) == in ExpectClearViaReflectionIterator()
1575 reflection->MapEnd(message, F("map_fixed32_fixed32"))); in ExpectClearViaReflectionIterator()
1576 EXPECT_TRUE(reflection->MapBegin(message, F("map_fixed64_fixed64")) == in ExpectClearViaReflectionIterator()
1577 reflection->MapEnd(message, F("map_fixed64_fixed64"))); in ExpectClearViaReflectionIterator()
1578 EXPECT_TRUE(reflection->MapBegin(message, F("map_sfixed32_sfixed32")) == in ExpectClearViaReflectionIterator()
1579 reflection->MapEnd(message, F("map_sfixed32_sfixed32"))); in ExpectClearViaReflectionIterator()
1580 EXPECT_TRUE(reflection->MapBegin(message, F("map_sfixed64_sfixed64")) == in ExpectClearViaReflectionIterator()
1581 reflection->MapEnd(message, F("map_sfixed64_sfixed64"))); in ExpectClearViaReflectionIterator()
1582 EXPECT_TRUE(reflection->MapBegin(message, F("map_int32_float")) == in ExpectClearViaReflectionIterator()
1583 reflection->MapEnd(message, F("map_int32_float"))); in ExpectClearViaReflectionIterator()
1584 EXPECT_TRUE(reflection->MapBegin(message, F("map_int32_double")) == in ExpectClearViaReflectionIterator()
1585 reflection->MapEnd(message, F("map_int32_double"))); in ExpectClearViaReflectionIterator()
1586 EXPECT_TRUE(reflection->MapBegin(message, F("map_bool_bool")) == in ExpectClearViaReflectionIterator()
1587 reflection->MapEnd(message, F("map_bool_bool"))); in ExpectClearViaReflectionIterator()
1588 EXPECT_TRUE(reflection->MapBegin(message, F("map_string_string")) == in ExpectClearViaReflectionIterator()
1589 reflection->MapEnd(message, F("map_string_string"))); in ExpectClearViaReflectionIterator()
1590 EXPECT_TRUE(reflection->MapBegin(message, F("map_int32_bytes")) == in ExpectClearViaReflectionIterator()
1591 reflection->MapEnd(message, F("map_int32_bytes"))); in ExpectClearViaReflectionIterator()
1592 EXPECT_TRUE(reflection->MapBegin(message, F("map_int32_enum")) == in ExpectClearViaReflectionIterator()
1593 reflection->MapEnd(message, F("map_int32_enum"))); in ExpectClearViaReflectionIterator()
1594 EXPECT_TRUE(reflection->MapBegin(message, F("map_int32_foreign_message")) == in ExpectClearViaReflectionIterator()
1595 reflection->MapEnd(message, F("map_int32_foreign_message"))); in ExpectClearViaReflectionIterator()
1599 Message* message) { in ExpectMapEntryClearViaReflection() argument
1600 const Reflection* reflection = message->GetReflection(); in ExpectMapEntryClearViaReflection()
1601 const Message* sub_message; in ExpectMapEntryClearViaReflection()
1609 sub_message = reflection->AddMessage(message, F("map_int32_int32")); in ExpectMapEntryClearViaReflection()
1621 sub_message = reflection->AddMessage(message, F("map_int64_int64")); in ExpectMapEntryClearViaReflection()
1633 sub_message = reflection->AddMessage(message, F("map_uint32_uint32")); in ExpectMapEntryClearViaReflection()
1645 sub_message = reflection->AddMessage(message, F("map_uint64_uint64")); in ExpectMapEntryClearViaReflection()
1657 sub_message = reflection->AddMessage(message, F("map_sint32_sint32")); in ExpectMapEntryClearViaReflection()
1669 sub_message = reflection->AddMessage(message, F("map_sint64_sint64")); in ExpectMapEntryClearViaReflection()
1681 sub_message = reflection->AddMessage(message, F("map_fixed32_fixed32")); in ExpectMapEntryClearViaReflection()
1693 sub_message = reflection->AddMessage(message, F("map_fixed64_fixed64")); in ExpectMapEntryClearViaReflection()
1705 sub_message = reflection->AddMessage(message, F("map_sfixed32_sfixed32")); in ExpectMapEntryClearViaReflection()
1717 sub_message = reflection->AddMessage(message, F("map_sfixed64_sfixed64")); in ExpectMapEntryClearViaReflection()
1729 sub_message = reflection->AddMessage(message, F("map_int32_float")); in ExpectMapEntryClearViaReflection()
1741 sub_message = reflection->AddMessage(message, F("map_int32_double")); in ExpectMapEntryClearViaReflection()
1753 sub_message = reflection->AddMessage(message, F("map_bool_bool")); in ExpectMapEntryClearViaReflection()
1765 sub_message = reflection->AddMessage(message, F("map_string_string")); in ExpectMapEntryClearViaReflection()
1777 sub_message = reflection->AddMessage(message, F("map_int32_bytes")); in ExpectMapEntryClearViaReflection()
1789 sub_message = reflection->AddMessage(message, F("map_int32_enum")); in ExpectMapEntryClearViaReflection()
1796 // Map using message as value has been tested in other place. Thus, we don't in ExpectMapEntryClearViaReflection()