|
|
|
@ -34,16 +34,16 @@ |
|
|
|
|
#ifndef TEST_QPS_SERVER_H |
|
|
|
|
#define TEST_QPS_SERVER_H |
|
|
|
|
|
|
|
|
|
#include <vector> |
|
|
|
|
#include <grpc/support/cpu.h> |
|
|
|
|
#include <grpc++/security/server_credentials.h> |
|
|
|
|
#include <grpc/support/cpu.h> |
|
|
|
|
#include <vector> |
|
|
|
|
|
|
|
|
|
#include "src/proto/grpc/testing/control.grpc.pb.h" |
|
|
|
|
#include "src/proto/grpc/testing/messages.grpc.pb.h" |
|
|
|
|
#include "test/core/end2end/data/ssl_test_data.h" |
|
|
|
|
#include "test/core/util/port.h" |
|
|
|
|
#include "test/cpp/qps/coresched.h" |
|
|
|
|
#include "test/cpp/qps/timer.h" |
|
|
|
|
#include "src/proto/grpc/testing/messages.grpc.pb.h" |
|
|
|
|
#include "src/proto/grpc/testing/control.grpc.pb.h" |
|
|
|
|
|
|
|
|
|
namespace grpc { |
|
|
|
|
namespace testing { |
|
|
|
@ -99,7 +99,7 @@ class Server { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int port() const { return port_; } |
|
|
|
|
int cores() const { return cores_;} |
|
|
|
|
int cores() const { return cores_; } |
|
|
|
|
static std::shared_ptr<ServerCredentials> CreateServerCredentials( |
|
|
|
|
const ServerConfig& config) { |
|
|
|
|
if (config.has_security_params()) { |
|
|
|
|