Home
last modified time | relevance | path

Searched refs:SerializeAsString (Results 1 – 25 of 37) sorted by relevance

12

/third_party/protobuf/src/google/protobuf/
Dlite_unittest.cc73 std::string data = message.SerializeAsString(); in SetAllTypesInEmptyMessageUnknownFields()
85 std::string data = message.SerializeAsString(); in SetSomeTypesInEmptyMessageUnknownFields()
97 data = message.SerializeAsString(); in TEST()
116 std::string extensions_data = message.SerializeAsString(); in TEST()
136 packed_data = message.SerializeAsString(); in TEST()
152 std::string packed_extensions_data = message.SerializeAsString(); in TEST()
231 data = message.SerializeAsString(); in TEST()
234 data = empty_message.SerializeAsString(); in TEST()
236 data = message2.SerializeAsString(); in TEST()
251 data = message.SerializeAsString(); in TEST()
[all …]
Ddrop_unknown_fields_test.cc51 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()
Dany_test.cc46 std::string data = message.SerializeAsString(); in TEST()
75 std::string data = message.SerializeAsString(); in TEST()
111 ASSERT_TRUE(any.ParseFromString(any.SerializeAsString())); in TEST()
117 ASSERT_TRUE(message.ParseFromString(message.SerializeAsString())); in TEST()
Ddescriptor_database_unittest.cc497 std::string data1 = file1.SerializeAsString(); in TEST()
500 std::string data2 = file2b.SerializeAsString() + file2a.SerializeAsString(); in TEST()
Dpreserve_unknown_enum_test.cc111 std::string serialized = orig_message.SerializeAsString(); in TEST()
122 serialized = message->SerializeAsString(); in TEST()
Dextension_set_unittest.cc660 EXPECT_EQ(unpacked.SerializeAsString().size(), in TEST()
661 destination.SerializeAsString().size()); in TEST()
662 EXPECT_TRUE(EqualsToSerialized(unpacked, destination.SerializeAsString())); in TEST()
684 EXPECT_EQ(packed.SerializeAsString().size(), in TEST()
685 destination.SerializeAsString().size()); in TEST()
686 EXPECT_TRUE(EqualsToSerialized(packed, destination.SerializeAsString())); in TEST()
1278 EqualsToSerialized(dynamic_extension, message.SerializeAsString())); in TEST()
Dproto3_arena_lite_unittest.cc116 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
Dwire_format_unittest.cc145 std::string data = source.SerializeAsString(); in TEST()
161 std::string data = source.SerializeAsString(); in TEST()
856 EXPECT_TRUE(msg2.ParseFromString(msg1.SerializeAsString())); in TEST()
1352 std::string wire_buffer = input.SerializeAsString(); in TEST_F()
1366 EXPECT_EQ(wire_buffer, output.SerializeAsString()); in TEST_F()
Darena_unittest.cc306 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
323 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
326 copied.ParseFromString(arena_message->SerializeAsString()); in TEST()
334 copied.ParseFromString(arena_message->SerializeAsString()); in TEST()
343 copied.ParseFromString(arena_message_2->SerializeAsString()); in TEST()
Dproto3_arena_unittest.cc121 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
131 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
Dmessage_unittest.inc108 EXPECT_TRUE(message.SerializeAsString() == str1);
326 std::string data = message.SerializeAsString();
347 std::string data = message.SerializeAsString();
Dmessage_lite.h389 std::string SerializeAsString() const;
Dproto3_lite_unittest.inc117 msg.ParseFromString(original.SerializeAsString());
Dmessage_lite.cc497 std::string MessageLite::SerializeAsString() const { in SerializeAsString() function in google::protobuf::MessageLite
/third_party/protobuf/benchmarks/util/
Dproto3_data_stripper.cc64 dataset.set_payload(i, message->SerializeAsString()); in main()
68 ofs << dataset.SerializeAsString(); in main()
Dgogo_data_scrubber.cc64 dataset.set_payload(i, message->SerializeAsString()); in main()
68 ofs << dataset.SerializeAsString(); in main()
/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource_test.cc858 nested_any.set_value(m.SerializeAsString()); in TEST_P()
860 any->set_value(nested_any.SerializeAsString()); in TEST_P()
890 second_nested_any.set_value(m.SerializeAsString()); in TEST_P()
891 nested_any.set_value(second_nested_any.SerializeAsString()); in TEST_P()
892 any->set_value(nested_any.SerializeAsString()); in TEST_P()
939 any->set_value(m.SerializeAsString()); in TEST_P()
955 any->set_value(m.SerializeAsString()); in TEST_P()
971 any->set_value(m.SerializeAsString()); in TEST_P()
Dprotostream_objectwriter_test.cc1892 any_type->set_value(d.SerializeAsString()); in TEST_P()
1914 nested_any.set_value(m.SerializeAsString()); in TEST_P()
1916 any->set_value(nested_any.SerializeAsString()); in TEST_P()
1945 second_nested_any.set_value(m.SerializeAsString()); in TEST_P()
1947 nested_any.set_value(second_nested_any.SerializeAsString()); in TEST_P()
1948 any->set_value(nested_any.SerializeAsString()); in TEST_P()
/third_party/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc443 m["options"] = OptionsValue(file_->options().SerializeAsString()); in PrintFileDescriptor()
800 OptionsValue(desc->options().SerializeAsString()); in PrintDescriptor()
1341 std::string file_options = OptionsValue(file_->options().SerializeAsString()); in FixAllDescriptorOptions()
1363 std::string oneof_options = OptionsValue(oneof.options().SerializeAsString()); in FixOptionsForOneof()
1377 OptionsValue(enum_descriptor.options().SerializeAsString()); in FixOptionsForEnum()
1384 OptionsValue(value_descriptor.options().SerializeAsString()); in FixOptionsForEnum()
1397 std::string field_options = OptionsValue(field.options().SerializeAsString()); in FixOptionsForField()
1443 OptionsValue(descriptor.options().SerializeAsString()); in FixOptionsForMessage()
/third_party/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc170 std::string input_data = input.SerializeAsString(); in Communicate()
371 std::string input_data = input.SerializeAsString(); in Communicate()
/third_party/protobuf/docs/
Dfield_presence.md170 Send(m_a.SerializeAsString()); // to client B
176 Send(m_b.SerializeAsString()); // to client A
183 Send(m_a.SerializeAsString()); // to client B
189 Send(m_b.SerializeAsString()); // to client A
/third_party/protobuf/src/google/protobuf/util/
Djson_util.cc251 message.SerializeAsString(), output, options); in MessageToJsonString()
/third_party/protobuf/conformance/
Dconformance_test.cc232 const string equivalent_wire_format = reference_message->SerializeAsString(); in RunValidInputTest()
Dbinary_json_conformance_suite.cc497 input, test_name, input.SerializeAsString()); in RunValidJsonTestWithProtobufInput()
555 RunValidProtobufTest(test_name, level, input->SerializeAsString(), in RunValidProtobufTestWithMessage()
642 prototype, test_name, payload_message.SerializeAsString()); in ExpectSerializeFailureForJson()
1293 message.SerializeAsString(), is_proto3); in TestUnknownMessage()
/third_party/node/deps/v8/src/libplatform/tracing/
Dtracing-controller.cc199 ds_config->set_track_event_config_raw(te_config.SerializeAsString()); in StartTracing()

12