Imported Upstream version 1.21.0
[platform/upstream/grpc.git] / test / cpp / naming / BUILD
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
15 package(
16     default_visibility = ["//visibility:public"],
17     features = [
18         "-layering_check",
19         "-parse_headers",
20     ],
21 )
22
23 licenses(["notice"])  # Apache v2
24
25 load("//bazel:grpc_build_system.bzl", "grpc_py_binary", "grpc_cc_test", "grpc_cc_library")
26 load(":generate_resolver_component_tests.bzl", "generate_resolver_component_tests")
27
28 # Meant to be invoked only through the top-level shell script driver.
29 grpc_py_binary(
30     name = "resolver_component_tests_runner",
31     testonly = True,
32     srcs = [
33         "resolver_component_tests_runner.py",
34     ],
35 )
36
37 grpc_cc_test(
38     name = "cancel_ares_query_test",
39     srcs = ["cancel_ares_query_test.cc"],
40     external_deps = ["gmock"],
41     deps = [
42         ":dns_test_util",
43         "//:gpr",
44         "//:grpc",
45         "//:grpc++",
46         "//test/core/end2end:cq_verifier",
47         "//test/core/util:grpc_test_util",
48         "//test/cpp/util:test_config",
49         "//test/cpp/util:test_util",
50     ],
51 )
52
53 grpc_cc_library(
54     name = "dns_test_util",
55     hdrs = ["dns_test_util.h"],
56     srcs = ["dns_test_util.cc"],
57     deps = [
58         "//:gpr",
59         "//:grpc",
60     ],
61 )
62
63 generate_resolver_component_tests()