Debian Codegraph @

test/cpp/server/load_reporter/BUILD

raw
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_package")
16
17 licenses(["notice"])
18
19 grpc_package(name = "test/cpp/server/load_reporter")
20
21 grpc_cc_test(
22 name = "lb_load_data_store_test",
23 srcs = ["load_data_store_test.cc"],
24 external_deps = [
25 "gtest",
26 ],
27 deps = [
28 "//:lb_load_data_store",
29 "//test/core/util:grpc_test_util",
30 ],
31 )
32
33 grpc_cc_test(
34 name = "lb_load_reporter_test",
35 srcs = ["load_reporter_test.cc"],
36 external_deps = [
37 "gtest",
38 "opencensus-stats-test",
39 ],
40 tags = ["no_windows"],
41 deps = [
42 "//:gpr",
43 "//:grpc",
44 "//:lb_load_reporter",
45 "//src/core:lb_server_load_reporting_filter",
46 "//test/core/util:grpc_test_util",
47 ],
48 )
49
50 grpc_cc_test(
51 name = "lb_get_cpu_stats_test",
52 srcs = ["get_cpu_stats_test.cc"],
53 external_deps = [
54 "gtest",
55 ],
56 deps = [
57 "//:gpr",
58 "//:grpc",
59 "//:lb_get_cpu_stats",
60 "//test/core/util:grpc_test_util",
61 ],
62 )