Debian Codegraph @

test/core/client_channel/lb_policy/BUILD

raw
1 # Copyright 2022 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(
16 "//bazel:grpc_build_system.bzl",
17 "grpc_cc_library",
18 "grpc_cc_test",
19 "grpc_package",
20 )
21
22 grpc_package(name = "test/core/client_channel/lb_policy")
23
24 licenses(["notice"])
25
26 grpc_cc_library(
27 name = "lb_policy_test_lib",
28 testonly = True,
29 hdrs = ["lb_policy_test_lib.h"],
30 external_deps = [
31 "gtest",
32 ],
33 language = "C++",
34 deps = [
35 "//src/core:lb_policy",
36 "//src/core:subchannel_interface",
37 ],
38 )
39
40 grpc_cc_test(
41 name = "pick_first_test",
42 srcs = ["pick_first_test.cc"],
43 external_deps = ["gtest"],
44 language = "C++",
45 deps = [
46 ":lb_policy_test_lib",
47 "//src/core:grpc_lb_policy_pick_first",
48 "//test/core/util:grpc_test_util",
49 ],
50 )
51
52 grpc_cc_test(
53 name = "outlier_detection_test",
54 srcs = ["outlier_detection_test.cc"],
55 external_deps = ["gtest"],
56 language = "C++",
57 deps = [
58 ":lb_policy_test_lib",
59 "//src/core:grpc_lb_policy_outlier_detection",
60 "//test/core/util:grpc_test_util",
61 ],
62 )