• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_test", "grpc_package")
16load("//test/core/test_util:grpc_fuzzer.bzl", "grpc_fuzzer")
17
18grpc_package(name = "test/core/util/json")
19
20licenses(["notice"])
21
22grpc_fuzzer(
23    name = "json_fuzzer",
24    srcs = ["fuzzer.cc"],
25    corpus = "corpus",
26    external_deps = ["absl/log:check"],
27    language = "C++",
28    tags = ["no_windows"],
29    deps = [
30        "//:gpr",
31        "//:grpc",
32        "//test/core/test_util:grpc_test_util",
33    ],
34)
35
36grpc_cc_test(
37    name = "json_test",
38    srcs = ["json_test.cc"],
39    external_deps = [
40        "absl/log:log",
41        "gtest",
42    ],
43    language = "C++",
44    uses_event_engine = False,
45    uses_polling = False,
46    deps = [
47        "//:gpr",
48        "//:grpc",
49        "//test/core/test_util:grpc_test_util",
50    ],
51)
52
53grpc_cc_test(
54    name = "json_object_loader_test",
55    srcs = ["json_object_loader_test.cc"],
56    external_deps = [
57        "gtest",
58    ],
59    language = "C++",
60    uses_polling = False,
61    deps = [
62        "//src/core:json_object_loader",
63        "//test/core/test_util:grpc_test_util",
64    ],
65)
66