#include "test/cpp/util/grpc_tool.h"#include <chrono>#include <sstream>#include <gtest/gtest.h>#include "absl/flags/declare.h"#include "absl/flags/flag.h"#include <grpc/grpc.h>#include <grpc/support/alloc.h>#include <grpcpp/channel.h>#include <grpcpp/client_context.h>#include <grpcpp/create_channel.h>#include <grpcpp/ext/proto_server_reflection_plugin.h>#include <grpcpp/server.h>#include <grpcpp/server_builder.h>#include <grpcpp/server_context.h>#include "src/core/lib/gpr/env.h"#include "src/core/lib/iomgr/load_file.h"#include "src/proto/grpc/testing/echo.grpc.pb.h"#include "src/proto/grpc/testing/echo.pb.h"#include "test/core/util/port.h"#include "test/core/util/test_config.h"#include "test/cpp/util/cli_credentials.h"#include "test/cpp/util/string_ref_helper.h"#include "test/cpp/util/test_config.h"
Go to the source code of this file.
Classes | |
| class | grpc::testing::GrpcToolTest |
Namespaces | |
| grpc | |
| grpc::testing | |
Macros | |
| #define | CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" |
| #define | ECHO_METHOD_DESCRIPTION |
| #define | ECHO_RESPONSE_MESSAGE_JSON_FORMAT |
| #define | ECHO_RESPONSE_MESSAGE_TEXT_FORMAT |
| #define | ECHO_TEST_SERVICE_DESCRIPTION |
| #define | ECHO_TEST_SERVICE_SUMMARY |
| #define | SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" |
| #define | SERVER_KEY_PATH "src/core/tsi/test_creds/server1.key" |
| #define | USAGE_REGEX "( grpc_cli .+\n){2,10}" |
Functions | |
| ABSL_DECLARE_FLAG (bool, batch) | |
| ABSL_DECLARE_FLAG (bool, binary_input) | |
| ABSL_DECLARE_FLAG (bool, binary_output) | |
| ABSL_DECLARE_FLAG (bool, json_input) | |
| ABSL_DECLARE_FLAG (bool, json_output) | |
| ABSL_DECLARE_FLAG (bool, l) | |
| ABSL_DECLARE_FLAG (double, timeout) | |
| ABSL_DECLARE_FLAG (std::string, channel_creds_type) | |
| ABSL_DECLARE_FLAG (std::string, default_service_config) | |
| ABSL_DECLARE_FLAG (std::string, metadata) | |
| ABSL_DECLARE_FLAG (std::string, proto_path) | |
| ABSL_DECLARE_FLAG (std::string, protofiles) | |
| ABSL_DECLARE_FLAG (std::string, ssl_target) | |
| int | main (int argc, char **argv) |
| grpc::testing::TEST_F (GrpcToolTest, CallCommand) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandBatch) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandBatchJsonInput) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandBatchJsonInputWithBadRequest) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandBatchWithBadRequest) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandBidiStream) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandBidiStreamWithBadRequest) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandJsonInput) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandRequestStream) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandRequestStreamJsonInput) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandRequestStreamWithBadRequest) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandRequestStreamWithBadRequestJsonInput) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandResponseStream) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandWithBadMetadata) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandWithDefaultTimeoutValue) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandWithMetadata) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandWithNegativeTimeoutValue) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandWithTimeoutDeadlineSet) | |
| grpc::testing::TEST_F (GrpcToolTest, CallCommandWithTimeoutDeadlineUpperBound) | |
| grpc::testing::TEST_F (GrpcToolTest, ConfiguringDefaultServiceConfig) | |
| grpc::testing::TEST_F (GrpcToolTest, HelpCommand) | |
| grpc::testing::TEST_F (GrpcToolTest, InvalidCommand) | |
| grpc::testing::TEST_F (GrpcToolTest, ListCommand) | |
| grpc::testing::TEST_F (GrpcToolTest, ListCommand_OverrideSslHostName) | |
| grpc::testing::TEST_F (GrpcToolTest, ListOneMethod) | |
| grpc::testing::TEST_F (GrpcToolTest, ListOneService) | |
| grpc::testing::TEST_F (GrpcToolTest, NoCommand) | |
| grpc::testing::TEST_F (GrpcToolTest, ParseCommand) | |
| grpc::testing::TEST_F (GrpcToolTest, ParseCommandJsonFormat) | |
| grpc::testing::TEST_F (GrpcToolTest, TooFewArguments) | |
| grpc::testing::TEST_F (GrpcToolTest, TooManyArguments) | |
| grpc::testing::TEST_F (GrpcToolTest, TypeCommand) | |
| grpc::testing::TEST_F (GrpcToolTest, TypeNotFound) | |
| #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" |
Definition at line 49 of file grpc_tool_test.cc.
| #define ECHO_METHOD_DESCRIPTION |
Definition at line 100 of file grpc_tool_test.cc.
| #define ECHO_RESPONSE_MESSAGE_JSON_FORMAT |
Definition at line 111 of file grpc_tool_test.cc.
| #define ECHO_RESPONSE_MESSAGE_TEXT_FORMAT |
Definition at line 104 of file grpc_tool_test.cc.
| #define ECHO_TEST_SERVICE_DESCRIPTION |
Definition at line 71 of file grpc_tool_test.cc.
| #define ECHO_TEST_SERVICE_SUMMARY |
Definition at line 58 of file grpc_tool_test.cc.
| #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" |
Definition at line 50 of file grpc_tool_test.cc.
| #define SERVER_KEY_PATH "src/core/tsi/test_creds/server1.key" |
Definition at line 51 of file grpc_tool_test.cc.
| #define USAGE_REGEX "( grpc_cli .+\n){2,10}" |
Definition at line 56 of file grpc_tool_test.cc.
| ABSL_DECLARE_FLAG | ( | bool | , |
| binary_input | |||
| ) |
| ABSL_DECLARE_FLAG | ( | bool | , |
| binary_output | |||
| ) |
| ABSL_DECLARE_FLAG | ( | bool | , |
| json_input | |||
| ) |
| ABSL_DECLARE_FLAG | ( | bool | , |
| json_output | |||
| ) |
| ABSL_DECLARE_FLAG | ( | bool | , |
| l | |||
| ) |
| ABSL_DECLARE_FLAG | ( | double | , |
| timeout | |||
| ) |
| ABSL_DECLARE_FLAG | ( | std::string | , |
| channel_creds_type | |||
| ) |
| ABSL_DECLARE_FLAG | ( | std::string | , |
| default_service_config | |||
| ) |
| ABSL_DECLARE_FLAG | ( | std::string | , |
| metadata | |||
| ) |
| ABSL_DECLARE_FLAG | ( | std::string | , |
| proto_path | |||
| ) |
| ABSL_DECLARE_FLAG | ( | std::string | , |
| protofiles | |||
| ) |
| ABSL_DECLARE_FLAG | ( | std::string | , |
| ssl_target | |||
| ) |
Definition at line 1349 of file grpc_tool_test.cc.
Definition at line 162 of file grpc_tool_test.cc.