#include <fstream>
#include <memory>
#include <sstream>
#include <thread>
#include "absl/flags/flag.h"
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include <grpcpp/security/server_credentials.h>
#include <grpcpp/server.h>
#include <grpcpp/server_builder.h>
#include <grpcpp/server_context.h>
#include "src/core/lib/gpr/string.h"
#include "src/proto/grpc/testing/empty.pb.h"
#include "src/proto/grpc/testing/messages.pb.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "test/cpp/interop/server_helper.h"
#include "test/cpp/util/test_config.h"
Go to the source code of this file.
Classes | |
class | TestServiceImpl |
Functions | |
ABSL_FLAG (bool, use_alts, false, "Whether to use alts. Enable alts will disable tls.") | |
ABSL_FLAG (bool, use_tls, false, "Whether to use tls.") | |
ABSL_FLAG (int32_t, max_send_message_size, -1, "The maximum send message size.") | |
ABSL_FLAG (int32_t, port, 0, "Server port.") | |
ABSL_FLAG (std::string, custom_credentials_type, "", "User provided credentials type.") | |
bool | CheckExpectedCompression (const ServerContext &context, const bool compression_expected) |
void | MaybeEchoMetadata (ServerContext *context) |
bool | SetPayload (int size, Payload *payload) |
Variables | |
const char | kEchoInitialMetadataKey [] = "x-grpc-test-echo-initial" |
const char | kEchoTrailingBinMetadataKey [] = "x-grpc-test-echo-trailing-bin" |
const char | kEchoUserAgentKey [] = "x-grpc-test-echo-useragent" |
ABSL_FLAG | ( | std::string | , |
custom_credentials_type | , | ||
"" | , | ||
"User provided credentials type." | |||
) |
bool CheckExpectedCompression | ( | const ServerContext & | context, |
const bool | compression_expected | ||
) |
Definition at line 108 of file interop_server.cc.
void MaybeEchoMetadata | ( | ServerContext * | context | ) |
Definition at line 72 of file interop_server.cc.
Definition at line 102 of file interop_server.cc.
Definition at line 68 of file interop_server.cc.
Definition at line 69 of file interop_server.cc.
Definition at line 70 of file interop_server.cc.