BUILD.gn 743 B

1234567891011121314151617181920212223242526272829303132
  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. source_set("metrics") {
  5. sources = [
  6. "domain_diversity_reporter.cc",
  7. "domain_diversity_reporter.h",
  8. ]
  9. deps = [
  10. "//base",
  11. "//components/history/core/browser",
  12. "//components/pref_registry",
  13. "//components/prefs",
  14. ]
  15. }
  16. source_set("unit_tests") {
  17. testonly = true
  18. sources = [ "domain_diversity_reporter_unittest.cc" ]
  19. deps = [
  20. ":metrics",
  21. "//base",
  22. "//base/test:test_support",
  23. "//components/history/core/browser",
  24. "//components/history/core/test",
  25. "//components/sync_preferences:test_support",
  26. "//testing/gtest",
  27. ]
  28. }