diff options
Diffstat (limited to 'test/cpp/util/proto_file_parser.h')
-rw-r--r-- | test/cpp/util/proto_file_parser.h | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/test/cpp/util/proto_file_parser.h b/test/cpp/util/proto_file_parser.h index 0758d2f9f3..1e49c98daf 100644 --- a/test/cpp/util/proto_file_parser.h +++ b/test/cpp/util/proto_file_parser.h @@ -55,16 +55,19 @@ class ProtoFileParser { /// Converts a text or json string to its binary proto representation for the /// given method's input or return type. - /// \param method the name of the method (does not need to be fully qualified name) + /// \param method the name of the method (does not need to be fully qualified + /// name) /// \param formatted_proto the text- or json-formatted proto string - /// \param is_request if \c true the resolved type is that of the input parameter of - /// the method, otherwise it is the output type + /// \param is_request if \c true the resolved type is that of the input + /// parameter of the method, otherwise it is the output type /// \param is_json_format if \c true the \c formatted_proto is treated as a - /// json-formatted proto, otherwise it is treated as a text-formatted proto + /// json-formatted proto, otherwise it is treated as a text-formatted + /// proto /// \return the serialised binary proto represenation of \c formatted_proto - grpc::string GetSerializedProtoFromMethod( - const grpc::string& method, const grpc::string& formatted_proto, - bool is_request, bool is_json_format); + grpc::string GetSerializedProtoFromMethod(const grpc::string& method, + const grpc::string& formatted_proto, + bool is_request, + bool is_json_format); /// Converts a text or json string to its proto representation for the given /// message type. @@ -72,26 +75,27 @@ class ProtoFileParser { /// \return the serialised binary proto represenation of \c formatted_proto grpc::string GetSerializedProtoFromMessageType( const grpc::string& message_type_name, - const grpc::string& formatted_proto, - bool is_json_format); + const grpc::string& formatted_proto, bool is_json_format); /// Converts a binary proto string to its text or json string representation /// for the given method's input or return type. - /// \param method the name of the method (does not need to be a fully qualified name) - /// \param the serialised binary proto representation of type \c message_type_name + /// \param method the name of the method (does not need to be a fully + /// qualified name) + /// \param the serialised binary proto representation of type + /// \c message_type_name /// \return the text- or json-formatted proto string of \c serialized_proto - grpc::string GetFormattedStringFromMethod(const grpc::string& method, - const grpc::string& serialized_proto, - bool is_request, bool is_json_format); + grpc::string GetFormattedStringFromMethod( + const grpc::string& method, const grpc::string& serialized_proto, + bool is_request, bool is_json_format); /// Converts a binary proto string to its text or json string representation /// for the given message type. - /// \param the serialised binary proto representation of type \c message_type_name + /// \param the serialised binary proto representation of type + /// \c message_type_name /// \return the text- or json-formatted proto string of \c serialized_proto grpc::string GetFormattedStringFromMessageType( const grpc::string& message_type_name, - const grpc::string& serialized_proto, - bool is_json_format); + const grpc::string& serialized_proto, bool is_json_format); bool IsStreaming(const grpc::string& method, bool is_request); |