mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
233 lines
5.1 KiB
233 lines
5.1 KiB
# Copyright 2021 gRPC authors. |
|
# |
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
|
# you may not use this file except in compliance with the License. |
|
# You may obtain a copy of the License at |
|
# |
|
# http://www.apache.org/licenses/LICENSE-2.0 |
|
# |
|
# Unless required by applicable law or agreed to in writing, software |
|
# distributed under the License is distributed on an "AS IS" BASIS, |
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
# See the License for the specific language governing permissions and |
|
# limitations under the License. |
|
|
|
load("//bazel:grpc_build_system.bzl", "grpc_cc_test", "grpc_package") |
|
|
|
licenses(["notice"]) |
|
|
|
grpc_package(name = "test/core/promise") |
|
|
|
grpc_cc_test( |
|
name = "poll_test", |
|
srcs = ["poll_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:poll", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "context_test", |
|
srcs = ["context_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:context", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "promise_test", |
|
srcs = ["promise_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:promise", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
# Why promise_map_test and not map_test? |
|
# third_party/benchmark defines a map_test in its cmakefile, and we depend |
|
# on that from our cmakefile, and cmake wants to have a flat namespace to |
|
# deal with xcode/visual studio limitations... sooo... promise_map_test it |
|
# is. |
|
name = "promise_map_test", |
|
srcs = ["map_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:map", |
|
"//:promise", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "race_test", |
|
srcs = ["race_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:race", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "promise_factory_test", |
|
srcs = ["promise_factory_test.cc"], |
|
external_deps = [ |
|
"gtest", |
|
"absl/functional:bind_front", |
|
], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:capture", |
|
"//:promise", |
|
"//:promise_factory", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "if_test", |
|
srcs = ["if_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:if", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "loop_test", |
|
srcs = ["loop_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:loop", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "join_test", |
|
srcs = ["join_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:join", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "try_join_test", |
|
srcs = ["try_join_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:try_join", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "seq_test", |
|
srcs = ["seq_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:seq", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "try_seq_test", |
|
srcs = ["try_seq_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:try_seq", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "activity_test", |
|
srcs = ["activity_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:activity", |
|
"//:join", |
|
"//:promise", |
|
"//:seq", |
|
"//:wait_set", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "latch_test", |
|
srcs = ["latch_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:join", |
|
"//:latch", |
|
"//:seq", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "observable_test", |
|
srcs = ["observable_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:observable", |
|
"//:promise", |
|
"//:seq", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
) |
|
|
|
grpc_cc_test( |
|
name = "pipe_test", |
|
srcs = ["pipe_test.cc"], |
|
external_deps = ["gtest"], |
|
language = "c++", |
|
uses_polling = False, |
|
deps = [ |
|
"//:join", |
|
"//:pipe", |
|
"//:promise", |
|
"//:seq", |
|
"//test/core/util:grpc_suppressions", |
|
], |
|
)
|
|
|