diff options
author | 2015-11-04 00:30:12 -0800 | |
---|---|---|
committer | 2015-11-04 00:30:12 -0800 | |
commit | ce846706287e68e644eb611be71b1a02b252f043 (patch) | |
tree | 0fbba18e5c8bc7bd3e058e561217af7c59595d49 /test/cpp/qps/server.h | |
parent | 780a7f205d81eb4a63a4040329b527c3082fbf79 (diff) |
clang-format
Diffstat (limited to 'test/cpp/qps/server.h')
-rw-r--r-- | test/cpp/qps/server.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/cpp/qps/server.h b/test/cpp/qps/server.h index f4ae990022..0309cb5c20 100644 --- a/test/cpp/qps/server.h +++ b/test/cpp/qps/server.h @@ -86,12 +86,13 @@ class Server { return true; } - int Port() const {return port_;} - int Cores() const {return gpr_cpu_num_cores();} - static std::shared_ptr<ServerCredentials> CreateServerCredentials(const ServerConfig &config) { + int Port() const { return port_; } + int Cores() const { return gpr_cpu_num_cores(); } + static std::shared_ptr<ServerCredentials> CreateServerCredentials( + const ServerConfig& config) { if (config.has_security_params()) { SslServerCredentialsOptions::PemKeyCertPair pkcp = {test_server1_key, - test_server1_cert}; + test_server1_cert}; SslServerCredentialsOptions ssl_opts; ssl_opts.pem_root_certs = ""; ssl_opts.pem_key_cert_pairs.push_back(pkcp); @@ -100,6 +101,7 @@ class Server { return InsecureServerCredentials(); } } + private: int port_; std::unique_ptr<Timer> timer_; |