| 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 |
load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_py_binary") |
| 16 |
load(":generate_resolver_component_tests.bzl", "generate_resolver_component_tests") |
| 17 |
|
| 18 |
package( |
| 19 |
default_visibility = ["//visibility:public"], |
| 20 |
features = [ |
| 21 |
"-layering_check", |
| 22 |
"-parse_headers", |
| 23 |
], |
| 24 |
) |
| 25 |
|
| 26 |
licenses(["notice"]) |
| 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 = ["gtest"], |
| 41 |
deps = [ |
| 42 |
"//:gpr", |
| 43 |
"//:grpc", |
| 44 |
"//:grpc++", |
| 45 |
"//test/core/end2end:cq_verifier", |
| 46 |
"//test/core/util:fake_udp_and_tcp_server", |
| 47 |
"//test/core/util:grpc_test_util", |
| 48 |
"//test/cpp/util:test_config", |
| 49 |
"//test/cpp/util:test_util", |
| 50 |
], |
| 51 |
) |
| 52 |
|
| 53 |
generate_resolver_component_tests() |