BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Copyright 2016 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(
  15. "//bazel:grpc_build_system.bzl",
  16. "grpc_cc_library",
  17. "grpc_cc_test",
  18. "grpc_package",
  19. )
  20. load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
  21. grpc_package(name = "test/core/compression")
  22. licenses(["notice"])
  23. grpc_cc_library(
  24. name = "args_utils",
  25. testonly = 1,
  26. srcs = ["args_utils.cc"],
  27. hdrs = ["args_utils.h"],
  28. visibility = ["//visibility:public"],
  29. deps = ["//:grpc"],
  30. )
  31. grpc_cc_test(
  32. name = "compression_test",
  33. srcs = ["compression_test.cc"],
  34. language = "C++",
  35. uses_polling = False,
  36. deps = [
  37. ":args_utils",
  38. "//:gpr",
  39. "//:grpc",
  40. "//test/core/util:grpc_test_util",
  41. ],
  42. )
  43. grpc_fuzzer(
  44. name = "message_compress_fuzzer",
  45. srcs = ["message_compress_fuzzer.cc"],
  46. corpus = "message_compress_corpus",
  47. tags = ["no_windows"],
  48. deps = [
  49. "//:grpc",
  50. "//test/core/util:grpc_test_util",
  51. ],
  52. )
  53. grpc_fuzzer(
  54. name = "message_decompress_fuzzer",
  55. srcs = ["message_decompress_fuzzer.cc"],
  56. corpus = "message_decompress_corpus",
  57. tags = ["no_windows"],
  58. deps = [
  59. "//:grpc",
  60. "//test/core/util:grpc_test_util",
  61. ],
  62. )
  63. grpc_cc_test(
  64. name = "message_compress_test",
  65. srcs = ["message_compress_test.cc"],
  66. language = "C++",
  67. uses_polling = False,
  68. deps = [
  69. "//:gpr",
  70. "//:grpc",
  71. "//test/core/util:grpc_test_util",
  72. ],
  73. )