BUILD 1.6 KB

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