diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-03-04 13:54:39 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-03-04 13:54:39 -0800 |
commit | a182bf12b0ef71e6fdcb93a818c4476a9d142e37 (patch) | |
tree | e548b23c362f5306a698e758fcb835e932f507d8 /test/cpp/qps/server.h | |
parent | ce78a19da284a70ec81de36a394728bdb33fcab5 (diff) |
clang-format
Diffstat (limited to 'test/cpp/qps/server.h')
-rw-r--r-- | test/cpp/qps/server.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/cpp/qps/server.h b/test/cpp/qps/server.h index ca22d7ca1c..ef71cb94d0 100644 --- a/test/cpp/qps/server.h +++ b/test/cpp/qps/server.h @@ -42,7 +42,7 @@ namespace testing { class Server { public: - Server():timer_(new Timer) {} + Server() : timer_(new Timer) {} virtual ~Server() {} ServerStats Mark() { @@ -58,17 +58,17 @@ class Server { return stats; } - static bool SetPayload(PayloadType type, int size, Payload* payload) { - PayloadType response_type = type; - // TODO(yangg): Support UNCOMPRESSABLE payload. - if (type != PayloadType::COMPRESSABLE) { - return false; - } - payload->set_type(response_type); - std::unique_ptr<char[]> body(new char[size]()); - payload->set_body(body.get(), size); - return true; - } + static bool SetPayload(PayloadType type, int size, Payload* payload) { + PayloadType response_type = type; + // TODO(yangg): Support UNCOMPRESSABLE payload. + if (type != PayloadType::COMPRESSABLE) { + return false; + } + payload->set_type(response_type); + std::unique_ptr<char[]> body(new char[size]()); + payload->set_body(body.get(), size); + return true; + } private: std::unique_ptr<Timer> timer_; |