BUILD.gn 766 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 2014 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//testing/libfuzzer/fuzzer_test.gni")
  5. source_set("query_parser") {
  6. sources = [
  7. "query_parser.cc",
  8. "query_parser.h",
  9. "snippet.cc",
  10. "snippet.h",
  11. ]
  12. deps = [
  13. "//base",
  14. "//base:i18n",
  15. "//third_party/icu",
  16. ]
  17. }
  18. source_set("unit_tests") {
  19. testonly = true
  20. sources = [
  21. "query_parser_unittest.cc",
  22. "snippet_unittest.cc",
  23. ]
  24. deps = [
  25. ":query_parser",
  26. "//base",
  27. "//testing/gtest",
  28. ]
  29. }
  30. fuzzer_test("query_parser_fuzzer") {
  31. sources = [ "query_parser_fuzzer.cc" ]
  32. deps = [
  33. ":query_parser",
  34. "//base:base",
  35. "//base:i18n",
  36. ]
  37. }