BUILD.gn 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Copyright 2020 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. static_library("privacy_sandbox_prefs") {
  5. sources = [
  6. "privacy_sandbox_prefs.cc",
  7. "privacy_sandbox_prefs.h",
  8. ]
  9. deps = [
  10. "//components/pref_registry:pref_registry",
  11. "//components/prefs",
  12. ]
  13. public_deps = [ "//base" ]
  14. }
  15. source_set("privacy_sandbox") {
  16. sources = [
  17. "canonical_topic.cc",
  18. "canonical_topic.h",
  19. "privacy_sandbox_features.cc",
  20. "privacy_sandbox_features.h",
  21. "privacy_sandbox_settings.cc",
  22. "privacy_sandbox_settings.h",
  23. ]
  24. deps = [
  25. ":privacy_sandbox_prefs",
  26. "//components/browsing_topics/common:common",
  27. "//components/content_settings/core/browser",
  28. "//components/content_settings/core/common",
  29. "//components/keyed_service/core:core",
  30. "//components/pref_registry:pref_registry",
  31. "//components/prefs",
  32. "//components/strings:components_strings_grit",
  33. "//net:net",
  34. "//ui/base:base",
  35. "//url:url",
  36. ]
  37. public_deps = [ "//base" ]
  38. }
  39. source_set("unit_tests") {
  40. testonly = true
  41. sources = [
  42. "canonical_topic_unittest.cc",
  43. "privacy_sandbox_settings_unittest.cc",
  44. ]
  45. deps = [
  46. ":privacy_sandbox",
  47. ":privacy_sandbox_prefs",
  48. ":test_support",
  49. "//components/content_settings/core/browser:browser",
  50. "//components/content_settings/core/test:test_support",
  51. "//components/prefs:test_support",
  52. "//components/strings:components_strings_grit",
  53. "//components/sync_preferences:test_support",
  54. "//content/test:test_support",
  55. "//net",
  56. "//testing/gtest",
  57. ]
  58. }
  59. source_set("test_support") {
  60. testonly = true
  61. sources = [
  62. "privacy_sandbox_test_util.cc",
  63. "privacy_sandbox_test_util.h",
  64. ]
  65. deps = [
  66. ":privacy_sandbox",
  67. ":privacy_sandbox_prefs",
  68. "//components/content_settings/core/browser:browser",
  69. "//components/content_settings/core/common:common",
  70. "//components/content_settings/core/test:test_support",
  71. "//components/prefs:test_support",
  72. "//components/sync_preferences:test_support",
  73. "//testing/gmock",
  74. ]
  75. }