BUILD 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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/common")
  17. grpc_cc_test(
  18. name = "alarm_test",
  19. srcs = ["alarm_test.cc"],
  20. external_deps = [
  21. "gtest",
  22. ],
  23. tags = ["no_windows"], # TODO(jtattermusch): fix test on windows RBE
  24. deps = [
  25. "//:grpc++_unsecure",
  26. "//test/core/util:grpc_test_util_unsecure",
  27. ],
  28. )
  29. grpc_cc_test(
  30. name = "timer_test",
  31. srcs = ["timer_test.cc"],
  32. external_deps = [
  33. "gtest",
  34. ],
  35. deps = [
  36. "//:grpc++",
  37. "//test/core/util:grpc_test_util",
  38. ],
  39. )
  40. grpc_cc_test(
  41. name = "time_jump_test",
  42. srcs = ["time_jump_test.cc"],
  43. external_deps = [
  44. "gtest",
  45. ],
  46. tags = [
  47. # Test manipulates system time and requires root while running so it is only
  48. # run on demand ("manual") and when no other tests are running ("exclusive").
  49. # It also means that the test won't work with setups like bazel RBE.
  50. "manual",
  51. "exclusive",
  52. "no_windows",
  53. ],
  54. deps = [
  55. "//:grpc++",
  56. "//test/core/util:grpc_test_util",
  57. ],
  58. )
  59. grpc_cc_test(
  60. name = "auth_property_iterator_test",
  61. srcs = ["auth_property_iterator_test.cc"],
  62. external_deps = [
  63. "gtest",
  64. ],
  65. uses_polling = False,
  66. deps = [
  67. "//:grpc++",
  68. "//test/core/util:grpc_test_util",
  69. "//test/cpp/util:test_util",
  70. ],
  71. )
  72. grpc_cc_test(
  73. name = "channel_arguments_test",
  74. srcs = ["channel_arguments_test.cc"],
  75. external_deps = [
  76. "gtest",
  77. ],
  78. uses_polling = False,
  79. deps = [
  80. "//:grpc++",
  81. "//test/core/util:grpc_test_util",
  82. ],
  83. )
  84. grpc_cc_test(
  85. name = "channel_filter_test",
  86. srcs = ["channel_filter_test.cc"],
  87. external_deps = [
  88. "gtest",
  89. ],
  90. uses_polling = False,
  91. deps = [
  92. "//:grpc++",
  93. "//test/core/util:grpc_test_util",
  94. ],
  95. )
  96. grpc_cc_test(
  97. name = "secure_auth_context_test",
  98. srcs = ["secure_auth_context_test.cc"],
  99. external_deps = [
  100. "gtest",
  101. ],
  102. deps = [
  103. "//:grpc++",
  104. "//test/core/util:grpc_test_util",
  105. "//test/cpp/util:test_util",
  106. ],
  107. )
  108. grpc_cc_test(
  109. name = "alts_util_test",
  110. srcs = ["alts_util_test.cc"],
  111. external_deps = [
  112. "gtest",
  113. ],
  114. deps = [
  115. "//:grpc++_alts",
  116. "//test/core/util:grpc_test_util",
  117. "//test/cpp/util:test_util",
  118. ],
  119. )