• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 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/surface")
20
21grpc_cc_test(
22    name = "grpc_byte_buffer_reader_test",
23    srcs = ["byte_buffer_reader_test.cc"],
24    language = "C++",
25    uses_polling = False,
26    deps = [
27        "//:gpr",
28        "//:grpc",
29        "//test/core/util:grpc_test_util",
30    ],
31)
32
33grpc_cc_test(
34    name = "channel_create_test",
35    srcs = ["channel_create_test.cc"],
36    language = "C++",
37    deps = [
38        "//:gpr",
39        "//:grpc",
40        "//test/core/util:grpc_test_util",
41    ],
42)
43
44grpc_cc_test(
45    name = "grpc_completion_queue_test",
46    srcs = ["completion_queue_test.cc"],
47    language = "C++",
48    deps = [
49        "//:gpr",
50        "//:grpc",
51        "//test/core/util:grpc_test_util",
52    ],
53)
54
55grpc_cc_test(
56    name = "completion_queue_threading_test",
57    srcs = ["completion_queue_threading_test.cc"],
58    flaky = True,  # TODO(b/153064668)
59    language = "C++",
60    deps = [
61        "//:gpr",
62        "//:grpc",
63        "//test/core/util:grpc_test_util",
64    ],
65)
66
67grpc_cc_test(
68    name = "concurrent_connectivity_test",
69    srcs = ["concurrent_connectivity_test.cc"],
70    flaky = True,  # TODO(b/157516542)
71    language = "C++",
72    deps = [
73        "//:gpr",
74        "//:grpc",
75        "//test/core/util:grpc_test_util",
76    ],
77)
78
79grpc_cc_test(
80    name = "init_test",
81    srcs = ["init_test.cc"],
82    language = "C++",
83    uses_polling = False,
84    deps = [
85        "//:gpr",
86        "//:grpc",
87        "//test/core/util:grpc_test_util",
88    ],
89)
90
91grpc_cc_test(
92    name = "lame_client_test",
93    srcs = ["lame_client_test.cc"],
94    language = "C++",
95    deps = [
96        "//:gpr",
97        "//:grpc",
98        "//test/core/end2end:cq_verifier",
99        "//test/core/util:grpc_test_util",
100    ],
101)
102
103grpc_cc_test(
104    name = "num_external_connectivity_watchers_test",
105    srcs = ["num_external_connectivity_watchers_test.cc"],
106    data = [
107        "//src/core/tsi/test_creds:ca.pem",
108    ],
109    language = "C++",
110    deps = [
111        "//:gpr",
112        "//:grpc",
113        "//test/core/util:grpc_test_util",
114    ],
115)
116
117grpc_cc_test(
118    name = "public_headers_must_be_c89",
119    srcs = ["public_headers_must_be_c89.c"],
120    language = "C",
121    deps = [
122        "//:gpr",
123        "//:grpc",
124        "//test/core/util:grpc_test_util",
125    ],
126)
127
128grpc_cc_test(
129    name = "secure_channel_create_test",
130    srcs = ["secure_channel_create_test.cc"],
131    language = "C++",
132    deps = [
133        "//:gpr",
134        "//:grpc",
135        "//test/core/util:grpc_test_util",
136    ],
137)
138
139grpc_cc_test(
140    name = "sequential_connectivity_test",
141    srcs = ["sequential_connectivity_test.cc"],
142    data = [
143        "//src/core/tsi/test_creds:ca.pem",
144        "//src/core/tsi/test_creds:server1.key",
145        "//src/core/tsi/test_creds:server1.pem",
146    ],
147    flaky = True,  # TODO(b/151696318)
148    language = "C++",
149    deps = [
150        "//:gpr",
151        "//:grpc",
152        "//test/core/util:grpc_test_util",
153    ],
154)
155
156grpc_cc_test(
157    name = "server_chttp2_test",
158    srcs = ["server_chttp2_test.cc"],
159    external_deps = [
160        "gtest",
161    ],
162    language = "C++",
163    deps = [
164        "//:gpr",
165        "//:grpc",
166        "//test/core/util:grpc_test_util",
167    ],
168)
169
170grpc_cc_test(
171    name = "server_test",
172    srcs = ["server_test.cc"],
173    language = "C++",
174    deps = [
175        "//:gpr",
176        "//:grpc",
177        "//test/core/util:grpc_test_util",
178    ],
179)
180