BUILD 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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_library", "grpc_cc_test", "grpc_package")
  15. load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
  16. grpc_package(name = "test/core/http")
  17. licenses(["notice"])
  18. grpc_fuzzer(
  19. name = "response_fuzzer",
  20. srcs = ["response_fuzzer.cc"],
  21. corpus = "response_corpus",
  22. language = "C++",
  23. tags = ["no_windows"],
  24. deps = [
  25. "//:gpr",
  26. "//:grpc",
  27. "//test/core/util:grpc_test_util",
  28. ],
  29. )
  30. grpc_fuzzer(
  31. name = "request_fuzzer",
  32. srcs = ["request_fuzzer.cc"],
  33. corpus = "request_corpus",
  34. language = "C++",
  35. tags = ["no_windows"],
  36. deps = [
  37. "//:gpr",
  38. "//:grpc",
  39. "//test/core/util:grpc_test_util",
  40. ],
  41. )
  42. # Copyright 2017 gRPC authors.
  43. #
  44. # Licensed under the Apache License, Version 2.0 (the "License");
  45. # you may not use this file except in compliance with the License.
  46. # You may obtain a copy of the License at
  47. #
  48. # http://www.apache.org/licenses/LICENSE-2.0
  49. #
  50. # Unless required by applicable law or agreed to in writing, software
  51. # distributed under the License is distributed on an "AS IS" BASIS,
  52. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  53. # See the License for the specific language governing permissions and
  54. # limitations under the License.
  55. licenses(["notice"])
  56. grpc_cc_library(
  57. name = "httpcli_test_util",
  58. testonly = True,
  59. srcs = ["httpcli_test_util.cc"],
  60. hdrs = ["httpcli_test_util.h"],
  61. deps = [
  62. "//:gpr",
  63. "//test/core/end2end:ssl_test_data",
  64. "//test/core/util:grpc_test_util",
  65. ],
  66. )
  67. grpc_cc_test(
  68. name = "httpcli_test",
  69. srcs = ["httpcli_test.cc"],
  70. data = [
  71. "python_wrapper.sh",
  72. "test_server.py",
  73. "//src/core/tsi/test_creds:server1.key",
  74. "//src/core/tsi/test_creds:server1.pem",
  75. ],
  76. external_deps = ["gtest"],
  77. language = "C++",
  78. tags = ["no_windows"],
  79. deps = [
  80. ":httpcli_test_util",
  81. "//:gpr",
  82. "//:grpc",
  83. "//test/core/end2end:ssl_test_data",
  84. "//test/core/util:fake_udp_and_tcp_server",
  85. "//test/core/util:grpc_test_util",
  86. "//test/cpp/util:test_util",
  87. ],
  88. )
  89. grpc_cc_test(
  90. name = "httpscli_test",
  91. srcs = ["httpscli_test.cc"],
  92. data = [
  93. "python_wrapper.sh",
  94. "test_server.py",
  95. "//src/core/tsi/test_creds:ca.pem",
  96. "//src/core/tsi/test_creds:server1.key",
  97. "//src/core/tsi/test_creds:server1.pem",
  98. ],
  99. external_deps = ["gtest"],
  100. language = "C++",
  101. tags = ["no_windows"],
  102. deps = [
  103. ":httpcli_test_util",
  104. "//:gpr",
  105. "//:grpc",
  106. "//test/core/end2end:ssl_test_data",
  107. "//test/core/util:fake_udp_and_tcp_server",
  108. "//test/core/util:grpc_test_util",
  109. "//test/cpp/util:test_util",
  110. ],
  111. )
  112. grpc_cc_test(
  113. name = "parser_test",
  114. srcs = ["parser_test.cc"],
  115. language = "C++",
  116. uses_polling = False,
  117. deps = [
  118. "//:gpr",
  119. "//:grpc",
  120. "//test/core/end2end:ssl_test_data",
  121. "//test/core/util:grpc_test_util",
  122. ],
  123. )
  124. grpc_cc_test(
  125. name = "format_request_test",
  126. srcs = ["format_request_test.cc"],
  127. language = "C++",
  128. deps = [
  129. "//:gpr",
  130. "//:grpc",
  131. "//test/core/end2end:ssl_test_data",
  132. "//test/core/util:grpc_test_util",
  133. ],
  134. )