aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/slice
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-26 21:15:29 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-26 21:15:29 -0700
commit28b72428a84ae7d23c106fb282478fa94951c9c0 (patch)
treed88c2d32bcee3c6b7636a5ec3a77f4dde04b9f4f /test/core/slice
parent5b676a6b1ae667ab82f56d5485bf0da229091101 (diff)
clang-format
Diffstat (limited to 'test/core/slice')
-rw-r--r--test/core/slice/slice_buffer_test.c2
-rw-r--r--test/core/slice/slice_test.c11
2 files changed, 7 insertions, 6 deletions
diff --git a/test/core/slice/slice_buffer_test.c b/test/core/slice/slice_buffer_test.c
index 4c26113d05..bf9ae197d2 100644
--- a/test/core/slice/slice_buffer_test.c
+++ b/test/core/slice/slice_buffer_test.c
@@ -31,8 +31,8 @@
*
*/
-#include <grpc/support/log.h>
#include <grpc/slice_buffer.h>
+#include <grpc/support/log.h>
#include "test/core/util/test_config.h"
void test_slice_buffer_add() {
diff --git a/test/core/slice/slice_test.c b/test/core/slice/slice_test.c
index e6d29e7459..ca44becfd0 100644
--- a/test/core/slice/slice_test.c
+++ b/test/core/slice/slice_test.c
@@ -170,11 +170,12 @@ static void test_slice_sub_works(unsigned length) {
grpc_slice_unref(slice);
}
-static void check_head_tail(grpc_slice slice, grpc_slice head, grpc_slice tail) {
+static void check_head_tail(grpc_slice slice, grpc_slice head,
+ grpc_slice tail) {
GPR_ASSERT(GRPC_SLICE_LENGTH(slice) ==
GRPC_SLICE_LENGTH(head) + GRPC_SLICE_LENGTH(tail));
- GPR_ASSERT(0 == memcmp(GRPC_SLICE_START_PTR(slice), GRPC_SLICE_START_PTR(head),
- GRPC_SLICE_LENGTH(head)));
+ GPR_ASSERT(0 == memcmp(GRPC_SLICE_START_PTR(slice),
+ GRPC_SLICE_START_PTR(head), GRPC_SLICE_LENGTH(head)));
GPR_ASSERT(0 == memcmp(GRPC_SLICE_START_PTR(slice) + GRPC_SLICE_LENGTH(head),
GRPC_SLICE_START_PTR(tail), GRPC_SLICE_LENGTH(tail)));
}
@@ -243,8 +244,8 @@ static void test_slice_from_copied_string_works(void) {
slice = grpc_slice_from_copied_string(text);
GPR_ASSERT(strlen(text) == GRPC_SLICE_LENGTH(slice));
- GPR_ASSERT(0 ==
- memcmp(text, GRPC_SLICE_START_PTR(slice), GRPC_SLICE_LENGTH(slice)));
+ GPR_ASSERT(
+ 0 == memcmp(text, GRPC_SLICE_START_PTR(slice), GRPC_SLICE_LENGTH(slice)));
grpc_slice_unref(slice);
}