BUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_test", "grpc_package")
  15. grpc_package(name = "test/core/fling")
  16. licenses(["notice"])
  17. grpc_cc_binary(
  18. name = "fling_client",
  19. testonly = 1,
  20. srcs = ["client.cc"],
  21. language = "C++",
  22. deps = [
  23. "//:gpr",
  24. "//:grpc",
  25. "//test/core/end2end:ssl_test_data",
  26. "//test/core/util:grpc_test_util",
  27. ],
  28. )
  29. grpc_cc_binary(
  30. name = "fling_server",
  31. testonly = 1,
  32. srcs = ["server.cc"],
  33. language = "C++",
  34. deps = [
  35. "//:gpr",
  36. "//:grpc",
  37. "//test/core/end2end:ssl_test_data",
  38. "//test/core/util:grpc_test_util",
  39. ],
  40. )
  41. grpc_cc_test(
  42. name = "fling_test",
  43. srcs = ["fling_test.cc"],
  44. data = [
  45. ":fling_client",
  46. ":fling_server",
  47. ],
  48. tags = ["no_windows"],
  49. deps = [
  50. "//:gpr",
  51. "//:grpc",
  52. "//test/core/end2end:ssl_test_data",
  53. "//test/core/util:grpc_test_util",
  54. ],
  55. )
  56. grpc_cc_test(
  57. name = "fling_stream_test",
  58. srcs = ["fling_stream_test.cc"],
  59. data = [
  60. ":fling_client",
  61. ":fling_server",
  62. ],
  63. tags = ["no_windows"],
  64. deps = [
  65. "//:gpr",
  66. "//:grpc",
  67. "//test/core/end2end:ssl_test_data",
  68. "//test/core/util:grpc_test_util",
  69. ],
  70. )