BUILD 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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_test", "grpc_package")
  15. load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
  16. grpc_package(name = "test/core/slice")
  17. licenses(["notice"])
  18. grpc_fuzzer(
  19. name = "b64_encode_fuzzer",
  20. srcs = ["b64_encode_fuzzer.cc"],
  21. corpus = "b64_encode_corpus",
  22. language = "C++",
  23. tags = ["no_windows"],
  24. deps = [
  25. "//:grpc",
  26. ],
  27. )
  28. grpc_fuzzer(
  29. name = "b64_decode_fuzzer",
  30. srcs = ["b64_decode_fuzzer.cc"],
  31. corpus = "b64_decode_corpus",
  32. language = "C++",
  33. tags = ["no_windows"],
  34. deps = [
  35. "//:grpc",
  36. ],
  37. )
  38. grpc_fuzzer(
  39. name = "percent_encode_fuzzer",
  40. srcs = ["percent_encode_fuzzer.cc"],
  41. corpus = "percent_encode_corpus",
  42. language = "C++",
  43. tags = ["no_windows"],
  44. deps = [
  45. "//:gpr",
  46. "//:grpc",
  47. "//test/core/util:grpc_test_util",
  48. ],
  49. )
  50. grpc_fuzzer(
  51. name = "percent_decode_fuzzer",
  52. srcs = ["percent_decode_fuzzer.cc"],
  53. corpus = "percent_decode_corpus",
  54. language = "C++",
  55. tags = ["no_windows"],
  56. deps = [
  57. "//:gpr",
  58. "//:grpc",
  59. "//test/core/util:grpc_test_util",
  60. ],
  61. )
  62. grpc_cc_test(
  63. name = "percent_encoding_test",
  64. srcs = ["percent_encoding_test.cc"],
  65. language = "C++",
  66. uses_polling = False,
  67. deps = [
  68. "//:gpr",
  69. "//:grpc",
  70. "//test/core/util:grpc_test_util",
  71. ],
  72. )
  73. grpc_cc_test(
  74. name = "slice_test",
  75. srcs = ["slice_test.cc"],
  76. external_deps = [
  77. "gtest",
  78. ],
  79. language = "C++",
  80. uses_polling = False,
  81. deps = [
  82. "//:gpr",
  83. "//:slice",
  84. "//test/core/util:build",
  85. "//test/core/util:grpc_suppressions",
  86. ],
  87. )
  88. grpc_cc_test(
  89. name = "slice_string_helpers_test",
  90. srcs = ["slice_string_helpers_test.cc"],
  91. language = "C++",
  92. uses_polling = False,
  93. deps = [
  94. "//:gpr",
  95. "//:slice",
  96. "//test/core/util:grpc_suppressions",
  97. ],
  98. )
  99. grpc_cc_test(
  100. name = "slice_split_test",
  101. srcs = ["slice_split_test.cc"],
  102. language = "C++",
  103. uses_polling = False,
  104. deps = [
  105. "//:gpr",
  106. "//:grpc",
  107. "//test/core/util:grpc_test_util",
  108. ],
  109. )
  110. grpc_cc_test(
  111. name = "slice_buffer_test",
  112. srcs = ["slice_buffer_test.cc"],
  113. language = "C++",
  114. uses_polling = False,
  115. deps = [
  116. "//:gpr",
  117. "//:grpc",
  118. "//test/core/util:grpc_test_util",
  119. ],
  120. )
  121. grpc_cc_test(
  122. name = "b64_test",
  123. srcs = ["b64_test.cc"],
  124. language = "C++",
  125. uses_polling = False,
  126. deps = [
  127. "//:gpr",
  128. "//:grpc",
  129. "//test/core/util:grpc_test_util",
  130. ],
  131. )