closure: fix compile error by adding missing externs
[chromium-blink-merge.git] / components / bookmarks / browser / BUILD.gn
blob091b20a2dd9d17f3e5ddc52c6a3d77d57dd3b733
1 # Copyright 2014 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.
5 import("//build/config/ui.gni")
7 source_set("browser") {
8   sources = [
9     "base_bookmark_model_observer.cc",
10     "base_bookmark_model_observer.h",
11     "bookmark_client.cc",
12     "bookmark_client.h",
13     "bookmark_codec.cc",
14     "bookmark_codec.h",
15     "bookmark_expanded_state_tracker.cc",
16     "bookmark_expanded_state_tracker.h",
17     "bookmark_index.cc",
18     "bookmark_index.h",
19     "bookmark_match.cc",
20     "bookmark_match.h",
21     "bookmark_model.cc",
22     "bookmark_model.h",
23     "bookmark_model_observer.h",
24     "bookmark_node.cc",
25     "bookmark_node.h",
26     "bookmark_node_data.cc",
27     "bookmark_node_data.h",
28     "bookmark_node_data_ios.cc",
29     "bookmark_node_data_mac.cc",
30     "bookmark_pasteboard_helper_mac.h",
31     "bookmark_pasteboard_helper_mac.mm",
32     "bookmark_storage.cc",
33     "bookmark_storage.h",
34     "bookmark_utils.cc",
35     "bookmark_utils.h",
36     "scoped_group_bookmark_actions.cc",
37     "scoped_group_bookmark_actions.h",
38   ]
40   deps = [
41     "//base",
42     "//base:i18n",
43     "//base:prefs",
44     "//components/bookmarks/common",
45     "//components/favicon_base",
46     "//components/keyed_service/core",
47     "//components/pref_registry",
48     "//components/query_parser",
49     "//components/startup_metric_utils",
50     "//components/strings",
51     "//net",
52     "//third_party/icu",
53     "//ui/base",
54     "//ui/gfx",
55     "//url",
56   ]
58   if (toolkit_views) {
59     sources += [ "bookmark_node_data_views.cc" ]
60   }
63 source_set("unit_tests") {
64   testonly = true
65   sources = [
66     "bookmark_codec_unittest.cc",
67     "bookmark_expanded_state_tracker_unittest.cc",
68     "bookmark_index_unittest.cc",
69     "bookmark_model_unittest.cc",
70     "bookmark_utils_unittest.cc",
71   ]
73   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
75   deps = [
76     ":browser",
77     "//base:prefs",
78     "//base:prefs_test_support",
79     "//components/bookmarks/common",
80     "//components/bookmarks/test",
81     "//components/pref_registry",
82     "//testing/gtest",
83     "//ui/base",
84     "//url",
85   ]