| # Copyright 2016 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. |
| |
| source_set("bookmarks") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "bookmark_edit_view_controller.h", |
| "bookmark_edit_view_controller.mm", |
| "bookmark_empty_background.h", |
| "bookmark_empty_background.mm", |
| "bookmark_folder_editor_view_controller.h", |
| "bookmark_folder_editor_view_controller.mm", |
| "bookmark_folder_view_controller.h", |
| "bookmark_folder_view_controller.mm", |
| "bookmark_home_consumer.h", |
| "bookmark_home_mediator.h", |
| "bookmark_home_mediator.mm", |
| "bookmark_home_shared_state.h", |
| "bookmark_home_shared_state.mm", |
| "bookmark_home_view_controller.h", |
| "bookmark_home_view_controller.mm", |
| "bookmark_home_waiting_view.h", |
| "bookmark_home_waiting_view.mm", |
| "bookmark_interaction_controller.h", |
| "bookmark_interaction_controller.mm", |
| "bookmark_interaction_controller_delegate.h", |
| "bookmark_mediator.h", |
| "bookmark_mediator.mm", |
| "bookmark_model_bridge_observer.h", |
| "bookmark_model_bridge_observer.mm", |
| "bookmark_navigation_controller.h", |
| "bookmark_navigation_controller.mm", |
| "bookmark_navigation_controller_delegate.h", |
| "bookmark_navigation_controller_delegate.mm", |
| "bookmark_path_cache.h", |
| "bookmark_path_cache.mm", |
| "bookmark_promo_controller.h", |
| "bookmark_promo_controller.mm", |
| "bookmark_transitioning_delegate.h", |
| "bookmark_transitioning_delegate.mm", |
| "bookmark_utils_ios.h", |
| "bookmark_utils_ios.mm", |
| "synced_bookmarks_bridge.h", |
| "synced_bookmarks_bridge.mm", |
| "undo_manager_bridge_observer.h", |
| "undo_manager_bridge_observer.mm", |
| "undo_manager_wrapper.h", |
| "undo_manager_wrapper.mm", |
| ] |
| deps = [ |
| ":bookmarks_ui", |
| "resources:bookmark_blue_check", |
| "resources:bookmark_blue_folder", |
| "resources:bookmark_blue_new_folder", |
| "resources:bookmark_empty_star", |
| "//base", |
| "//base:i18n", |
| "//components/bookmarks/browser", |
| "//components/bookmarks/managed", |
| "//components/browser_sync", |
| "//components/pref_registry", |
| "//components/prefs", |
| "//components/query_parser", |
| "//components/signin/public/identity_manager", |
| "//components/signin/public/identity_manager/objc", |
| "//components/strings", |
| "//components/undo", |
| "//components/url_formatter", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/app/theme", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/bookmarks:bookmarks_utils", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/favicon", |
| "//ios/chrome/browser/main:public", |
| "//ios/chrome/browser/metrics:metrics_internal", |
| "//ios/chrome/browser/policy:feature_flags", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/browser/tabs", |
| "//ios/chrome/browser/ui/alert_coordinator", |
| "//ios/chrome/browser/ui/authentication", |
| "//ios/chrome/browser/ui/authentication/cells", |
| "//ios/chrome/browser/ui/bookmarks/cells", |
| "//ios/chrome/browser/ui/colors", |
| "//ios/chrome/browser/ui/commands", |
| "//ios/chrome/browser/ui/icons", |
| "//ios/chrome/browser/ui/image_util", |
| "//ios/chrome/browser/ui/keyboard", |
| "//ios/chrome/browser/ui/list_model", |
| "//ios/chrome/browser/ui/material_components", |
| "//ios/chrome/browser/ui/ntp", |
| "//ios/chrome/browser/ui/signin_interaction/public", |
| "//ios/chrome/browser/ui/table_view", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/browser/ui/table_view:presentation", |
| "//ios/chrome/browser/ui/table_view:styler", |
| "//ios/chrome/browser/ui/util", |
| "//ios/chrome/browser/undo", |
| "//ios/chrome/browser/url_loading", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/favicon", |
| "//ios/chrome/common/ui/util", |
| "//ios/public/provider/chrome/browser", |
| "//ios/public/provider/chrome/browser/ui", |
| "//ios/web", |
| "//ui/base", |
| "//ui/gfx", |
| "//url", |
| ] |
| allow_circular_includes_from = [ "//ios/chrome/browser/ui/bookmarks/cells" ] |
| libs = [ |
| "CoreGraphics.framework", |
| "QuartzCore.framework", |
| "UIKit.framework", |
| ] |
| } |
| |
| source_set("bookmarks_ui") { |
| 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_home_view_controller_unittest.mm", |
| "bookmark_ios_unittest.h", |
| "bookmark_ios_unittest.mm", |
| "bookmark_path_cache_unittest.mm", |
| "bookmark_utils_ios_unittest.mm", |
| ] |
| deps = [ |
| ":bookmarks", |
| "//base", |
| "//base/test:test_support", |
| "//components/bookmarks/browser", |
| "//components/bookmarks/test", |
| "//components/sync_preferences:test_support", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/browser_state:test_support", |
| "//ios/chrome/browser/main:test_support", |
| "//ios/web/public/test", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("eg_tests") { |
| defines = [ "CHROME_EARL_GREY_1" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "bookmarks_accessibility_egtest.mm", |
| "bookmarks_egtest.mm", |
| "bookmarks_entries_egtest.mm", |
| "bookmarks_folders_egtest.mm", |
| "bookmarks_promo_egtest.mm", |
| "bookmarks_search_egtest.mm", |
| ] |
| deps = [ |
| ":bookmarks", |
| ":bookmarks_ui", |
| ":eg_test_support", |
| "//base", |
| "//base/test:test_support", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ui/authentication:eg_test_support", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/test/app:test_support", |
| "//ios/chrome/test/earl_grey:test_support", |
| "//ios/testing/earl_grey:earl_grey_support", |
| "//ios/third_party/earl_grey:earl_grey+link", |
| "//ios/web/public/test/http_server", |
| "//ui/base", |
| "//url", |
| ] |
| libs = [ "UIKit.framework" ] |
| } |
| |
| source_set("eg_test_support") { |
| defines = [ "CHROME_EARL_GREY_1" ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "bookmark_earl_grey.h", |
| "bookmark_earl_grey.mm", |
| "bookmark_earl_grey_app_interface.h", |
| "bookmark_earl_grey_app_interface.mm", |
| "bookmark_earl_grey_ui.h", |
| "bookmark_earl_grey_ui.mm", |
| ] |
| deps = [ |
| ":bookmarks", |
| ":bookmarks_ui", |
| "//base", |
| "//base/test:test_support", |
| "//components/bookmarks/browser", |
| "//components/prefs", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/ui/authentication:eg_test_support", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/test/app:test_support", |
| "//ios/chrome/test/earl_grey:test_support", |
| "//ios/public/provider/chrome/browser/signin:fake_chrome_identity", |
| "//ios/public/provider/chrome/browser/signin:test_support", |
| "//ios/public/provider/chrome/browser/signin:test_support", |
| "//ios/testing:nserror_support", |
| "//ios/testing/earl_grey:earl_grey_support", |
| "//ios/third_party/earl_grey:earl_grey+link", |
| "//ios/web/public/test/http_server", |
| "//ui/base", |
| "//url", |
| ] |
| } |
| |
| source_set("eg2_tests") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "bookmarks_accessibility_egtest.mm", |
| "bookmarks_egtest.mm", |
| "bookmarks_entries_egtest.mm", |
| "bookmarks_folders_egtest.mm", |
| "bookmarks_promo_egtest.mm", |
| "bookmarks_search_egtest.mm", |
| "managed_bookmarks_egtest.mm", |
| ] |
| deps = [ |
| ":bookmarks_ui", |
| ":eg_test_support+eg2", |
| "//base/test:test_support", |
| "//components/policy:generated", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser:utils", |
| "//ios/chrome/browser/policy:eg_test_support+eg2", |
| "//ios/chrome/browser/ui/authentication:eg_test_support+eg2", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/third_party/earl_grey2:test_lib", |
| "//ios/web/public/test/http_server", |
| "//net", |
| "//ui/base", |
| ] |
| libs = [ "UIKit.framework" ] |
| } |
| |
| source_set("eg_app_support+eg2") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| 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", |
| ":bookmarks_ui", |
| "//base", |
| "//base/test:test_support", |
| "//components/bookmarks/browser", |
| "//components/prefs", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/bookmarks", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/test/app:test_support", |
| "//ios/public/provider/chrome/browser/signin:fake_chrome_identity", |
| "//ios/public/provider/chrome/browser/signin: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") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| 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_ui.h", |
| "bookmark_earl_grey_ui.mm", |
| ] |
| deps = [ |
| ":bookmarks_ui", |
| "//base", |
| "//base/test:test_support", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//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/third_party/earl_grey2:test_lib", |
| "//ios/web/public/test/http_server", |
| "//ui/base", |
| "//url", |
| ] |
| } |