#include <grpc/support/port_platform.h>
#include <stdlib.h>
#include <unistd.h>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include "gtest/gtest.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/channelz_service_plugin.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/security/credentials.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/env.h"
#include "src/cpp/server/channelz/channelz_service.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "test/core/util/test_config.h"
#include "test/cpp/util/subprocess.h"
#include "test/cpp/util/test_credentials_provider.h"
Go to the source code of this file.
Classes | |
class | EchoServerImpl |
Functions | |
std::string | custom_credentials_type ("INSECURE_CREDENTIALS") |
int | main (int argc, char **argv) |
std::string | output_json ("output.json") |
void | RunClient (const std::string &client_id, gpr_event *done_ev) |
std::string | server_address ("0.0.0.0:10000") |
TEST (ChannelzSamplerTest, SimpleTest) | |
bool | WaitForConnection (int wait_server_seconds) |
Variables | |
static std::string | g_root |
std::string | sampling_interval_seconds = "3" |
std::string | sampling_times = "2" |
std::string custom_credentials_type | ( | "INSECURE_CREDENTIALS" | ) |
Definition at line 167 of file channelz_sampler_test.cc.
std::string output_json | ( | "output.json" | ) |
Definition at line 78 of file channelz_sampler_test.cc.
std::string server_address | ( | "0.0.0.0:10000" | ) |
TEST | ( | ChannelzSamplerTest | , |
SimpleTest | |||
) |
Definition at line 115 of file channelz_sampler_test.cc.
Definition at line 104 of file channelz_sampler_test.cc.
|
static |
Definition at line 51 of file channelz_sampler_test.cc.
std::string sampling_interval_seconds = "3" |
Definition at line 65 of file channelz_sampler_test.cc.
std::string sampling_times = "2" |
Definition at line 64 of file channelz_sampler_test.cc.