• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
16
17licenses(["notice"])  # Apache v2
18
19grpc_package(name = "test/core/end2end")
20
21load(":generate_tests.bzl", "grpc_end2end_nosec_tests", "grpc_end2end_tests")
22
23grpc_cc_library(
24    name = "cq_verifier",
25    srcs = ["cq_verifier.cc"],
26    hdrs = ["cq_verifier.h"],
27    language = "C++",
28    visibility = ["//test:__subpackages__"],
29    deps = [
30        "//:gpr",
31        "//:grpc",
32        "//test/core/util:grpc_test_util",
33    ],
34)
35
36grpc_cc_library(
37    name = "ssl_test_data",
38    srcs = [
39        "data/client_certs.cc",
40        "data/server1_cert.cc",
41        "data/server1_key.cc",
42        "data/test_root_cert.cc",
43    ],
44    hdrs = ["data/ssl_test_data.h"],
45    language = "C++",
46    visibility = ["//test:__subpackages__"],
47)
48
49grpc_cc_library(
50    name = "http_proxy",
51    srcs = ["fixtures/http_proxy_fixture.cc"],
52    hdrs = ["fixtures/http_proxy_fixture.h"],
53    language = "C++",
54    deps = [
55        "//:gpr",
56        "//:grpc",
57        "//test/core/util:grpc_test_util",
58    ],
59)
60
61grpc_cc_library(
62    name = "proxy",
63    srcs = ["fixtures/proxy.cc"],
64    hdrs = ["fixtures/proxy.h"],
65    language = "C++",
66    deps = [
67        "//:gpr",
68        "//:grpc",
69        "//test/core/util:grpc_test_util",
70    ],
71)
72
73grpc_cc_library(
74    name = "local_util",
75    srcs = ["fixtures/local_util.cc"],
76    hdrs = [
77        "end2end_tests.h",
78        "fixtures/local_util.h",
79    ],
80    language = "C++",
81    deps = [
82        "//:gpr",
83        "//:grpc",
84        "//test/core/util:grpc_test_util",
85    ],
86)
87
88grpc_cc_test(
89    name = "bad_server_response_test",
90    srcs = ["bad_server_response_test.cc"],
91    language = "C++",
92    deps = [
93        ":cq_verifier",
94        "//:gpr",
95        "//:grpc",
96        "//test/core/util:grpc_test_util",
97    ],
98)
99
100grpc_cc_test(
101    name = "connection_refused_test",
102    srcs = ["connection_refused_test.cc"],
103    language = "C++",
104    deps = [
105        ":cq_verifier",
106        "//:gpr",
107        "//:grpc",
108        "//test/core/util:grpc_test_util",
109    ],
110)
111
112grpc_cc_test(
113    name = "dualstack_socket_test",
114    srcs = ["dualstack_socket_test.cc"],
115    language = "C++",
116    tags = ["no_windows"],
117    deps = [
118        ":cq_verifier",
119        "//:gpr",
120        "//:grpc",
121        "//test/core/util:grpc_test_util",
122    ],
123)
124
125grpc_cc_test(
126    name = "goaway_server_test",
127    srcs = ["goaway_server_test.cc"],
128    language = "C++",
129    deps = [
130        ":cq_verifier",
131        "//:gpr",
132        "//:grpc",
133        "//test/core/util:grpc_test_util",
134    ],
135)
136
137grpc_cc_test(
138    name = "inproc_callback_test",
139    srcs = ["inproc_callback_test.cc"],
140    language = "C++",
141    uses_polling = False,
142    deps = [
143        ":end2end_tests",
144        "//:gpr",
145        "//:grpc",
146        "//test/core/util:grpc_test_util",
147    ],
148)
149
150grpc_cc_test(
151    name = "invalid_call_argument_test",
152    srcs = ["invalid_call_argument_test.cc"],
153    language = "C++",
154    deps = [
155        ":cq_verifier",
156        "//:gpr",
157        "//:grpc",
158        "//test/core/util:grpc_test_util",
159    ],
160)
161
162grpc_cc_test(
163    name = "multiple_server_queues_test",
164    srcs = ["multiple_server_queues_test.cc"],
165    language = "C++",
166    deps = [
167        ":cq_verifier",
168        "//:gpr",
169        "//:grpc",
170        "//test/core/util:grpc_test_util",
171    ],
172)
173
174grpc_cc_test(
175    name = "no_server_test",
176    srcs = ["no_server_test.cc"],
177    language = "C++",
178    deps = [
179        ":cq_verifier",
180        "//:gpr",
181        "//:grpc",
182        "//test/core/util:grpc_test_util",
183    ],
184)
185
186grpc_end2end_tests()
187
188grpc_end2end_nosec_tests()
189
190grpc_cc_test(
191    name = "h2_ssl_session_reuse_test",
192    srcs = ["h2_ssl_session_reuse_test.cc"],
193    data = [
194        "//src/core/tsi/test_creds:ca.pem",
195        "//src/core/tsi/test_creds:client.key",
196        "//src/core/tsi/test_creds:client.pem",
197        "//src/core/tsi/test_creds:server1.key",
198        "//src/core/tsi/test_creds:server1.pem",
199    ],
200    external_deps = [
201        "gtest",
202    ],
203    language = "C++",
204    deps = [
205        ":end2end_tests",
206        "//:gpr",
207        "//:grpc",
208        "//:tsi",
209        "//test/core/util:grpc_test_util",
210    ],
211)
212