Home
last modified time | relevance | path

Searched refs:ParseFromString (Results 1 – 25 of 48) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Dlite_unittest.cc70 empty_message->ParseFromString(data); in SetAllTypesInEmptyMessageUnknownFields()
82 empty_message->ParseFromString(data); in SetSomeTypesInEmptyMessageUnknownFields()
96 message3.ParseFromString(data); in main()
112 message3.ParseFromString(extensions_data); in main()
128 message3.ParseFromString(packed_data); in main()
145 message3.ParseFromString(packed_extensions_data); in main()
190 parsing_merge.ParseFromString(buffer); in main()
214 empty_message.ParseFromString(data); in main()
217 message2.ParseFromString(data); in main()
230 empty_message.ParseFromString(data); in main()
[all …]
Dwire_format_unittest.cc403 EXPECT_TRUE(dest.ParseFromString(data)); in TEST()
434 ASSERT_TRUE(raw.ParseFromString(data)); in TEST()
448 EXPECT_TRUE(message1.ParseFromString(raw.item(0).message())); in TEST()
452 EXPECT_TRUE(message2.ParseFromString(raw.item(1).message())); in TEST()
542 ASSERT_TRUE(message_set.ParseFromString(data)); in TEST()
586 ASSERT_TRUE(message_set.ParseFromString(data)); in TEST()
607 EXPECT_FALSE(message_set.ParseFromString(input)); in TEST()
765 EXPECT_TRUE(msg2.ParseFromString(msg1.SerializeAsString())); in TEST()
778 ASSERT_TRUE(msg2.ParseFromString(serialized)); in TEST()
783 ASSERT_TRUE(msg3.ParseFromString(serialized)); in TEST()
[all …]
Dunknown_field_set_unittest.cc62 ASSERT_TRUE(empty_message_.ParseFromString(all_fields_data_)); in SetUp()
263 ASSERT_TRUE(other_message.ParseFromString(GetBizarroData())); in TEST_F()
329 ASSERT_TRUE(destination.ParseFromString(all_fields_data_ + data)); in TEST_F()
345 ASSERT_TRUE(all_types_message.ParseFromString(bizarro_data)); in TEST_F()
346 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F()
362 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F()
372 ASSERT_TRUE(message.ParseFromString(all_fields_data_)); in TEST_F()
396 ASSERT_TRUE(all_extensions_message.ParseFromString(bizarro_data)); in TEST_F()
397 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F()
432 ASSERT_TRUE(message.ParseFromString(data)); in TEST_F()
[all …]
Dtext_format_unittest.cc322 EXPECT_TRUE(unknown_fields.ParseFromString(data)); in TEST_F()
549 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F()
559 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F()
632 ASSERT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F()
829 EXPECT_TRUE(parser.ParseFromString("a: 1", &message)); in TEST_F()
837 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_F()
949 EXPECT_EQ(expected_result, parser.ParseFromString(input, proto)) in ExpectMessage()
962 EXPECT_TRUE(parser.ParseFromString(input, proto)); in ExpectSuccessAndTree()
1233 EXPECT_FALSE(parser.ParseFromString("Optional_Double: 10.0", &proto)); in TEST_F()
1234 EXPECT_FALSE(parser.ParseFromString("oPtIoNaLgRoUp { a: 15 }", &proto)); in TEST_F()
[all …]
Dmessage_unittest.cc147 EXPECT_TRUE(message.ParseFromString(data)); in TEST()
186 EXPECT_FALSE(message.ParseFromString("")); in TEST()
333 parsing_merge.ParseFromString(buffer); in TEST()
Dextension_set_unittest.cc351 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
375 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
395 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
419 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
431 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
444 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
455 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
476 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
Ddescriptor_database_unittest.cc56 EXPECT_TRUE(TextFormat::ParseFromString(file_text, &file_proto)); in AddToDatabase()
168 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabase()
174 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabaseWithError()
Dtext_format.h282 static bool ParseFromString(const string& input, Message* output);
371 bool ParseFromString(const string& input, Message* output);
/external/protobuf/python/google/protobuf/internal/
Dmessage_test.py89 golden_message.ParseFromString(golden_data)
98 golden_message.ParseFromString(golden_data)
109 golden_message.ParseFromString(golden_data)
120 golden_message.ParseFromString(golden_data)
131 golden_message.ParseFromString(golden_data)
154 golden_message.ParseFromString(golden_data)
167 golden_message.ParseFromString(golden_data)
180 golden_message.ParseFromString(golden_data)
192 message.ParseFromString(serialized)
202 golden_message.ParseFromString(golden_data)
[all …]
Dunknown_fields_test.py55 self.empty_message.ParseFromString(self.all_fields_data)
114 source.ParseFromString(message.SerializeToString())
120 destination.ParseFromString(message.SerializeToString())
136 message.ParseFromString(self.all_fields_data)
170 message.ParseFromString(self.all_fields_data)
174 message.ParseFromString(self.all_fields.SerializeToString())
196 self.missing_message.ParseFromString(self.message_data)
226 new_message.ParseFromString(self.missing_message.SerializeToString())
/external/autotest/client/site_tests/login_OwnershipTaken/
Dlogin_OwnershipTaken.py41 response_proto.ParseFromString(retrieved_policy)
45 poldata.ParseFromString(response_proto.policy_data)
50 polval.ParseFromString(poldata.policy_value)
/external/google-tv-pairing-protocol/cpp/src/polo/wire/protobuf/
Dprotobufwireadapter.cc176 if (!outer.ParseFromString(string)) { in ParseMessage()
231 if (!configuration.ParseFromString(payload)) { in ParseConfigurationMessage()
250 if (!ack.ParseFromString(payload)) { in ParseConfigurationAckMessage()
262 if (!options.ParseFromString(payload)) { in ParseOptionsMessage()
295 if (!request.ParseFromString(payload)) { in ParsePairingRequestMessage()
314 if (!ack.ParseFromString(payload)) { in ParsePairingRequestAckMessage()
331 if (!secret.ParseFromString(payload)) { in ParseSecretMessage()
346 if (!ack.ParseFromString(payload)) { in ParseSecretAckMessage()
/external/autotest/client/common_lib/cros/
Dpolicy.py53 response_proto.ParseFromString(policy_response)
57 data_proto.ParseFromString(response_proto.policy_data)
62 settings.ParseFromString(data_proto.policy_value)
/external/protobuf/python/google/protobuf/
Dmessage.py179 def ParseFromString(self, serialized): member in Message
284 self.ParseFromString(state['serialized'])
Ddescriptor.py176 proto.ParseFromString(self.file.serialized_pb[
744 proto.ParseFromString(self.serialized_pb)
753 message.ParseFromString(string)
/external/nanopb-c/generator/google/protobuf/
Dmessage.py179 def ParseFromString(self, serialized): member in Message
280 self.ParseFromString(state['serialized'])
Ddescriptor.py169 proto.ParseFromString(self.file.serialized_pb[
675 proto.ParseFromString(self.serialized_pb)
684 message.ParseFromString(string)
Dreflection.py168 new_msg.ParseFromString(byte_str)
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc599 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
613 EXPECT_TRUE(packed_message2.ParseFromString(packed_data)); in TEST()
633 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
652 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
718 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
817 ASSERT_TRUE(message2.ParseFromString(data)); in TEST()
1757 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
1771 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
1786 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
1800 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
[all …]
/external/libbrillo/policy/
Ddevice_policy_impl.cc116 if (!policy_.ParseFromString(polstr) || !policy_.has_policy_data()) { in LoadPolicy()
120 policy_data_.ParseFromString(policy_.policy_data()); in LoadPolicy()
132 device_policy_.ParseFromString(policy_data_.policy_value()); in LoadPolicy()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_flags.h28 void ParseFromString(const char *str);
/external/protobuf/examples/
Dlist_people.py35 address_book.ParseFromString(f.read())
Dadd_person.py47 address_book.ParseFromString(f.read())
/external/autotest/client/site_tests/network_DestinationVerification/
Dnetwork_DestinationVerification.py249 response.ParseFromString(output)
281 response.ParseFromString(output)
/external/libchrome/base/
Dcommand_line.cc213 current_process_commandline_->ParseFromString(::GetCommandLineW()); in Init()
243 cmd.ParseFromString(command_line); in FromString()
414 void CommandLine::ParseFromString(const string16& command_line) { in ParseFromString() function in base::CommandLine

12