BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Copyright 2018 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. load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_package")
  15. licenses(["notice"])
  16. grpc_package(name = "test/core/tsi/alts/handshaker")
  17. grpc_cc_library(
  18. name = "alts_handshaker_service_api_test_lib",
  19. srcs = ["alts_handshaker_service_api_test_lib.cc"],
  20. hdrs = ["alts_handshaker_service_api_test_lib.h"],
  21. deps = [
  22. "//:grpc",
  23. ],
  24. )
  25. grpc_cc_test(
  26. name = "alts_handshaker_client_test",
  27. srcs = ["alts_handshaker_client_test.cc"],
  28. language = "C++",
  29. deps = [
  30. ":alts_handshaker_service_api_test_lib",
  31. "//:grpc",
  32. "//test/core/util:grpc_test_util",
  33. ],
  34. )
  35. grpc_cc_test(
  36. name = "alts_tsi_handshaker_test",
  37. srcs = ["alts_tsi_handshaker_test.cc"],
  38. language = "C++",
  39. deps = [
  40. ":alts_handshaker_service_api_test_lib",
  41. "//:gpr",
  42. "//:gpr_base",
  43. "//:grpc",
  44. "//test/core/util:grpc_test_util",
  45. ],
  46. )
  47. grpc_cc_test(
  48. name = "alts_tsi_utils_test",
  49. srcs = ["alts_tsi_utils_test.cc"],
  50. language = "C++",
  51. deps = [
  52. ":alts_handshaker_service_api_test_lib",
  53. "//:grpc",
  54. "//test/core/util:grpc_test_util",
  55. ],
  56. )
  57. grpc_cc_test(
  58. name = "transport_security_common_api_test",
  59. srcs = ["transport_security_common_api_test.cc"],
  60. language = "C++",
  61. deps = [
  62. "//:grpc",
  63. "//test/core/util:grpc_test_util",
  64. ],
  65. )
  66. grpc_cc_test(
  67. name = "alts_concurrent_connectivity_test",
  68. srcs = [
  69. "alts_concurrent_connectivity_test.cc",
  70. ],
  71. external_deps = ["gtest"],
  72. language = "C++",
  73. # TODO(apolcyn): make the fake TCP server used in this
  74. # test portable to Windows.
  75. tags = [
  76. "no_mac", # TODO(https://github.com/grpc/grpc/issues/24747): Disable temporarily
  77. "no_windows",
  78. ],
  79. deps = [
  80. "//:grpc",
  81. "//test/core/end2end:cq_verifier",
  82. "//test/core/tsi/alts/fake_handshaker:fake_handshaker_lib",
  83. "//test/core/util:fake_udp_and_tcp_server",
  84. "//test/core/util:grpc_test_util",
  85. ],
  86. )