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/util:grpc_fuzzer.bzl", "grpc_fuzzer") 17 18grpc_package(name = "test/core/http") 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/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/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 deps = [ 70 "//:gpr", 71 "//:subprocess", 72 "//test/core/end2end:ssl_test_data", 73 "//test/core/util:grpc_test_util", 74 "//test/core/util:grpc_test_util_base", 75 ], 76) 77 78grpc_cc_test( 79 name = "httpcli_test", 80 srcs = ["httpcli_test.cc"], 81 data = [ 82 "python_wrapper.sh", 83 "test_server.py", 84 "//src/core/tsi/test_creds:server1.key", 85 "//src/core/tsi/test_creds:server1.pem", 86 ], 87 external_deps = ["gtest"], 88 language = "C++", 89 tags = ["no_windows"], 90 deps = [ 91 ":httpcli_test_util", 92 "//:gpr", 93 "//:grpc", 94 "//:subprocess", 95 "//test/core/end2end:ssl_test_data", 96 "//test/core/util:fake_udp_and_tcp_server", 97 "//test/core/util:grpc_test_util", 98 "//test/cpp/util:test_util", 99 ], 100) 101 102grpc_cc_test( 103 name = "httpscli_test", 104 srcs = ["httpscli_test.cc"], 105 data = [ 106 "python_wrapper.sh", 107 "test_server.py", 108 "//:subprocess", 109 "//src/core/tsi/test_creds:ca.pem", 110 "//src/core/tsi/test_creds:server1.key", 111 "//src/core/tsi/test_creds:server1.pem", 112 ], 113 external_deps = ["gtest"], 114 language = "C++", 115 tags = ["no_windows"], 116 deps = [ 117 ":httpcli_test_util", 118 "//:gpr", 119 "//:grpc", 120 "//src/core:channel_args", 121 "//src/core:closure", 122 "//test/core/end2end:ssl_test_data", 123 "//test/core/util:fake_udp_and_tcp_server", 124 "//test/core/util:grpc_test_util", 125 "//test/cpp/util:test_util", 126 ], 127) 128 129grpc_cc_test( 130 name = "parser_test", 131 srcs = ["parser_test.cc"], 132 external_deps = ["gtest"], 133 language = "C++", 134 uses_event_engine = False, 135 uses_polling = False, 136 deps = [ 137 "//:gpr", 138 "//:grpc", 139 "//test/core/end2end:ssl_test_data", 140 "//test/core/util:grpc_test_util", 141 "//test/core/util:grpc_test_util_base", 142 ], 143) 144 145grpc_cc_test( 146 name = "format_request_test", 147 srcs = ["format_request_test.cc"], 148 external_deps = ["gtest"], 149 language = "C++", 150 deps = [ 151 "//:gpr", 152 "//:grpc", 153 "//src/core:slice", 154 "//test/core/end2end:ssl_test_data", 155 "//test/core/util:grpc_test_util", 156 "//test/core/util:grpc_test_util_base", 157 ], 158) 159