BUILD.gn 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Copyright 2015 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("//build/config/features.gni")
  5. static_library("sync_bookmarks") {
  6. sources = [
  7. "bookmark_local_changes_builder.cc",
  8. "bookmark_local_changes_builder.h",
  9. "bookmark_model_merger.cc",
  10. "bookmark_model_merger.h",
  11. "bookmark_model_observer_impl.cc",
  12. "bookmark_model_observer_impl.h",
  13. "bookmark_model_type_processor.cc",
  14. "bookmark_model_type_processor.h",
  15. "bookmark_remote_updates_handler.cc",
  16. "bookmark_remote_updates_handler.h",
  17. "bookmark_specifics_conversions.cc",
  18. "bookmark_specifics_conversions.h",
  19. "bookmark_sync_service.cc",
  20. "bookmark_sync_service.h",
  21. "parent_guid_preprocessing.cc",
  22. "parent_guid_preprocessing.h",
  23. "switches.h",
  24. "synced_bookmark_tracker.cc",
  25. "synced_bookmark_tracker.h",
  26. "synced_bookmark_tracker_entity.cc",
  27. "synced_bookmark_tracker_entity.h",
  28. ]
  29. deps = [
  30. "//base",
  31. "//components/bookmarks/browser",
  32. "//components/favicon/core",
  33. "//components/keyed_service/core:core",
  34. "//components/sync",
  35. "//components/undo",
  36. "//ui/base",
  37. "//ui/gfx",
  38. ]
  39. }
  40. source_set("unit_tests") {
  41. testonly = true
  42. sources = [
  43. "bookmark_model_merger_unittest.cc",
  44. "bookmark_model_observer_impl_unittest.cc",
  45. "bookmark_model_type_processor_unittest.cc",
  46. "bookmark_remote_updates_handler_unittest.cc",
  47. "bookmark_specifics_conversions_unittest.cc",
  48. "parent_guid_preprocessing_unittest.cc",
  49. "synced_bookmark_tracker_unittest.cc",
  50. ]
  51. deps = [
  52. ":sync_bookmarks",
  53. "//base",
  54. "//base/test:test_support",
  55. "//components/bookmarks/browser",
  56. "//components/bookmarks/test",
  57. "//components/favicon/core/test:test_support",
  58. "//components/prefs:test_support",
  59. "//components/sync:test_support",
  60. "//components/undo",
  61. "//skia",
  62. "//testing/gmock",
  63. "//testing/gtest",
  64. "//ui/base",
  65. "//ui/gfx",
  66. ]
  67. }