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