aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/slice/slice_string_helpers_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/slice/slice_string_helpers_test.cc')
-rw-r--r--test/core/slice/slice_string_helpers_test.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/core/slice/slice_string_helpers_test.cc b/test/core/slice/slice_string_helpers_test.cc
index 8877da73f5..260f8c80d5 100644
--- a/test/core/slice/slice_string_helpers_test.cc
+++ b/test/core/slice/slice_string_helpers_test.cc
@@ -34,16 +34,16 @@
#define LOG_TEST_NAME(x) gpr_log(GPR_INFO, "%s", x)
static void expect_slice_dump(grpc_slice slice, uint32_t flags,
- const char *result) {
- char *got = grpc_dump_slice(slice, flags);
+ const char* result) {
+ char* got = grpc_dump_slice(slice, flags);
GPR_ASSERT(0 == strcmp(got, result));
gpr_free(got);
grpc_slice_unref(slice);
}
static void test_dump_slice(void) {
- static const char *text = "HELLO WORLD!";
- static const char *long_text =
+ static const char* text = "HELLO WORLD!";
+ static const char* long_text =
"It was a bright cold day in April, and the clocks were striking "
"thirteen. Winston Smith, his chin nuzzled into his breast in an effort "
"to escape the vile wind, slipped quickly through the glass doors of "
@@ -62,13 +62,13 @@ static void test_dump_slice(void) {
}
static void test_strsplit(void) {
- grpc_slice_buffer *parts;
+ grpc_slice_buffer* parts;
grpc_slice str;
LOG_TEST_NAME("test_strsplit");
parts =
- static_cast<grpc_slice_buffer *>(gpr_malloc(sizeof(grpc_slice_buffer)));
+ static_cast<grpc_slice_buffer*>(gpr_malloc(sizeof(grpc_slice_buffer)));
grpc_slice_buffer_init(parts);
str = grpc_slice_from_copied_string("one, two, three, four");
@@ -128,7 +128,7 @@ static void test_strsplit(void) {
gpr_free(parts);
}
-int main(int argc, char **argv) {
+int main(int argc, char** argv) {
grpc_test_init(argc, argv);
test_dump_slice();
test_strsplit();