• 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
15load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_package")
16
17licenses(["notice"])
18
19grpc_package(name = "test/cpp/server/load_reporter")
20
21grpc_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/test_util:grpc_test_util",
30    ],
31)
32
33grpc_cc_test(
34    name = "lb_load_reporter_test",
35    srcs = ["load_reporter_test.cc"],
36    external_deps = [
37        "absl/flags:flag",
38        "absl/log:check",
39        "gtest",
40        "opencensus-stats-test",
41    ],
42    tags = ["no_windows"],
43    deps = [
44        "//:gpr",
45        "//:grpc",
46        "//:lb_load_reporter",
47        "//src/core:lb_server_load_reporting_filter",
48        "//test/core/test_util:grpc_test_util",
49    ],
50)
51
52grpc_cc_test(
53    name = "lb_get_cpu_stats_test",
54    srcs = ["get_cpu_stats_test.cc"],
55    external_deps = [
56        "gtest",
57    ],
58    deps = [
59        "//:gpr",
60        "//:grpc",
61        "//:lb_get_cpu_stats",
62        "//test/core/test_util:grpc_test_util",
63    ],
64)
65