BUILD.gn 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Copyright 2017 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. if (is_android) {
  5. import("//build/config/android/rules.gni")
  6. }
  7. static_library("consent_auditor") {
  8. sources = [
  9. "consent_auditor.h",
  10. "consent_auditor_impl.cc",
  11. "consent_auditor_impl.h",
  12. "consent_sync_bridge.h",
  13. "consent_sync_bridge_impl.cc",
  14. "consent_sync_bridge_impl.h",
  15. "pref_names.cc",
  16. "pref_names.h",
  17. ]
  18. deps = [
  19. "//components/keyed_service/core",
  20. "//components/prefs",
  21. "//components/sync",
  22. ]
  23. }
  24. if (is_android) {
  25. java_cpp_enum("consent_auditor_java") {
  26. sources = [ "consent_auditor.h" ]
  27. }
  28. }
  29. source_set("test_support") {
  30. testonly = true
  31. sources = [
  32. "fake_consent_auditor.cc",
  33. "fake_consent_auditor.h",
  34. ]
  35. deps = [
  36. ":consent_auditor",
  37. "//components/sync",
  38. "//testing/gmock",
  39. ]
  40. }
  41. source_set("unit_tests") {
  42. testonly = true
  43. sources = [
  44. "consent_auditor_impl_unittest.cc",
  45. "consent_sync_bridge_impl_unittest.cc",
  46. ]
  47. deps = [
  48. ":consent_auditor",
  49. "//base/test:test_support",
  50. "//components/prefs:test_support",
  51. "//components/sync",
  52. "//components/sync:test_support",
  53. "//components/variations:test_support",
  54. "//testing/gmock",
  55. "//testing/gtest",
  56. ]
  57. }