1# Copyright 2017 gRPC authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary", "grpc_package") 16 17grpc_package(name = "test/core/json") 18 19licenses(["notice"]) # Apache v2 20 21load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer") 22 23grpc_fuzzer( 24 name = "json_fuzzer", 25 srcs = ["fuzzer.cc"], 26 language = "C++", 27 corpus = "corpus", 28 deps = [ 29 "//:gpr", 30 "//:grpc", 31 "//test/core/util:grpc_test_util", 32 ], 33) 34 35grpc_cc_binary( 36 name = "json_rewrite", 37 testonly = 1, 38 srcs = ["json_rewrite.cc"], 39 language = "C++", 40 deps = [ 41 "//:gpr", 42 "//:grpc", 43 "//test/core/util:gpr_test_util", 44 "//test/core/util:grpc_test_util", 45 ], 46) 47 48grpc_cc_test( 49 name = "json_rewrite_test", 50 srcs = ["json_rewrite_test.cc"], 51 language = "C++", 52 data = [ 53 "rewrite_test_input.json", 54 "rewrite_test_output_condensed.json", 55 "rewrite_test_output_indented.json", 56 ":json_stream_error_test", 57 ], 58 deps = [ 59 "//:gpr", 60 "//:grpc", 61 "//test/core/util:gpr_test_util", 62 "//test/core/util:grpc_test_util", 63 ], 64) 65 66grpc_cc_test( 67 name = "json_stream_error_test", 68 srcs = ["json_stream_error_test.cc"], 69 language = "C++", 70 deps = [ 71 "//:gpr", 72 "//:grpc", 73 "//test/core/util:gpr_test_util", 74 "//test/core/util:grpc_test_util", 75 ], 76) 77 78grpc_cc_test( 79 name = "json_test", 80 srcs = ["json_test.cc"], 81 language = "C++", 82 deps = [ 83 "//:gpr", 84 "//:grpc", 85 "//test/core/util:gpr_test_util", 86 "//test/core/util:grpc_test_util", 87 ], 88) 89