BUILD.gn 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 2018 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("unified_consent") {
  5. sources = [
  6. "pref_names.cc",
  7. "pref_names.h",
  8. "unified_consent_metrics.cc",
  9. "unified_consent_metrics.h",
  10. "unified_consent_service.cc",
  11. "unified_consent_service.h",
  12. "url_keyed_data_collection_consent_helper.cc",
  13. "url_keyed_data_collection_consent_helper.h",
  14. ]
  15. deps = [
  16. "//base",
  17. "//components/autofill/core/common",
  18. "//components/browser_sync",
  19. "//components/pref_registry",
  20. "//components/prefs",
  21. "//components/signin/public/identity_manager",
  22. "//components/sync",
  23. "//components/sync_preferences",
  24. ]
  25. }
  26. source_set("unit_tests") {
  27. testonly = true
  28. sources = [
  29. "unified_consent_service_unittest.cc",
  30. "url_keyed_data_collection_consent_helper_unittest.cc",
  31. ]
  32. deps = [
  33. ":unified_consent",
  34. "//base/test:test_support",
  35. "//build:chromeos_buildflags",
  36. "//components/signin/public/identity_manager:test_support",
  37. "//components/sync:test_support",
  38. "//components/sync_preferences:test_support",
  39. "//testing/gtest",
  40. ]
  41. }