|
|
|
@ -39,3 +39,32 @@ grpc_fuzzer( |
|
|
|
|
copts = ["-std=c99"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_binary( |
|
|
|
|
name = "json_rewrite", |
|
|
|
|
srcs = ["json_rewrite.c"], |
|
|
|
|
deps = ["//:grpc", "//test/core/util:grpc_test_util", "//:gpr", "//test/core/util:gpr_test_util"], |
|
|
|
|
testonly = 1, |
|
|
|
|
copts = ['-std=c99'] |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
name = "json_rewrite_test", |
|
|
|
|
srcs = ["json_rewrite_test.c"], |
|
|
|
|
deps = ["//:grpc", "//test/core/util:grpc_test_util", "//:gpr", "//test/core/util:gpr_test_util"], |
|
|
|
|
copts = ['-std=c99'], |
|
|
|
|
data = ["rewrite_test_input.json", "rewrite_test_output_condensed.json", "rewrite_test_output_indented.json", ":json_stream_error_test"] |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
name = "json_stream_error_test", |
|
|
|
|
srcs = ["json_stream_error_test.c"], |
|
|
|
|
deps = ["//:grpc", "//test/core/util:grpc_test_util", "//:gpr", "//test/core/util:gpr_test_util"], |
|
|
|
|
copts = ['-std=c99'] |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
name = "json_test", |
|
|
|
|
srcs = ["json_test.c"], |
|
|
|
|
deps = ["//:grpc", "//test/core/util:grpc_test_util", "//:gpr", "//test/core/util:gpr_test_util"], |
|
|
|
|
copts = ['-std=c99'] |
|
|
|
|
) |
|
|
|
|