aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-04-21 14:51:44 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-04-21 14:51:44 -0700
commit2b3d33ae8a0412076f98a51b4cc2a6cb8c2c3c54 (patch)
treecccb342dcb1311c9c116a03881a204f569717633 /test/core/end2end
parent5421b7999dde772fb2559246d2ae6e13b65d7b46 (diff)
clang-fmt
Diffstat (limited to 'test/core/end2end')
-rw-r--r--test/core/end2end/fuzzers/api_fuzzer.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/core/end2end/fuzzers/api_fuzzer.c b/test/core/end2end/fuzzers/api_fuzzer.c
index 1e508e28a1..b750780a95 100644
--- a/test/core/end2end/fuzzers/api_fuzzer.c
+++ b/test/core/end2end/fuzzers/api_fuzzer.c
@@ -386,7 +386,7 @@ static call_state *new_call(call_state *sibling, call_state_type type) {
static call_state *maybe_delete_call_state(call_state *call) {
call_state *next = call->next;
-
+
if (call->call != NULL) return next;
if (call->pending_ops != 0) return next;
@@ -452,7 +452,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
grpc_completion_queue *cq = grpc_completion_queue_create(NULL);
while (!is_eof(&inp) || g_channel != NULL || g_server != NULL ||
- pending_channel_watches > 0 || pending_pings > 0 || g_active_call->type != ROOT || g_active_call->next != g_active_call) {
+ pending_channel_watches > 0 || pending_pings > 0 ||
+ g_active_call->type != ROOT || g_active_call->next != g_active_call) {
if (is_eof(&inp)) {
if (g_channel != NULL) {
grpc_channel_destroy(g_channel);
@@ -660,8 +661,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
}
// queue some ops on a call
case 12: {
- if (g_active_call->type == PENDING_SERVER || g_active_call->type == ROOT ||
- g_active_call->call == NULL) {
+ if (g_active_call->type == PENDING_SERVER ||
+ g_active_call->type == ROOT || g_active_call->call == NULL) {
end(&inp);
break;
}
@@ -725,7 +726,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
break;
case GRPC_OP_RECV_CLOSE_ON_SERVER:
op->op = GRPC_OP_RECV_CLOSE_ON_SERVER;
- op->data.recv_close_on_server.cancelled = &g_active_call->cancelled;
+ op->data.recv_close_on_server.cancelled =
+ &g_active_call->cancelled;
break;
}
op->reserved = NULL;
@@ -857,7 +859,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
}
// destroy a call
case 20: {
- if (g_active_call->type != ROOT && g_active_call->type != PENDING_SERVER &&
+ if (g_active_call->type != ROOT &&
+ g_active_call->type != PENDING_SERVER &&
g_active_call->call != NULL) {
destroy_call(g_active_call);
} else {