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