BUILD 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. # Copyright 2016 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. load("//test/core/util:grpc_fuzzer.bzl", "grpc_proto_fuzzer")
  16. load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
  17. licenses(["notice"])
  18. grpc_package(name = "test/core/transport/chttp2")
  19. grpc_proto_fuzzer(
  20. name = "hpack_parser_fuzzer",
  21. srcs = ["hpack_parser_fuzzer_test.cc"],
  22. corpus = "hpack_parser_corpus",
  23. proto = "hpack_parser_fuzzer.proto",
  24. tags = ["no_windows"],
  25. deps = [
  26. "//:grpc",
  27. "//test/core/util:grpc_test_util",
  28. ],
  29. )
  30. grpc_cc_test(
  31. name = "alpn_test",
  32. srcs = ["alpn_test.cc"],
  33. language = "C++",
  34. deps = [
  35. "//:gpr",
  36. "//:grpc",
  37. "//test/core/util:grpc_test_util",
  38. ],
  39. )
  40. grpc_cc_test(
  41. name = "bin_decoder_test",
  42. srcs = ["bin_decoder_test.cc"],
  43. language = "C++",
  44. uses_polling = False,
  45. deps = [
  46. "//:gpr",
  47. "//:grpc",
  48. "//test/core/util:grpc_test_util",
  49. ],
  50. )
  51. grpc_cc_test(
  52. name = "bin_encoder_test",
  53. srcs = ["bin_encoder_test.cc"],
  54. language = "C++",
  55. uses_polling = False,
  56. deps = [
  57. "//:gpr",
  58. "//:grpc",
  59. "//test/core/util:grpc_test_util",
  60. ],
  61. )
  62. grpc_cc_test(
  63. name = "context_list_test",
  64. srcs = ["context_list_test.cc"],
  65. external_deps = [
  66. "gtest",
  67. ],
  68. language = "C++",
  69. uses_polling = False,
  70. deps = [
  71. "//:gpr",
  72. "//:grpc",
  73. "//test/core/util:grpc_test_util",
  74. ],
  75. )
  76. grpc_cc_test(
  77. name = "flow_control_test",
  78. size = "large",
  79. srcs = ["flow_control_test.cc"],
  80. external_deps = [
  81. "gtest",
  82. ],
  83. language = "C++",
  84. deps = [
  85. "//:gpr",
  86. "//:grpc",
  87. "//test/core/end2end:cq_verifier",
  88. "//test/core/util:grpc_test_util",
  89. ],
  90. )
  91. grpc_cc_test(
  92. name = "hpack_encoder_test",
  93. srcs = ["hpack_encoder_test.cc"],
  94. language = "C++",
  95. uses_polling = False,
  96. deps = [
  97. "//:gpr",
  98. "//:grpc",
  99. "//test/core/util:grpc_test_util",
  100. ],
  101. )
  102. grpc_cc_test(
  103. name = "hpack_parser_test",
  104. srcs = ["hpack_parser_test.cc"],
  105. external_deps = ["gtest"],
  106. language = "C++",
  107. uses_polling = False,
  108. deps = [
  109. "//:gpr",
  110. "//:grpc",
  111. "//test/core/util:grpc_test_util",
  112. ],
  113. )
  114. grpc_cc_test(
  115. name = "hpack_parser_table_test",
  116. srcs = ["hpack_parser_table_test.cc"],
  117. external_deps = ["gtest"],
  118. language = "C++",
  119. uses_polling = False,
  120. deps = [
  121. "//:gpr",
  122. "//:grpc",
  123. "//test/core/util:grpc_test_util",
  124. ],
  125. )
  126. grpc_cc_test(
  127. name = "stream_map_test",
  128. srcs = ["stream_map_test.cc"],
  129. language = "C++",
  130. deps = [
  131. "//:gpr",
  132. "//:grpc",
  133. "//test/core/util:grpc_test_util",
  134. ],
  135. )
  136. grpc_cc_test(
  137. name = "streams_not_seen_test",
  138. srcs = ["streams_not_seen_test.cc"],
  139. external_deps = ["gtest"],
  140. language = "C++",
  141. deps = [
  142. "//:gpr",
  143. "//:grpc",
  144. "//test/core/end2end:cq_verifier",
  145. "//test/core/util:grpc_test_util",
  146. ],
  147. )
  148. grpc_cc_test(
  149. name = "settings_timeout_test",
  150. srcs = ["settings_timeout_test.cc"],
  151. external_deps = [
  152. "gtest",
  153. ],
  154. flaky = True, # TODO(b/148399919)
  155. language = "C++",
  156. deps = [
  157. "//:gpr",
  158. "//:grpc",
  159. "//test/core/util:grpc_test_util",
  160. ],
  161. )
  162. grpc_cc_test(
  163. name = "too_many_pings_test",
  164. timeout = "long", # Required for internal test infrastructure (cl/325757166)
  165. srcs = ["too_many_pings_test.cc"],
  166. external_deps = ["gtest"],
  167. deps = [
  168. "//:gpr",
  169. "//:grpc",
  170. "//:grpc++",
  171. "//test/core/end2end:cq_verifier",
  172. "//test/core/util:grpc_test_util",
  173. "//test/cpp/util:test_config",
  174. "//test/cpp/util:test_util",
  175. ],
  176. )
  177. grpc_cc_test(
  178. name = "varint_test",
  179. srcs = ["varint_test.cc"],
  180. language = "C++",
  181. uses_polling = False,
  182. deps = [
  183. "//:gpr",
  184. "//:grpc",
  185. "//test/core/util:grpc_test_util",
  186. ],
  187. )
  188. grpc_cc_test(
  189. name = "remove_stream_from_stalled_lists_test",
  190. srcs = ["remove_stream_from_stalled_lists_test.cc"],
  191. # use LARGE_MACHINE because this test needs a certaim amount
  192. # of parallelism in order to reproduce the original crash that it's meant
  193. # to regression test for (a crash which is fixed by
  194. # https://github.com/grpc/grpc/pull/23984). Experiments show that if this
  195. # test doesn't use LARGE_MACHINE, then it will almost never reproduce the
  196. # intended crash (as it's meant to before the fix is applied). But with
  197. # LARGE_MACHINE, it can reproduce at a high rate.
  198. exec_properties = LARGE_MACHINE,
  199. external_deps = [
  200. "gtest",
  201. ],
  202. language = "C++",
  203. tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
  204. deps = [
  205. "//:gpr",
  206. "//:grpc",
  207. "//test/core/util:grpc_test_util",
  208. ],
  209. )