Lines Matching refs:message1
151 unittest::TestAllTypes message1;
154 TestUtil::SetAllFields(&message1);
156 const Reflection* reflection = message1.GetReflection();
157 reflection->Swap(&message1, &message2);
159 TestUtil::ExpectClear(message1);
164 unittest::TestAllTypes message1;
167 TestUtil::SetAllFields(&message1);
171 const Reflection* reflection = message1.GetReflection();
172 reflection->Swap(&message1, &message2);
174 TestUtil::ExpectRepeatedFieldsModified(message1);
177 message1.set_optional_int32(532819);
179 reflection->Swap(&message1, &message2);
185 unittest::TestAllExtensions message1;
188 TestUtil::SetAllExtensions(&message1);
190 const Reflection* reflection = message1.GetReflection();
191 reflection->Swap(&message1, &message2);
193 TestUtil::ExpectExtensionsClear(message1);
198 unittest::TestEmptyMessage message1, message2;
200 message1.mutable_unknown_fields()->AddVarint(1234, 1);
202 EXPECT_EQ(1, message1.unknown_fields().field_count());
204 const Reflection* reflection = message1.GetReflection();
205 reflection->Swap(&message1, &message2);
206 EXPECT_EQ(0, message1.unknown_fields().field_count());