clang-format

pull/5846/head
Craig Tiller 9 years ago
parent 59e49a28e7
commit ec0d95ae38
  1. 11
      test/core/http/parser_test.c

@ -179,7 +179,10 @@ static void test_fails(grpc_slice_split_mode split_mode, char *response) {
}
static const uint8_t failed_test1[] = {
0x9e,0x48,0x54,0x54,0x50,0x2f,0x31,0x2e,0x30,0x4a,0x48,0x54,0x54,0x30,0x32,0x16,0xa,0x2f,0x48,0x20,0x31,0x2e,0x31,0x20,0x32,0x30,0x31,0x54,0x54,0xb9,0x32,0x31,0x2e,0x20,0x32,0x30,0x20,
0x9e, 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x4a,
0x48, 0x54, 0x54, 0x30, 0x32, 0x16, 0xa, 0x2f, 0x48, 0x20,
0x31, 0x2e, 0x31, 0x20, 0x32, 0x30, 0x31, 0x54, 0x54, 0xb9,
0x32, 0x31, 0x2e, 0x20, 0x32, 0x30, 0x20,
};
typedef struct {
@ -188,7 +191,8 @@ typedef struct {
size_t length;
} failed_test;
#define FAILED_TEST(name) {#name, name, sizeof(name)}
#define FAILED_TEST(name) \
{ #name, name, sizeof(name) }
failed_test failed_tests[] = {
FAILED_TEST(failed_test1),
@ -198,7 +202,8 @@ static void test_doesnt_crash(failed_test t) {
gpr_log(GPR_DEBUG, "Run previously failed test: %s", t.name);
grpc_http_parser p;
grpc_http_parser_init(&p);
gpr_slice slice = gpr_slice_from_copied_buffer((const char*)t.data,t.length);
gpr_slice slice =
gpr_slice_from_copied_buffer((const char *)t.data, t.length);
grpc_http_parser_parse(&p, slice);
gpr_slice_unref(slice);
grpc_http_parser_destroy(&p);

Loading…
Cancel
Save