aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/network_benchmarks
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-10-30 17:52:07 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-10-30 17:52:07 -0700
commite5863246272f5e15d17f74606f6357c6aef24e6e (patch)
tree54824040c00dcbb97c356836fd53967443e81f6a /test/core/network_benchmarks
parentc430c84f84bec9c97cb48b0ccfd212f52e10de93 (diff)
BUILD files changes for bazel
Diffstat (limited to 'test/core/network_benchmarks')
-rw-r--r--test/core/network_benchmarks/BUILD2
-rw-r--r--test/core/network_benchmarks/low_level_ping_pong.cc12
2 files changed, 9 insertions, 5 deletions
diff --git a/test/core/network_benchmarks/BUILD b/test/core/network_benchmarks/BUILD
index 0e15393030..0db3ad7940 100644
--- a/test/core/network_benchmarks/BUILD
+++ b/test/core/network_benchmarks/BUILD
@@ -22,7 +22,7 @@ licenses(["notice"]) # Apache v2
grpc_cc_binary(
name = "low_level_ping_pong",
- srcs = ["low_level_ping_pong.c"],
+ srcs = ["low_level_ping_pong.cc"],
language = "C",
deps = [
"//:gpr",
diff --git a/test/core/network_benchmarks/low_level_ping_pong.cc b/test/core/network_benchmarks/low_level_ping_pong.cc
index acd84aaa09..8aed0bccbd 100644
--- a/test/core/network_benchmarks/low_level_ping_pong.cc
+++ b/test/core/network_benchmarks/low_level_ping_pong.cc
@@ -594,8 +594,10 @@ static int run_all_benchmarks(size_t msg_size) {
test_strategy *strategy = &test_strategies[i];
size_t j;
for (j = 0; j < GPR_ARRAY_SIZE(socket_types); ++j) {
- thread_args *client_args = static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
- thread_args *server_args = static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
+ thread_args *client_args =
+ static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
+ thread_args *server_args =
+ static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
char *socket_type = socket_types[j];
client_args->read_bytes = strategy->read_strategy;
@@ -618,8 +620,10 @@ static int run_all_benchmarks(size_t msg_size) {
}
int main(int argc, char **argv) {
- thread_args *client_args = static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
- thread_args *server_args = static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
+ thread_args *client_args =
+ static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
+ thread_args *server_args =
+ static_cast<thread_args *>(gpr_malloc(sizeof(thread_args)));
int msg_size = -1;
const char *read_strategy = NULL;
const char *socket_type = NULL;