| 1 |
# Copyright 2022 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") |
| 16 |
|
| 17 |
licenses(["notice"]) |
| 18 |
|
| 19 |
grpc_cc_test( |
| 20 |
name = "iocp_test", |
| 21 |
timeout = "short", |
| 22 |
srcs = ["iocp_test.cc"], |
| 23 |
external_deps = [ |
| 24 |
"gtest", |
| 25 |
"absl/types:variant", |
| 26 |
], |
| 27 |
language = "C++", |
| 28 |
tags = [ |
| 29 |
"no_linux", |
| 30 |
"no_mac", |
| 31 |
"no_test_ios", |
| 32 |
], |
| 33 |
uses_event_engine = False, |
| 34 |
uses_polling = False, |
| 35 |
deps = [ |
| 36 |
"create_sockpair", |
| 37 |
"//:gpr_platform", |
| 38 |
"//src/core:common_event_engine_closures", |
| 39 |
"//src/core:event_engine_utils", |
| 40 |
"//src/core:windows_iocp", |
| 41 |
"//test/core/util:grpc_test_util", |
| 42 |
], |
| 43 |
) |
| 44 |
|
| 45 |
grpc_cc_test( |
| 46 |
name = "win_socket_test", |
| 47 |
timeout = "short", |
| 48 |
srcs = ["win_socket_test.cc"], |
| 49 |
external_deps = ["gtest"], |
| 50 |
language = "C++", |
| 51 |
tags = [ |
| 52 |
"no_linux", |
| 53 |
"no_mac", |
| 54 |
"no_test_ios", |
| 55 |
], |
| 56 |
uses_event_engine = False, |
| 57 |
uses_polling = False, |
| 58 |
deps = [ |
| 59 |
"create_sockpair", |
| 60 |
"//:gpr_platform", |
| 61 |
"//src/core:common_event_engine_closures", |
| 62 |
"//src/core:windows_event_engine", |
| 63 |
"//test/core/util:grpc_test_util", |
| 64 |
], |
| 65 |
) |
| 66 |
|
| 67 |
grpc_cc_library( |
| 68 |
name = "create_sockpair", |
| 69 |
srcs = ["create_sockpair.cc"], |
| 70 |
hdrs = ["create_sockpair.h"], |
| 71 |
external_deps = ["absl/status"], |
| 72 |
language = "C++", |
| 73 |
tags = [ |
| 74 |
"no_linux", |
| 75 |
"no_mac", |
| 76 |
], |
| 77 |
deps = [ |
| 78 |
"//:gpr_platform", |
| 79 |
"//:grpc_base", |
| 80 |
], |
| 81 |
) |