Lines Matching refs:protobuf
36 #include <google/protobuf/stubs/logging.h>
37 #include <google/protobuf/stubs/common.h>
38 #include <google/protobuf/arena_test_util.h>
39 #include <google/protobuf/map_lite_unittest.pb.h>
40 #include <google/protobuf/map_lite_test_util.h>
41 #include <google/protobuf/test_util_lite.h>
42 #include <google/protobuf/unittest_lite.pb.h>
43 #include <google/protobuf/io/coded_stream.h>
44 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
45 #include <google/protobuf/wire_format_lite.h>
46 #include <google/protobuf/wire_format_lite_inl.h>
47 #include <google/protobuf/stubs/strutil.h>
53 void ExpectMessageMerged(const google::protobuf::unittest::TestAllTypesLite& message) {
60 google::protobuf::unittest::TestAllTypesLite* msg1,
61 google::protobuf::unittest::TestAllTypesLite* msg2,
62 google::protobuf::unittest::TestAllTypesLite* msg3) {
70 google::protobuf::unittest::TestEmptyMessageLite* empty_message) {
72 google::protobuf::TestUtilLite::ExpectClear(message);
73 google::protobuf::TestUtilLite::SetAllFields(&message);
79 google::protobuf::unittest::TestEmptyMessageLite* empty_message) {
81 google::protobuf::TestUtilLite::ExpectClear(message);
103 google::protobuf::TestUtilLite::ExpectClear(message);
104 google::protobuf::TestUtilLite::SetAllFields(&message);
108 google::protobuf::TestUtilLite::ExpectAllFieldsSet(message);
109 google::protobuf::TestUtilLite::ExpectAllFieldsSet(message2);
110 google::protobuf::TestUtilLite::ExpectAllFieldsSet(message3);
111 google::protobuf::TestUtilLite::ModifyRepeatedFields(&message);
112 google::protobuf::TestUtilLite::ExpectRepeatedFieldsModified(message);
114 google::protobuf::TestUtilLite::ExpectClear(message);
119 google::protobuf::TestUtilLite::ExpectExtensionsClear(message);
120 google::protobuf::TestUtilLite::SetAllExtensions(&message);
124 google::protobuf::TestUtilLite::ExpectAllExtensionsSet(message);
125 google::protobuf::TestUtilLite::ExpectAllExtensionsSet(message2);
126 google::protobuf::TestUtilLite::ExpectAllExtensionsSet(message3);
127 google::protobuf::TestUtilLite::ModifyRepeatedExtensions(&message);
128 google::protobuf::TestUtilLite::ExpectRepeatedExtensionsModified(message);
130 google::protobuf::TestUtilLite::ExpectExtensionsClear(message);
135 google::protobuf::TestUtilLite::ExpectPackedClear(message);
136 google::protobuf::TestUtilLite::SetPackedFields(&message);
140 google::protobuf::TestUtilLite::ExpectPackedFieldsSet(message);
141 google::protobuf::TestUtilLite::ExpectPackedFieldsSet(message2);
142 google::protobuf::TestUtilLite::ExpectPackedFieldsSet(message3);
143 google::protobuf::TestUtilLite::ModifyPackedFields(&message);
144 google::protobuf::TestUtilLite::ExpectPackedFieldsModified(message);
146 google::protobuf::TestUtilLite::ExpectPackedClear(message);
151 google::protobuf::TestUtilLite::ExpectPackedExtensionsClear(message);
152 google::protobuf::TestUtilLite::SetPackedExtensions(&message);
157 google::protobuf::TestUtilLite::ExpectPackedExtensionsSet(message);
158 google::protobuf::TestUtilLite::ExpectPackedExtensionsSet(message2);
159 google::protobuf::TestUtilLite::ExpectPackedExtensionsSet(message3);
160 google::protobuf::TestUtilLite::ModifyPackedExtensions(&message);
161 google::protobuf::TestUtilLite::ExpectPackedExtensionsModified(message);
163 google::protobuf::TestUtilLite::ExpectPackedExtensionsClear(message);
169 google::protobuf::unittest::TestParsingMergeLite::RepeatedFieldsGenerator generator;
170 google::protobuf::unittest::TestAllTypesLite* msg1;
171 google::protobuf::unittest::TestAllTypesLite* msg2;
172 google::protobuf::unittest::TestAllTypesLite* msg3;
200 google::protobuf::unittest::TestParsingMergeLite parsing_merge;
209 google::protobuf::unittest::TestParsingMergeLite::optional_ext));
215 google::protobuf::unittest::TestParsingMergeLite::repeated_ext) == 3);
222 google::protobuf::TestUtilLite::ExpectClear(message);
223 google::protobuf::TestUtilLite::SetAllFields(&message);
230 google::protobuf::TestUtilLite::ExpectAllFieldsSet(message2);
232 google::protobuf::TestUtilLite::ExpectClear(message);
238 google::protobuf::TestUtilLite::ExpectExtensionsClear(message);
239 google::protobuf::TestUtilLite::SetAllExtensions(&message);
246 google::protobuf::TestUtilLite::ExpectAllExtensionsSet(message2);
248 google::protobuf::TestUtilLite::ExpectExtensionsClear(message);
254 google::protobuf::TestUtilLite::ExpectPackedClear(message);
255 google::protobuf::TestUtilLite::SetPackedFields(&message);
262 google::protobuf::TestUtilLite::ExpectPackedFieldsSet(message2);
264 google::protobuf::TestUtilLite::ExpectPackedClear(message);
270 google::protobuf::TestUtilLite::ExpectPackedExtensionsClear(message);
271 google::protobuf::TestUtilLite::SetPackedExtensions(&message);
278 google::protobuf::TestUtilLite::ExpectPackedExtensionsSet(message2);
280 google::protobuf::TestUtilLite::ExpectPackedExtensionsClear(message);
310 message.set_optional_nested_enum(google::protobuf::unittest::TestAllTypesLite::BAZ);
313 message2.set_optional_foreign_enum(google::protobuf::unittest::FOREIGN_LITE_BAZ);
335 google::protobuf::io::StringOutputStream output_stream(&buffer);
336 google::protobuf::io::CodedOutputStream coded_output(&output_stream);
337 google::protobuf::internal::WireFormatLite::WriteTag(
339 google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT, &coded_output);
341 google::protobuf::internal::WireFormatLite::WriteTag(
343 google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT, &coded_output);
365 google::protobuf::MapLiteTestUtil::SetMapFields(&message);
366 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message);
368 google::protobuf::MapLiteTestUtil::ModifyMapFields(&message);
369 google::protobuf::MapLiteTestUtil::ExpectMapFieldsModified(message);
376 google::protobuf::MapLiteTestUtil::SetMapFieldsInitialized(&message);
377 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSetInitialized(message);
384 google::protobuf::MapLiteTestUtil::SetMapFields(&message);
386 google::protobuf::MapLiteTestUtil::ExpectClear(message);
394 google::protobuf::TestUtilLite::ExpectClear(
402 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
404 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
408 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
429 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
430 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message1);
431 google::protobuf::MapLiteTestUtil::ExpectClear(message2);
434 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
435 google::protobuf::MapLiteTestUtil::ExpectClear(message1);
442 google::protobuf::MapLiteTestUtil::SetMapFields(&message);
443 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message);
446 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message);
453 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
454 google::protobuf::MapLiteTestUtil::SetMapFields(&message2);
455 google::protobuf::MapLiteTestUtil::ModifyMapFields(&message2);
458 google::protobuf::MapLiteTestUtil::ExpectMapFieldsModified(message1);
459 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
465 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
468 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
474 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
478 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
482 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
489 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
500 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message1);
521 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
524 ::google::protobuf::uint8* start = reinterpret_cast< ::google::protobuf::uint8*>(::google::protobuf::string_as_array(&data));
525 ::google::protobuf::uint8* end = message1.SerializeWithCachedSizesToArray(start);
528 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);
534 google::protobuf::MapLiteTestUtil::SetMapFields(&message1);
540 google::protobuf::io::ArrayOutputStream array_stream(
541 ::google::protobuf::string_as_array(&data), size, 1);
542 google::protobuf::io::CodedOutputStream output_stream(&array_stream);
548 google::protobuf::MapLiteTestUtil::ExpectMapFieldsSet(message2);