Home
last modified time | relevance | path

Searched refs:unknown_fields (Results 1 – 17 of 17) sorted by relevance

/external/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc183 empty_message_.unknown_fields()); in TEST_F()
191 empty_message_.unknown_fields(), target); in TEST_F()
197 WireFormat::SerializeUnknownFields(empty_message_.unknown_fields(), in TEST_F()
260 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
261 EXPECT_GT(other_message.unknown_fields().field_count(), 0); in TEST_F()
273 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
276 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
318 ASSERT_EQ(1, destination.unknown_fields().field_count()); in TEST_F()
320 destination.unknown_fields().field(0).type()); in TEST_F()
321 EXPECT_EQ(654321, destination.unknown_fields().field(0).varint()); in TEST_F()
[all …]
Dreflection_ops_unittest.cc146 ASSERT_EQ(2, message1.unknown_fields().field_count()); in TEST()
148 message1.unknown_fields().field(0).type()); in TEST()
149 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST()
151 message1.unknown_fields().field(1).type()); in TEST()
152 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST()
220 EXPECT_EQ(0, message.unknown_fields().field_count()); in TEST()
237 EXPECT_EQ(1, message.unknown_fields().field_count()); in TEST()
239 .unknown_fields().field_count()); in TEST()
241 .unknown_fields().field_count()); in TEST()
247 EXPECT_EQ(0, message.unknown_fields().field_count()); in TEST()
[all …]
Dwire_format.h133 UnknownFieldSet* unknown_fields);
138 UnknownFieldSet* unknown_fields);
141 static void SerializeUnknownFields(const UnknownFieldSet& unknown_fields,
149 const UnknownFieldSet& unknown_fields,
155 const UnknownFieldSet& unknown_fields,
163 const UnknownFieldSet& unknown_fields,
167 static int ComputeUnknownFieldsSize(const UnknownFieldSet& unknown_fields);
172 const UnknownFieldSet& unknown_fields);
247 UnknownFieldSetFieldSkipper(UnknownFieldSet* unknown_fields) in UnknownFieldSetFieldSkipper() argument
248 : unknown_fields_(unknown_fields) {} in UnknownFieldSetFieldSkipper()
Dwire_format.cc83 UnknownFieldSet* unknown_fields) { in SkipField() argument
90 if (unknown_fields != NULL) unknown_fields->AddVarint(number, value); in SkipField()
96 if (unknown_fields != NULL) unknown_fields->AddFixed64(number, value); in SkipField()
102 if (unknown_fields == NULL) { in SkipField()
105 if (!input->ReadString(unknown_fields->AddLengthDelimited(number), in SkipField()
114 if (!SkipMessage(input, (unknown_fields == NULL) ? in SkipField()
115 NULL : unknown_fields->AddGroup(number))) { in SkipField()
133 if (unknown_fields != NULL) unknown_fields->AddFixed32(number, value); in SkipField()
143 UnknownFieldSet* unknown_fields) { in SkipMessage() argument
158 if (!SkipField(input, tag, unknown_fields)) return false; in SkipMessage()
[all …]
Dtext_format.h66 static bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
73 static bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
95 bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
100 bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
178 void PrintUnknownFields(const UnknownFieldSet& unknown_fields,
Ddescriptor.pb.cc754 if (!unknown_fields().empty()) { in SerializeWithCachedSizes()
756 unknown_fields(), output); in SerializeWithCachedSizes()
769 if (!unknown_fields().empty()) { in SerializeWithCachedSizesToArray()
771 unknown_fields(), target); in SerializeWithCachedSizesToArray()
787 if (!unknown_fields().empty()) { in ByteSize()
790 unknown_fields()); in ByteSize()
813 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); in MergeFrom()
1159 if (!unknown_fields().empty()) { in SerializeWithCachedSizes()
1161 unknown_fields(), output); in SerializeWithCachedSizes()
1231 if (!unknown_fields().empty()) { in SerializeWithCachedSizesToArray()
[all …]
Dtext_format_unittest.cc230 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F() local
232 unknown_fields->AddVarint(5, 1); in TEST_F()
233 unknown_fields->AddFixed32(5, 2); in TEST_F()
234 unknown_fields->AddFixed64(5, 3); in TEST_F()
235 unknown_fields->AddLengthDelimited(5, "4"); in TEST_F()
236 unknown_fields->AddGroup(5)->AddVarint(10, 5); in TEST_F()
238 unknown_fields->AddVarint(8, 1); in TEST_F()
239 unknown_fields->AddVarint(8, 2); in TEST_F()
240 unknown_fields->AddVarint(8, 3); in TEST_F()
287 UnknownFieldSet unknown_fields; in TEST_F() local
[all …]
Ddescriptor.cc2078 const UnknownFieldSet& unknown_fields);
2083 UnknownFieldSet* unknown_fields);
2088 UnknownFieldSet* unknown_fields);
2090 UnknownFieldSet* unknown_fields);
2092 UnknownFieldSet* unknown_fields);
2094 UnknownFieldSet* unknown_fields);
3997 scoped_ptr<UnknownFieldSet> unknown_fields(new UnknownFieldSet()); in InterpretSingleOption() local
3998 if (!SetOptionValue(field, unknown_fields.get())) { in InterpretSingleOption()
4013 internal::WireFormat::SerializeUnknownFields(*unknown_fields, &out); in InterpretSingleOption()
4022 ->MergeFrom(*unknown_fields); in InterpretSingleOption()
[all …]
Dtext_format.cc868 const UnknownFieldSet& unknown_fields, in PrintUnknownFieldsToString() argument
874 return PrintUnknownFields(unknown_fields, &output_stream); in PrintUnknownFieldsToString()
888 const UnknownFieldSet& unknown_fields, in PrintUnknownFields() argument
892 PrintUnknownFields(unknown_fields, generator); in PrintUnknownFields()
1103 const UnknownFieldSet& unknown_fields, in PrintUnknownFields() argument
1105 return Printer().PrintUnknownFields(unknown_fields, output); in PrintUnknownFields()
1114 const UnknownFieldSet& unknown_fields, string* output) { in PrintUnknownFieldsToString() argument
1115 return Printer().PrintUnknownFieldsToString(unknown_fields, output); in PrintUnknownFieldsToString()
1146 const UnknownFieldSet& unknown_fields, TextGenerator& generator) { in PrintUnknownFields() argument
1147 for (int i = 0; i < unknown_fields.field_count(); i++) { in PrintUnknownFields()
[all …]
Dgenerated_message_reflection_unittest.cc202 EXPECT_EQ(1, message1.unknown_fields().field_count()); in TEST()
203 EXPECT_EQ(0, message2.unknown_fields().field_count()); in TEST()
206 EXPECT_EQ(0, message1.unknown_fields().field_count()); in TEST()
207 EXPECT_EQ(1, message2.unknown_fields().field_count()); in TEST()
Dextension_set_heavy.cc207 UnknownFieldSet* unknown_fields) { in ParseField() argument
208 UnknownFieldSetFieldSkipper skipper(unknown_fields); in ParseField()
222 UnknownFieldSet* unknown_fields) { in ParseMessageSet() argument
223 UnknownFieldSetFieldSkipper skipper(unknown_fields); in ParseMessageSet()
Dwire_format_unittest.cc357 EXPECT_EQ(0, raw.unknown_fields().field_count()); in TEST()
470 ASSERT_EQ(1, message_set.unknown_fields().field_count()); in TEST()
472 message_set.unknown_fields().field(0).type()); in TEST()
473 EXPECT_EQ("bar", message_set.unknown_fields().field(0).length_delimited()); in TEST()
772 UnknownFieldSet unknown_fields; in TEST_F() local
773 EXPECT_FALSE(WireFormat::SkipMessage(&coded_input, &unknown_fields)); in TEST_F()
Ddescriptor.pb.h164 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
258 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
440 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
537 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
705 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
931 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
1045 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
1154 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
1268 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
1393 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
[all …]
Dextension_set.h330 UnknownFieldSet* unknown_fields);
344 UnknownFieldSet* unknown_fields);
/external/protobuf/src/google/protobuf/compiler/
Dplugin.pb.cc329 if (!unknown_fields().empty()) { in SerializeWithCachedSizes()
331 unknown_fields(), output); in SerializeWithCachedSizes()
363 if (!unknown_fields().empty()) { in SerializeWithCachedSizesToArray()
365 unknown_fields(), target); in SerializeWithCachedSizesToArray()
397 if (!unknown_fields().empty()) { in ByteSize()
400 unknown_fields()); in ByteSize()
429 mutable_unknown_fields()->MergeFrom(from.unknown_fields()); in MergeFrom()
666 if (!unknown_fields().empty()) { in SerializeWithCachedSizes()
668 unknown_fields(), output); in SerializeWithCachedSizes()
704 if (!unknown_fields().empty()) { in SerializeWithCachedSizesToArray()
[all …]
Dplugin.pb.h56 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
179 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
296 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py1763 unknown_fields = unittest_pb2.TestEmptyMessage()
1771 pos2 = unknown_fields._InternalParse(serialized, 0, truncation_point)
1778 self.assertRaises(message.DecodeError, unknown_fields._InternalParse,