diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-14 12:02:50 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-14 12:02:50 -0800 |
commit | 620e965c1b522173aaf2d12e9fcf9c8f5d8754be (patch) | |
tree | 18c3f9810487b1ec69a7f2a6b70c4963824b2d46 /test/core/client_config | |
parent | f35f9257bf145ddf9c56bfaed8a4c3c86873e920 (diff) |
clang-format after last weeks test-fest
Diffstat (limited to 'test/core/client_config')
-rw-r--r-- | test/core/client_config/lb_policies_test.c | 3 | ||||
-rw-r--r-- | test/core/client_config/resolvers/dns_resolver_test.c | 22 | ||||
-rw-r--r-- | test/core/client_config/resolvers/sockaddr_resolver_test.c | 22 |
3 files changed, 24 insertions, 23 deletions
diff --git a/test/core/client_config/lb_policies_test.c b/test/core/client_config/lb_policies_test.c index 401cafdc08..190bed0b41 100644 --- a/test/core/client_config/lb_policies_test.c +++ b/test/core/client_config/lb_policies_test.c @@ -716,7 +716,8 @@ int main(int argc, char **argv) { grpc_test_init(argc, argv); grpc_init(); - GPR_ASSERT(grpc_lb_policy_create("this-lb-policy-does-not-exist", NULL) == NULL); + GPR_ASSERT(grpc_lb_policy_create("this-lb-policy-does-not-exist", NULL) == + NULL); GPR_ASSERT(grpc_lb_policy_create(NULL, NULL) == NULL); /* everything is fine, all servers stay up the whole time and life's peachy */ diff --git a/test/core/client_config/resolvers/dns_resolver_test.c b/test/core/client_config/resolvers/dns_resolver_test.c index 478da5c3f4..38e76d5342 100644 --- a/test/core/client_config/resolvers/dns_resolver_test.c +++ b/test/core/client_config/resolvers/dns_resolver_test.c @@ -41,28 +41,27 @@ #include "test/core/util/test_config.h" static void subchannel_factory_ref(grpc_subchannel_factory *scv) {} -static void subchannel_factory_unref(grpc_exec_ctx *exec_ctx, +static void subchannel_factory_unref(grpc_exec_ctx *exec_ctx, grpc_subchannel_factory *scv) {} -static grpc_subchannel *subchannel_factory_create_subchannel(grpc_exec_ctx *exec_ctx, - grpc_subchannel_factory *factory, - grpc_subchannel_args *args) { +static grpc_subchannel *subchannel_factory_create_subchannel( + grpc_exec_ctx *exec_ctx, grpc_subchannel_factory *factory, + grpc_subchannel_args *args) { GPR_UNREACHABLE_CODE(return NULL); } static const grpc_subchannel_factory_vtable sc_vtable = { - subchannel_factory_ref, - subchannel_factory_unref, - subchannel_factory_create_subchannel -}; + subchannel_factory_ref, subchannel_factory_unref, + subchannel_factory_create_subchannel}; -static grpc_subchannel_factory sc_factory = { &sc_vtable }; +static grpc_subchannel_factory sc_factory = {&sc_vtable}; static void test_succeeds(grpc_resolver_factory *factory, const char *string) { grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; grpc_uri *uri = grpc_uri_parse(string, 0); grpc_resolver_args args; grpc_resolver *resolver; - gpr_log(GPR_DEBUG, "test: '%s' should be valid for '%s'", string, factory->vtable->scheme); + gpr_log(GPR_DEBUG, "test: '%s' should be valid for '%s'", string, + factory->vtable->scheme); GPR_ASSERT(uri); memset(&args, 0, sizeof(args)); args.uri = uri; @@ -79,7 +78,8 @@ static void test_fails(grpc_resolver_factory *factory, const char *string) { grpc_uri *uri = grpc_uri_parse(string, 0); grpc_resolver_args args; grpc_resolver *resolver; - gpr_log(GPR_DEBUG, "test: '%s' should be invalid for '%s'", string, factory->vtable->scheme); + gpr_log(GPR_DEBUG, "test: '%s' should be invalid for '%s'", string, + factory->vtable->scheme); GPR_ASSERT(uri); memset(&args, 0, sizeof(args)); args.uri = uri; diff --git a/test/core/client_config/resolvers/sockaddr_resolver_test.c b/test/core/client_config/resolvers/sockaddr_resolver_test.c index c94e46a2c7..8856c85449 100644 --- a/test/core/client_config/resolvers/sockaddr_resolver_test.c +++ b/test/core/client_config/resolvers/sockaddr_resolver_test.c @@ -41,28 +41,27 @@ #include "test/core/util/test_config.h" static void subchannel_factory_ref(grpc_subchannel_factory *scv) {} -static void subchannel_factory_unref(grpc_exec_ctx *exec_ctx, +static void subchannel_factory_unref(grpc_exec_ctx *exec_ctx, grpc_subchannel_factory *scv) {} -static grpc_subchannel *subchannel_factory_create_subchannel(grpc_exec_ctx *exec_ctx, - grpc_subchannel_factory *factory, - grpc_subchannel_args *args) { +static grpc_subchannel *subchannel_factory_create_subchannel( + grpc_exec_ctx *exec_ctx, grpc_subchannel_factory *factory, + grpc_subchannel_args *args) { GPR_UNREACHABLE_CODE(return NULL); } static const grpc_subchannel_factory_vtable sc_vtable = { - subchannel_factory_ref, - subchannel_factory_unref, - subchannel_factory_create_subchannel -}; + subchannel_factory_ref, subchannel_factory_unref, + subchannel_factory_create_subchannel}; -static grpc_subchannel_factory sc_factory = { &sc_vtable }; +static grpc_subchannel_factory sc_factory = {&sc_vtable}; static void test_succeeds(grpc_resolver_factory *factory, const char *string) { grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; grpc_uri *uri = grpc_uri_parse(string, 0); grpc_resolver_args args; grpc_resolver *resolver; - gpr_log(GPR_DEBUG, "test: '%s' should be valid for '%s'", string, factory->vtable->scheme); + gpr_log(GPR_DEBUG, "test: '%s' should be valid for '%s'", string, + factory->vtable->scheme); GPR_ASSERT(uri); memset(&args, 0, sizeof(args)); args.uri = uri; @@ -79,7 +78,8 @@ static void test_fails(grpc_resolver_factory *factory, const char *string) { grpc_uri *uri = grpc_uri_parse(string, 0); grpc_resolver_args args; grpc_resolver *resolver; - gpr_log(GPR_DEBUG, "test: '%s' should be invalid for '%s'", string, factory->vtable->scheme); + gpr_log(GPR_DEBUG, "test: '%s' should be invalid for '%s'", string, + factory->vtable->scheme); GPR_ASSERT(uri); memset(&args, 0, sizeof(args)); args.uri = uri; |