• 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
15licenses(["notice"])  # Apache v2
16
17load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
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/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        "gtest",
38        "gmock",
39        "opencensus-stats-test",
40    ],
41    deps = [
42        "//:gpr",
43        "//:grpc",
44        "//:lb_load_reporter",
45        "//:lb_server_load_reporting_filter",
46        "//test/core/util:gpr_test_util",
47        "//test/core/util:grpc_test_util",
48    ],
49)
50
51grpc_cc_test(
52    name = "lb_get_cpu_stats_test",
53    srcs = ["get_cpu_stats_test.cc"],
54    external_deps = [
55        "gtest",
56    ],
57    deps = [
58        "//:gpr",
59        "//:grpc",
60        "//:lb_get_cpu_stats",
61        "//test/core/util:gpr_test_util",
62        "//test/core/util:grpc_test_util",
63    ],
64)
65