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. 4 5 import("//build/config/ui.gni") 6 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 ] 39 40 deps = [ 41 "//base", 42 "//components/bookmarks/common", 43 "//components/favicon_base", 44 "//components/keyed_service/core", 45 "//components/pref_registry", 46 "//components/query_parser", 47 "//components/startup_metric_utils", 48 "//components/strings", 49 "//net", 50 "//third_party/icu", 51 "//ui/base", 52 "//ui/gfx", 53 "//url", 54 ] 55 56 if (toolkit_views) { 57 sources += [ 58 "bookmark_node_data_views.cc", 59 ] 60 } 61 } 62 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 ] 72 73 deps = [ 74 ":browser", 75 "//testing/gtest", 76 ] 77 } 78