Home
last modified time | relevance | path

Searched refs:SerializeToString (Results 1 – 25 of 65) sorted by relevance

123

/third_party/protobuf/python/google/protobuf/internal/
Dunknown_fields_test.py64 self.all_fields_data = self.all_fields.SerializeToString()
69 data = self.empty_message.SerializeToString()
79 self.assertEqual(self.all_fields_data, message.SerializeToString())
98 item.message = message1.SerializeToString()
100 serialized = raw.SerializeToString()
119 reserialized = proto.SerializeToString()
130 message.ParseFromString(self.all_fields.SerializeToString())
135 self.assertEqual(b'', self.empty_message.SerializeToString())
141 other_message.SerializeToString())
143 other_message.SerializeToString())
[all …]
Dmessage_test.py143 self.assertEqual(golden_data, golden_message.SerializeToString())
145 self.assertEqual(golden_data, golden_copy.SerializeToString())
155 self.assertEqual(golden_data, all_set.SerializeToString())
157 self.assertEqual(golden_data, golden_copy.SerializeToString())
190 golden_message.SerializeToString(deterministic=None))
192 golden_message.SerializeToString(deterministic=False))
194 golden_message.SerializeToString(deterministic=True))
208 golden_message.SerializeToString(deterministic=BadArg())
250 self.assertEqual(golden_data, golden_message.SerializeToString())
270 self.assertEqual(golden_data, golden_message.SerializeToString())
[all …]
Dreflection_test.py408 proto2.ParseFromString(proto.SerializeToString())
662 string1 = proto1.SerializeToString()
728 string1 = proto1.SerializeToString()
729 string2 = proto2.SerializeToString()
782 string1 = proto1.SerializeToString()
783 string2 = proto2.SerializeToString()
900 serialized = proto.SerializeToString()
1509 serialized_prius = prius.SerializeToString()
1898 proto.SerializeToString()
1906 self.assertRaises(message.EncodeError, proto.SerializeToString)
[all …]
Dmessage_factory_test.py88 serialized = msg.SerializeToString()
90 reserialized = converted.SerializeToString()
Dtest_util.py388 expected_strings.append(message.SerializeToString())
391 expected_strings.append(message.SerializeToString())
394 expected_strings.append(message.SerializeToString())
397 expected_strings.append(message.SerializeToString())
400 expected_strings.append(message.SerializeToString())
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dmessage_test.py83 self.assertEqual(golden_data, golden_message.SerializeToString())
85 self.assertEqual(golden_data, golden_copy.SerializeToString())
94 self.assertEqual(golden_data, golden_message.SerializeToString())
96 self.assertEqual(golden_data, golden_copy.SerializeToString())
105 self.assertEqual(golden_data, all_set.SerializeToString())
107 self.assertEqual(golden_data, golden_copy.SerializeToString())
116 self.assertEqual(golden_data, all_set.SerializeToString())
118 self.assertEqual(golden_data, golden_copy.SerializeToString())
137 self.assertRaises(message.EncodeError, unpickled_message.SerializeToString)
150 self.assertEqual(golden_data, golden_message.SerializeToString())
[all …]
Dtest_util.py347 expected_strings.append(message.SerializeToString())
350 expected_strings.append(message.SerializeToString())
353 expected_strings.append(message.SerializeToString())
356 expected_strings.append(message.SerializeToString())
359 expected_strings.append(message.SerializeToString())
/third_party/node/deps/v8/src/torque/ls/
Djson.cc18 void SerializeToString(std::stringstream& str, const JsonValue& value) { in SerializeToString() function
37 SerializeToString(str, pair.second); in SerializeToString()
47 SerializeToString(str, element); in SerializeToString()
60 std::string SerializeToString(const JsonValue& value) { in SerializeToString() function
62 SerializeToString(result, value); in SerializeToString()
/third_party/protobuf/src/google/protobuf/
Dpreserve_unknown_enum_test.cc94 orig_message.SerializeToString(&serialized); in TEST()
101 message.SerializeToString(&serialized); in TEST()
133 orig_message.SerializeToString(&serialized); in TEST()
144 message.SerializeToString(&serialized); in TEST()
155 orig_message.SerializeToString(&serialized); in TEST()
172 message->SerializeToString(&serialized); in TEST()
182 orig_message.SerializeToString(&serialized); in TEST()
Dno_field_presence_test.cc425 message.SerializeToString(&output); in TEST()
449 message.SerializeToString(&output); in TEST()
453 message.SerializeToString(&output); in TEST()
458 message.SerializeToString(&output); in TEST()
515 message.SerializeToString(&output); in TEST()
534 message.SerializeToString(&serialized); in TEST()
551 message.SerializeToString(&serialized); in TEST()
561 message.SerializeToString(&serialized); in TEST()
Dwire_format_unittest.cc96 source.SerializeToString(&data); in TEST()
113 source.SerializeToString(&data); in TEST()
130 source.SerializeToString(&data); in TEST()
179 source.SerializeToString(&data); in TEST()
196 source.SerializeToString(&data); in TEST()
408 source.SerializeToString(&data); in TEST()
443 ASSERT_TRUE(message_set.SerializeToString(&data)); in TEST()
538 message.SerializeToString(item->mutable_message()); in TEST()
548 message.SerializeToString(item->mutable_message()); in TEST()
558 ASSERT_TRUE(raw.SerializeToString(&data)); in TEST()
[all …]
Dlite_unittest.cc201 generator.SerializeToString(&buffer); in TEST()
661 from.SerializeToString(&data); in TEST()
673 to.SerializeToString(&data); in TEST()
871 EXPECT_TRUE(message1.SerializeToString(&serialized)); in TEST()
913 EXPECT_TRUE(original.SerializeToString(&serialized)); in TEST()
929 EXPECT_TRUE(original.SerializeToString(&serialized)); in TEST()
945 EXPECT_TRUE(original.SerializeToString(&serialized)); in TEST()
961 EXPECT_TRUE(original.SerializeToString(&serialized)); in TEST()
977 EXPECT_TRUE(original.SerializeToString(&serialized)); in TEST()
1017 ASSERT_TRUE(packed.SerializeToString(&serialized)); in TEST()
[all …]
Dproto3_arena_unittest.cc207 msg.SerializeToString(&serialized); in TEST()
212 msg.SerializeToString(&serialized); in TEST()
240 msg.SerializeToString(&serialized); in TEST()
245 msg.SerializeToString(&serialized); in TEST()
414 msg.SerializeToString(&serialized); in TEST()
Dunknown_field_set_unittest.cc68 all_fields_.SerializeToString(&all_fields_data_); in SetUp()
101 EXPECT_TRUE(bizarro_message.SerializeToString(&data)); in GetBizarroData()
224 empty_message_.SerializeToString(&data); in TEST_F()
372 ASSERT_TRUE(source.SerializeToString(&data)); in TEST_F()
473 empty_message.SerializeToString(&data); in TEST_F()
Dany.cc53 message.SerializeToString(value_->MutableNoArena( in PackFrom()
Dlite_arena_unittest.cc66 from->SerializeToString(&data); in TEST_F()
Dany_lite.cc64 message.SerializeToString(value_->MutableNoArena( in InternalPackFrom()
/third_party/protobuf/conformance/
Dconformance_python.py110 response.protobuf_payload = failure_set.SerializeToString()
156 response.protobuf_payload = test_message.SerializeToString()
194 serialized_response = response.SerializeToString()
Dconformance_cpp.cc174 GOOGLE_CHECK(test_message->SerializeToString( in DoTest()
181 GOOGLE_CHECK(test_message->SerializeToString(&proto_binary)); in DoTest()
232 response.SerializeToString(&serialized_output); in DoTestIo()
/third_party/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc350 fdp.SerializeToString(&file_descriptor_serialized_); in Generate()
543 enum_descriptor.options().SerializeToString(&options_string); in PrintEnum()
629 descriptor.options().SerializeToString(&options_string); in PrintServiceDescriptor()
655 method->options().SerializeToString(&options_string); in PrintServiceDescriptor()
772 message_descriptor.options().SerializeToString(&options_string); in PrintDescriptor()
1148 descriptor.options().SerializeToString(&options_string); in PrintEnumValueDescriptor()
1176 field.options().SerializeToString(&options_string); in PrintFieldDescriptor()
1317 proto.SerializeToString(&sp); in PrintSerializedPbInterval()
/third_party/spirv-tools/test/fuzz/
Dfuzzer_replayer_test.cpp1717 fuzzer.GetTransformationSequence().SerializeToString( in RunFuzzerAndReplayer()
1719 replayer_result.applied_transformations.SerializeToString( in RunFuzzerAndReplayer()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dfuzzer_replayer_test.cpp1717 fuzzer.GetTransformationSequence().SerializeToString( in RunFuzzerAndReplayer()
1719 replayer_result.applied_transformations.SerializeToString( in RunFuzzerAndReplayer()
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/
Dfuzzer_replayer_test.cpp1717 fuzzer.GetTransformationSequence().SerializeToString( in RunFuzzerAndReplayer()
1719 replayer_result.applied_transformations.SerializeToString( in RunFuzzerAndReplayer()
/third_party/protobuf/examples/
Dadd_person.py63 f.write(address_book.SerializeToString())
/third_party/protobuf/python/google/protobuf/
Dmessage.py201 def SerializeToString(self, **kwargs): member in Message

123