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