Debian Codegraph @

test/core/http/BUILD

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