• 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
18licenses(["notice"])
19
20grpc_package(
21    name = "test/core/address_utils",
22    visibility = "private",
23)
24
25grpc_cc_test(
26    name = "sockaddr_utils_test",
27    srcs = ["sockaddr_utils_test.cc"],
28    external_deps = [
29        "absl/log:check",
30        "gtest",
31    ],
32    language = "C++",
33    deps = [
34        "//:gpr",
35        "//:grpc",
36        "//test/core/test_util:grpc_test_util",
37    ],
38)
39
40grpc_cc_test(
41    name = "parse_address_test",
42    srcs = ["parse_address_test.cc"],
43    external_deps = [
44        "absl/log:log",
45        "absl/strings",
46        "gtest",
47    ],
48    language = "C++",
49    deps = [
50        "//:gpr",
51        "//:grpc",
52        "//test/core/test_util:grpc_test_util",
53    ],
54)
55
56grpc_fuzzer(
57    name = "sockaddr_utils_fuzzer_test",
58    srcs = ["sockaddr_utils_fuzzer_test.cc"],
59    corpus = "sockaddr_uri_corpus",
60    external_deps = ["absl/log:check"],
61    tags = ["no_windows"],
62    uses_event_engine = False,
63    uses_polling = False,
64    deps = [
65        "//:grpc",
66        "//test/core/test_util:grpc_test_util",
67    ],
68)
69
70grpc_cc_test(
71    name = "parse_address_with_named_scope_id_test",
72    srcs = ["parse_address_with_named_scope_id_test.cc"],
73    external_deps = [
74        "absl/log:log",
75        "gtest",
76    ],
77    language = "C++",
78    tags = ["no_windows"],
79    uses_event_engine = False,
80    uses_polling = False,
81    deps = [
82        "//:gpr",
83        "//:grpc",
84        "//test/core/test_util:grpc_test_util",
85    ],
86)
87