/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | message_test.py | 81 golden_message.ParseFromString(golden_data) 90 golden_message.ParseFromString(golden_data) 101 golden_message.ParseFromString(golden_data) 112 golden_message.ParseFromString(golden_data) 123 golden_message.ParseFromString(golden_data) 145 golden_message.ParseFromString(golden_data) 158 golden_message.ParseFromString(golden_data) 171 golden_message.ParseFromString(golden_data) 183 message.ParseFromString(serialized) 193 golden_message.ParseFromString(golden_data) [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | text_format_unittest.cc | 348 EXPECT_TRUE(unknown_fields.ParseFromString(data)); in TEST_F() 387 ASSERT_TRUE(message.ParseFromString(serialized)); in TEST_F() 812 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F() 822 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F() 851 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F() 923 ASSERT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F() 950 ASSERT_FALSE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F() 952 ASSERT_FALSE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F() 954 ASSERT_FALSE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F() 956 ASSERT_FALSE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F() [all …]
|
D | lite_unittest.cc | 74 empty_message->ParseFromString(data); in SetAllTypesInEmptyMessageUnknownFields() 86 empty_message->ParseFromString(data); in SetSomeTypesInEmptyMessageUnknownFields() 98 message3.ParseFromString(data); in TEST() 117 message3.ParseFromString(extensions_data); in TEST() 137 message3.ParseFromString(packed_data); in TEST() 154 message3.ParseFromString(packed_extensions_data); in TEST() 203 parsing_merge.ParseFromString(buffer); in TEST() 232 ASSERT_TRUE(empty_message.ParseFromString(data)); in TEST() 235 EXPECT_TRUE(message2.ParseFromString(data)); in TEST() 252 empty_message.ParseFromString(data); in TEST() [all …]
|
D | wire_format_unittest.cc | 412 EXPECT_TRUE(dest.ParseFromString(data)); in TEST() 447 ASSERT_TRUE(raw.ParseFromString(data)); in TEST() 461 EXPECT_TRUE(message1.ParseFromString(raw.item(0).message())); in TEST() 465 EXPECT_TRUE(message2.ParseFromString(raw.item(1).message())); in TEST() 562 ASSERT_TRUE(message_set.ParseFromString(data)); in TEST() 612 ASSERT_TRUE(message_set.ParseFromString(data)); in TEST() 692 EXPECT_FALSE(message_set.ParseFromString(data)); in TEST() 698 EXPECT_FALSE(message_set.ParseFromString(input)); in TEST() 856 EXPECT_TRUE(msg2.ParseFromString(msg1.SerializeAsString())); in TEST() 869 ASSERT_TRUE(msg2.ParseFromString(serialized)); in TEST() [all …]
|
D | preserve_unknown_enum_test.cc | 97 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST() 102 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST() 119 EXPECT_EQ(true, message->ParseFromString(serialized)); in TEST() 123 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST() 136 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST() 145 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST() 163 EXPECT_EQ(true, message->ParseFromString(serialized)); in TEST() 173 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST() 185 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST()
|
D | drop_unknown_fields_test.cc | 51 ASSERT_TRUE(foo.ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST() 57 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo.SerializeAsString())); in TEST() 72 ASSERT_TRUE(foo->ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST() 75 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo->SerializeAsString())); in TEST()
|
D | unknown_field_set_unittest.cc | 69 ASSERT_TRUE(empty_message_.ParseFromString(all_fields_data_)); in SetUp() 273 ASSERT_TRUE(other_message.ParseFromString(GetBizarroData())); in TEST_F() 340 destination.ParseFromString(source.SerializeAsString()); in TEST_F() 375 ASSERT_TRUE(destination.ParseFromString(all_fields_data_ + data)); in TEST_F() 391 ASSERT_TRUE(all_types_message.ParseFromString(bizarro_data)); in TEST_F() 392 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F() 408 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F() 418 ASSERT_TRUE(message.ParseFromString(all_fields_data_)); in TEST_F() 442 ASSERT_TRUE(all_extensions_message.ParseFromString(bizarro_data)); in TEST_F() 443 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F() [all …]
|
D | any_test.cc | 48 ASSERT_TRUE(message.ParseFromString(data)); in TEST() 77 ASSERT_TRUE(message.ParseFromString(data)); in TEST() 111 ASSERT_TRUE(any.ParseFromString(any.SerializeAsString())); in TEST() 117 ASSERT_TRUE(message.ParseFromString(message.SerializeAsString())); in TEST()
|
D | lite_arena_unittest.cc | 70 to->ParseFromString(data); in TEST_F() 85 message->ParseFromString(data); in TEST_F()
|
D | proto3_arena_unittest.cc | 121 arena_message->ParseFromString(original.SerializeAsString()); in TEST() 131 arena_message->ParseFromString(original.SerializeAsString()); in TEST() 415 EXPECT_TRUE(msg2.ParseFromString(serialized)); in TEST() 427 EXPECT_TRUE(TextFormat::ParseFromString(text, &msg2)); in TEST() 439 EXPECT_TRUE(TextFormat::ParseFromString(text, &msg2)); in TEST()
|
D | map_test.cc | 2248 EXPECT_TRUE(message2.ParseFromString(data)); in TEST() 2267 EXPECT_TRUE(message2.ParseFromString(data)); in TEST() 2297 EXPECT_TRUE(to.ParseFromString(data)); in TEST() 2308 EXPECT_TRUE(from.ParseFromString(data)); in TEST() 2320 EXPECT_TRUE(message.ParseFromString(data)); in TEST() 2331 EXPECT_TRUE(message.ParseFromString(data)); in TEST() 2343 EXPECT_TRUE(message.ParseFromString(data)); in TEST() 2367 ASSERT_TRUE(map_message.ParseFromString(both)); in TEST() 2409 bool res = message.ParseFromString(wire_format); in TEST() 2433 EXPECT_TRUE(message.ParseFromString(data)); in TEST() [all …]
|
D | extension_set_unittest.cc | 523 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 547 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 567 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 591 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 604 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 629 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 642 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 653 EXPECT_TRUE(destination.ParseFromString(data)); in TEST() 677 EXPECT_TRUE(destination.ParseFromString(data)); in TEST()
|
D | any.cc | 61 return message->ParseFromString(value_->GetNoArena()); in UnpackTo()
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | unknown_fields_test.py | 66 self.empty_message.ParseFromString(self.all_fields_data) 78 message.ParseFromString(self.all_fields_data) 115 message_new.ParseFromString(d) 126 message.ParseFromString(self.all_fields_data) 130 message.ParseFromString(self.all_fields.SerializeToString()) 140 message.optional_nested_message.ParseFromString( 142 message.repeated_nested_message.add().ParseFromString( 154 msg.map_int32_all_types[1].optional_nested_message.ParseFromString( 175 self.empty_message.ParseFromString(self.all_fields_data) 280 source.ParseFromString(message.SerializeToString()) [all …]
|
D | message_test.py | 140 golden_message.ParseFromString(golden_data) 150 parsed_bytes = golden_message.ParseFromString(golden_data) 213 golden_message.ParseFromString(golden_data) 245 golden_message.ParseFromString(golden_data) 265 golden_message.ParseFromString(golden_data) 278 golden_message.ParseFromString(golden_data) 290 message.ParseFromString(serialized) 300 golden_message.ParseFromString(golden_data) 309 golden_message.ParseFromString(golden_data) 318 golden_message.ParseFromString(golden_data) [all …]
|
/third_party/protobuf/benchmarks/cpp/ |
D | cpp_benchmark.cc | 108 m.ParseFromString(payload); in BenchmarkCase() 131 m->ParseFromString(payload); in BenchmarkCase() 152 m.ParseFromString(payload); in BenchmarkCase() 166 message_.back()->ParseFromString(payloads_[i]); in SerializeFixture() 218 GOOGLE_CHECK(dataset.ParseFromString(dataset_bytes)); in RegisterBenchmarks()
|
/third_party/protobuf/conformance/ |
D | conformance_cpp.cc | 113 if (!test_message->ParseFromString(request.protobuf_payload())) { in DoTest() 137 if (!test_message->ParseFromString(proto_binary)) { in DoTest() 146 if (!TextFormat::ParseFromString(request.text_payload(), test_message)) { in DoTest() 225 if (!request.ParseFromString(serialized_input)) { in DoTestIo()
|
D | conformance_python.py | 67 hack_proto.ParseFromString(b"\322\002\001") 126 test_message.ParseFromString(request.protobuf_payload) 190 request.ParseFromString(serialized_request)
|
D | conformance_test.cc | 228 GOOGLE_CHECK(TextFormat::ParseFromString(equivalent_text_format, in RunValidInputTest() 256 GOOGLE_CHECK(reference_message->ParseFromString(equivalent_wire_format)) in VerifyResponse() 323 if (!response->ParseFromString(serialized_response)) { in RunTest()
|
/third_party/protobuf/benchmarks/python/ |
D | py_benchmark.py | 46 benchmark_dataset.ParseFromString(data) 74 benchmark_dataset.ParseFromString(data) 91 temp.ParseFromString(one_payload) 98 …m = message_class().ParseFromString(benchmark_dataset.payload[counter % len(benchmark_dataset.payl…
|
/third_party/protobuf/benchmarks/util/ |
D | proto3_data_stripper.cc | 40 GOOGLE_CHECK(dataset.ParseFromString(dataset_payload)) in main() 61 message->ParseFromString(dataset.payload(i)); in main()
|
D | gogo_data_scrubber.cc | 40 GOOGLE_CHECK(dataset.ParseFromString(dataset_payload)) in main() 61 message->ParseFromString(dataset.payload(i)); in main()
|
/third_party/protobuf/python/google/protobuf/ |
D | message.py | 193 def ParseFromString(self, serialized): member in Message 395 self.ParseFromString(serialized)
|
D | reflection.py | 77 new_msg.ParseFromString(byte_str)
|
/third_party/protobuf/examples/ |
D | list_people.py | 38 address_book.ParseFromString(f.read())
|