123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- # Copyright 2016 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")
- load("//test/core/util:grpc_fuzzer.bzl", "grpc_proto_fuzzer")
- load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
- licenses(["notice"])
- grpc_package(name = "test/core/transport/chttp2")
- grpc_proto_fuzzer(
- name = "hpack_parser_fuzzer",
- srcs = ["hpack_parser_fuzzer_test.cc"],
- corpus = "hpack_parser_corpus",
- proto = "hpack_parser_fuzzer.proto",
- tags = ["no_windows"],
- deps = [
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "alpn_test",
- srcs = ["alpn_test.cc"],
- language = "C++",
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "bin_decoder_test",
- srcs = ["bin_decoder_test.cc"],
- language = "C++",
- uses_polling = False,
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "bin_encoder_test",
- srcs = ["bin_encoder_test.cc"],
- language = "C++",
- uses_polling = False,
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "context_list_test",
- srcs = ["context_list_test.cc"],
- external_deps = [
- "gtest",
- ],
- language = "C++",
- uses_polling = False,
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "flow_control_test",
- size = "large",
- srcs = ["flow_control_test.cc"],
- external_deps = [
- "gtest",
- ],
- language = "C++",
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/end2end:cq_verifier",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "hpack_encoder_test",
- srcs = ["hpack_encoder_test.cc"],
- language = "C++",
- uses_polling = False,
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "hpack_parser_test",
- srcs = ["hpack_parser_test.cc"],
- external_deps = ["gtest"],
- language = "C++",
- uses_polling = False,
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "hpack_parser_table_test",
- srcs = ["hpack_parser_table_test.cc"],
- external_deps = ["gtest"],
- language = "C++",
- uses_polling = False,
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "stream_map_test",
- srcs = ["stream_map_test.cc"],
- language = "C++",
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "streams_not_seen_test",
- srcs = ["streams_not_seen_test.cc"],
- external_deps = ["gtest"],
- language = "C++",
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/end2end:cq_verifier",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "settings_timeout_test",
- srcs = ["settings_timeout_test.cc"],
- external_deps = [
- "gtest",
- ],
- flaky = True, # TODO(b/148399919)
- language = "C++",
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "too_many_pings_test",
- timeout = "long", # Required for internal test infrastructure (cl/325757166)
- srcs = ["too_many_pings_test.cc"],
- external_deps = ["gtest"],
- deps = [
- "//:gpr",
- "//:grpc",
- "//:grpc++",
- "//test/core/end2end:cq_verifier",
- "//test/core/util:grpc_test_util",
- "//test/cpp/util:test_config",
- "//test/cpp/util:test_util",
- ],
- )
- grpc_cc_test(
- name = "varint_test",
- srcs = ["varint_test.cc"],
- language = "C++",
- uses_polling = False,
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
- grpc_cc_test(
- name = "remove_stream_from_stalled_lists_test",
- srcs = ["remove_stream_from_stalled_lists_test.cc"],
- # use LARGE_MACHINE because this test needs a certaim amount
- # of parallelism in order to reproduce the original crash that it's meant
- # to regression test for (a crash which is fixed by
- # https://github.com/grpc/grpc/pull/23984). Experiments show that if this
- # test doesn't use LARGE_MACHINE, then it will almost never reproduce the
- # intended crash (as it's meant to before the fix is applied). But with
- # LARGE_MACHINE, it can reproduce at a high rate.
- exec_properties = LARGE_MACHINE,
- external_deps = [
- "gtest",
- ],
- language = "C++",
- tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
- deps = [
- "//:gpr",
- "//:grpc",
- "//test/core/util:grpc_test_util",
- ],
- )
|