From e5863246272f5e15d17f74606f6357c6aef24e6e Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Mon, 30 Oct 2017 17:52:07 -0700 Subject: BUILD files changes for bazel --- test/core/network_benchmarks/BUILD | 2 +- test/core/network_benchmarks/low_level_ping_pong.cc | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'test/core/network_benchmarks') 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(gpr_malloc(sizeof(thread_args))); - thread_args *server_args = static_cast(gpr_malloc(sizeof(thread_args))); + thread_args *client_args = + static_cast(gpr_malloc(sizeof(thread_args))); + thread_args *server_args = + static_cast(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(gpr_malloc(sizeof(thread_args))); - thread_args *server_args = static_cast(gpr_malloc(sizeof(thread_args))); + thread_args *client_args = + static_cast(gpr_malloc(sizeof(thread_args))); + thread_args *server_args = + static_cast(gpr_malloc(sizeof(thread_args))); int msg_size = -1; const char *read_strategy = NULL; const char *socket_type = NULL; -- cgit v1.2.3