clang-format

pull/6644/head
Craig Tiller 9 years ago
parent 7e55430092
commit e63246d100
  1. 2
      test/core/iomgr/tcp_server_posix_test.c
  2. 2
      test/core/surface/server_chttp2_test.c
  3. 4
      test/core/util/test_tcp_server.c

@ -166,7 +166,7 @@ static void test_no_op_with_port_and_start(void) {
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
struct sockaddr_in addr;
grpc_tcp_server *s;
GPR_ASSERT(GRPC_ERROR_NONE == grpc_tcp_server_create(NULL, NULL, &s));
GPR_ASSERT(GRPC_ERROR_NONE == grpc_tcp_server_create(NULL, NULL, &s));
LOG_TEST("test_no_op_with_port_and_start");
int port;

@ -54,7 +54,7 @@ void test_add_same_port_twice() {
a.key = GRPC_ARG_ALLOW_REUSEPORT;
a.value.integer = 0;
grpc_channel_args args = {1, &a};
int port = grpc_pick_unused_port_or_die();
char *addr = NULL;
grpc_completion_queue *cq = grpc_completion_queue_create(NULL);

@ -72,8 +72,8 @@ void test_tcp_server_start(test_tcp_server *server, int port) {
addr.sin_port = htons((uint16_t)port);
memset(&addr.sin_addr, 0, sizeof(addr.sin_addr));
grpc_error *error =
grpc_tcp_server_create(&server->shutdown_complete, NULL, &server->tcp_server);
grpc_error *error = grpc_tcp_server_create(&server->shutdown_complete, NULL,
&server->tcp_server);
GPR_ASSERT(error == GRPC_ERROR_NONE);
error = grpc_tcp_server_add_port(server->tcp_server, &addr, sizeof(addr),
&port_added);

Loading…
Cancel
Save