diff options
author | 2015-06-16 00:43:25 -0700 | |
---|---|---|
committer | 2015-06-16 00:43:25 -0700 | |
commit | 102eccb63238f2b40e89d2ec1ed93a7771a82798 (patch) | |
tree | 08d6e3b841ba37ccf88fbf18281115bbb062d01f /test/cpp/util/cli_call.h | |
parent | ac366f9c2e3736815c4445baa4ad4745d2b0b511 (diff) |
Support sending and showing received metadata in grpc_cli
Diffstat (limited to 'test/cpp/util/cli_call.h')
-rw-r--r-- | test/cpp/util/cli_call.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/cpp/util/cli_call.h b/test/cpp/util/cli_call.h index 7be8bb63c4..8d114c9cb5 100644 --- a/test/cpp/util/cli_call.h +++ b/test/cpp/util/cli_call.h @@ -34,17 +34,23 @@ #ifndef GRPC_TEST_CPP_UTIL_CLI_CALL_H #define GRPC_TEST_CPP_UTIL_CLI_CALL_H +#include <map> + #include <grpc++/channel_interface.h> #include <grpc++/config.h> +#include <grpc++/status.h> namespace grpc { namespace testing { class CliCall GRPC_FINAL { public: - static void Call(std::shared_ptr<grpc::ChannelInterface> channel, - const grpc::string& method, const grpc::string& request, - grpc::string* response); + typedef std::multimap<grpc::string, grpc::string> MetadataContainer; + static Status Call(std::shared_ptr<grpc::ChannelInterface> channel, + const grpc::string& method, const grpc::string& request, + grpc::string* response, const MetadataContainer& metadata, + MetadataContainer* server_initial_metadata, + MetadataContainer* server_trailing_metadata); }; } // namespace testing |