summaryrefslogtreecommitdiff
path: root/chromium/components/sync_bookmarks/BUILD.gn
blob: 7785fc1ae60301cd754c9b17997e18bbeaa308d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/features.gni")

static_library("sync_bookmarks") {
  sources = [
    "bookmark_local_changes_builder.cc",
    "bookmark_local_changes_builder.h",
    "bookmark_model_merger.cc",
    "bookmark_model_merger.h",
    "bookmark_model_observer_impl.cc",
    "bookmark_model_observer_impl.h",
    "bookmark_model_type_processor.cc",
    "bookmark_model_type_processor.h",
    "bookmark_remote_updates_handler.cc",
    "bookmark_remote_updates_handler.h",
    "bookmark_specifics_conversions.cc",
    "bookmark_specifics_conversions.h",
    "bookmark_sync_service.cc",
    "bookmark_sync_service.h",
    "switches.cc",
    "switches.h",
    "synced_bookmark_tracker.cc",
    "synced_bookmark_tracker.h",
  ]

  deps = [
    "//base",
    "//components/bookmarks/browser",
    "//components/favicon/core",
    "//components/history/core/browser",
    "//components/keyed_service/core:core",
    "//components/sync",
    "//components/undo",
    "//ui/base",
    "//ui/gfx",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "bookmark_model_merger_unittest.cc",
    "bookmark_model_observer_impl_unittest.cc",
    "bookmark_model_type_processor_unittest.cc",
    "bookmark_remote_updates_handler_unittest.cc",
    "bookmark_specifics_conversions_unittest.cc",
    "synced_bookmark_tracker_unittest.cc",
  ]

  deps = [
    ":sync_bookmarks",
    "//base",
    "//base/test:test_support",
    "//components/bookmarks/browser",
    "//components/bookmarks/test",
    "//components/favicon/core/test:test_support",
    "//components/history/core/browser",
    "//components/prefs:test_support",
    "//components/sync:test_support",
    "//components/undo",
    "//skia",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/gfx",
  ]
}