aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/avl
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2018-02-09 09:34:04 -0800
committerGravatar Noah Eisen <ncteisen@google.com>2018-02-09 09:34:04 -0800
commit4d20a666850b732cf1562487fb5f46ab9654105f (patch)
tree9059162d0f125e02780f506c2476d5d9bbc0eb7d /test/core/avl
parentcddf6f838aa48c8d5c9f75cee5a8ed8abdcb25b9 (diff)
Run clang fmt
Diffstat (limited to 'test/core/avl')
-rw-r--r--test/core/avl/avl_test.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/core/avl/avl_test.cc b/test/core/avl/avl_test.cc
index 563de81a0d..ecebe833b3 100644
--- a/test/core/avl/avl_test.cc
+++ b/test/core/avl/avl_test.cc
@@ -36,7 +36,9 @@ static int* box(int x) {
static long int_compare(void* int1, void* int2, void* unused) {
return (*static_cast<int*>(int1)) - (*static_cast<int*>(int2));
}
-static void* int_copy(void* p, void* unused) { return box(*static_cast<int*>(p)); }
+static void* int_copy(void* p, void* unused) {
+ return box(*static_cast<int*>(p));
+}
static void destroy(void* p, void* unused) { gpr_free(p); }
@@ -3614,7 +3616,7 @@ static void test_stress(int amount_of_stress) {
memset(added, 0, sizeof(added));
for (i = 1; deletions < amount_of_stress; i++) {
- int idx = rand() % static_cast<int>GPR_ARRAY_SIZE(added);
+ int idx = rand() % static_cast<int> GPR_ARRAY_SIZE(added);
GPR_ASSERT(i);
if (rand() < RAND_MAX / 2) {
added[idx] = i;
@@ -3627,7 +3629,7 @@ static void test_stress(int amount_of_stress) {
printf("avl = remove_int(avl, %d); /* d=%d */\n", idx, deletions);
avl = remove_int(avl, idx);
}
- for (j = 0; j < static_cast<int>GPR_ARRAY_SIZE(added); j++) {
+ for (j = 0; j < static_cast<int> GPR_ARRAY_SIZE(added); j++) {
if (added[j] != 0) {
check_get(avl, j, added[j]);
} else {