| # Copyright 2016 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("bookmarks") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "bookmarks_coordinator.h", |
| "bookmarks_coordinator.mm", |
| "bookmarks_coordinator_delegate.h", |
| "synced_bookmarks_bridge.h", |
| "synced_bookmarks_bridge.mm", |
| ] |
| deps = [ |
| ":constants", |
| ":core", |
| ":utils", |
| "resources:bookmark_blue_check", |
| "resources:bookmark_blue_folder", |
| "resources:bookmark_blue_new_folder", |
| "resources:bookmark_empty_star", |
| "//base", |
| "//components/bookmarks/browser", |
| "//components/prefs", |
| "//components/signin/public/identity_manager", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/default_browser:utils", |
| "//ios/chrome/browser/metrics:metrics_internal", |
| "//ios/chrome/browser/shared/coordinator/chrome_coordinator", |
| "//ios/chrome/browser/shared/model/browser", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//ios/chrome/browser/shared/model/web_state_list", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/ui/table_view", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/browser/shared/ui/util:url_with_title", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/browser/tabs", |
| "//ios/chrome/browser/ui/authentication", |
| "//ios/chrome/browser/ui/authentication/cells", |
| "//ios/chrome/browser/ui/bookmarks/editor", |
| "//ios/chrome/browser/ui/bookmarks/folder_chooser", |
| "//ios/chrome/browser/ui/bookmarks/folder_editor", |
| "//ios/chrome/browser/ui/bookmarks/home", |
| "//ios/chrome/browser/url_loading", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/util", |
| "//ios/third_party/material_components_ios", |
| "//ui/base", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| |
| # TODO(crbug.com/1409490): Remove the circular dependency. |
| allow_circular_includes_from = [ "//ios/chrome/browser/ui/bookmarks/home" ] |
| } |
| |
| source_set("core") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "bookmark_mediator.h", |
| "bookmark_mediator.mm", |
| "bookmark_navigation_controller.h", |
| "bookmark_navigation_controller.mm", |
| "bookmark_path_cache.h", |
| "bookmark_path_cache.mm", |
| ] |
| deps = [ |
| ":constants", |
| ":utils", |
| "//base", |
| "//components/bookmarks/browser", |
| "//components/pref_registry", |
| "//components/prefs", |
| "//components/sync/service", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/default_browser:utils", |
| "//ios/chrome/browser/shared/model/browser", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//ios/chrome/browser/shared/model/prefs:pref_names", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/shared/ui/table_view", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/browser/shared/ui/util:url_with_title", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/common/ui/colors", |
| "//ios/third_party/material_components_ios", |
| "//ui/base", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("utils") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "bookmark_utils_ios.h", |
| "bookmark_utils_ios.mm", |
| "undo_manager_bridge_observer.h", |
| "undo_manager_bridge_observer.mm", |
| "undo_manager_wrapper.h", |
| "undo_manager_wrapper.mm", |
| ] |
| deps = [ |
| ":constants", |
| "//base", |
| "//base:i18n", |
| "//components/bookmarks/browser", |
| "//components/query_parser", |
| "//components/signin/public/identity_manager", |
| "//components/strings", |
| "//components/sync/base", |
| "//components/sync/service", |
| "//components/undo", |
| "//components/url_formatter", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//ios/chrome/browser/shared/public/features:system_flags", |
| "//ios/chrome/browser/shared/ui/symbols", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/browser/undo", |
| "//ios/chrome/common/ui/colors", |
| "//ios/third_party/material_components_ios", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("constants") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "bookmark_ui_constants.h", |
| "bookmark_ui_constants.mm", |
| ] |
| deps = [] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "bookmark_mediator_unittest.mm", |
| "bookmark_path_cache_unittest.mm", |
| "bookmark_utils_ios_unittest.mm", |
| ] |
| deps = [ |
| ":bookmarks", |
| ":core", |
| ":utils", |
| "//base", |
| "//base/test:test_support", |
| "//components/bookmarks/browser", |
| "//components/sync:test_support", |
| "//components/sync/service", |
| "//components/sync_preferences:test_support", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/bookmarks:test_support", |
| "//ios/chrome/browser/shared/model/application_context", |
| "//ios/chrome/browser/shared/model/browser_state:test_support", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/shared/public/features:system_flags", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/signin:fake_system_identity", |
| "//ios/chrome/browser/signin:fake_system_identity_manager", |
| "//ios/chrome/browser/signin:test_support", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/browser/sync:test_support", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "bookmarks_accessibility_egtest.mm", |
| "bookmarks_account_storage_egtest.mm", |
| "bookmarks_egtest.mm", |
| "bookmarks_entries_egtest.mm", |
| "bookmarks_search_egtest.mm", |
| "managed_bookmarks_egtest.mm", |
| ] |
| deps = [ |
| ":constants", |
| ":eg_test_support+eg2", |
| "//base/test:test_support", |
| "//components/bookmarks/common", |
| "//components/policy:generated", |
| "//components/signin/public/base", |
| "//components/strings", |
| "//components/url_formatter", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/policy:eg_test_support+eg2", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/signin:fake_system_identity", |
| "//ios/chrome/browser/ui/authentication:eg_test_support+eg2", |
| "//ios/chrome/browser/ui/authentication/cells:constants", |
| "//ios/chrome/browser/ui/authentication/signin:constants", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/web/public/test/http_server", |
| "//net", |
| "//net:test_support", |
| "//ui/base", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("eg_app_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "bookmark_earl_grey_app_interface.h", |
| "bookmark_earl_grey_app_interface.mm", |
| ] |
| deps = [ |
| ":bookmarks", |
| ":constants", |
| ":core", |
| ":utils", |
| "//base", |
| "//base/test:test_support", |
| "//components/bookmarks/browser", |
| "//components/prefs", |
| "//components/query_parser", |
| "//components/strings", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//ios/chrome/browser/shared/model/prefs:pref_names", |
| "//ios/chrome/browser/signin:fake_system_identity", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/test/app:test_support", |
| "//ios/testing:nserror_support", |
| "//ios/testing/earl_grey:eg_app_support+eg2", |
| "//ios/third_party/earl_grey2:app_framework+link", |
| "//ui/base", |
| "//url", |
| ] |
| } |
| |
| source_set("eg_test_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "bookmark_earl_grey.h", |
| "bookmark_earl_grey.mm", |
| "bookmark_earl_grey_app_interface.h", |
| "bookmark_earl_grey_app_interface_stub.mm", |
| "bookmark_earl_grey_ui.h", |
| "bookmark_earl_grey_ui.mm", |
| ] |
| deps = [ |
| ":constants", |
| "//base", |
| "//base/test:test_support", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/shared/ui/table_view:constants", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/test:eg_test_support+eg2", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/web/public/test/http_server", |
| "//ui/base", |
| "//url", |
| ] |
| } |