BUILD.gn 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. static_library("feedback") {
  6. sources = [
  7. "features.cc",
  8. "features.h",
  9. "feedback_common.cc",
  10. "feedback_common.h",
  11. "feedback_data.cc",
  12. "feedback_data.h",
  13. "feedback_report.cc",
  14. "feedback_report.h",
  15. "feedback_switches.cc",
  16. "feedback_switches.h",
  17. "feedback_uploader.cc",
  18. "feedback_uploader.h",
  19. "feedback_util.cc",
  20. "feedback_util.h",
  21. "pii_types.h",
  22. "redaction_tool.cc",
  23. "redaction_tool.h",
  24. "system_logs/system_logs_fetcher.cc",
  25. "system_logs/system_logs_fetcher.h",
  26. "system_logs/system_logs_source.cc",
  27. "system_logs/system_logs_source.h",
  28. "tracing_manager.cc",
  29. "tracing_manager.h",
  30. ]
  31. public_deps = [ "//base" ]
  32. deps = [
  33. "//build:chromeos_buildflags",
  34. "//components/feedback/proto",
  35. "//components/keyed_service/core",
  36. "//components/variations/net",
  37. "//google_apis",
  38. "//net",
  39. "//services/network/public/cpp",
  40. "//third_party/re2",
  41. "//third_party/zlib/google:zip",
  42. ]
  43. }
  44. source_set("unit_tests") {
  45. testonly = true
  46. sources = [
  47. "feedback_common_unittest.cc",
  48. "feedback_data_unittest.cc",
  49. "feedback_uploader_dispatch_unittest.cc",
  50. "feedback_uploader_unittest.cc",
  51. "redaction_tool_unittest.cc",
  52. ]
  53. if (!is_win) {
  54. sources += [ "feedback_util_unittest.cc" ]
  55. }
  56. deps = [
  57. ":feedback",
  58. "//base",
  59. "//build:chromeos_buildflags",
  60. "//components/feedback/proto",
  61. "//components/keyed_service/core",
  62. "//components/prefs:test_support",
  63. "//components/sync_preferences:test_support",
  64. "//components/user_prefs",
  65. "//components/variations:test_support",
  66. "//components/variations/net",
  67. "//net:test_support",
  68. "//services/network:test_support",
  69. "//services/network/public/cpp",
  70. "//testing/gmock",
  71. "//testing/gtest",
  72. ]
  73. }
  74. if (!is_ios) {
  75. fuzzer_test("redaction_tool_fuzzer") {
  76. sources = [ "redaction_tool_fuzzer.cc" ]
  77. deps = [ ":feedback" ]
  78. dict = "redaction_tool_fuzzer.dict"
  79. }
  80. }