| # 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("history") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "history_coordinator.h", |
| "history_coordinator.mm", |
| "history_mediator.h", |
| "history_mediator.mm", |
| "ios_browsing_history_driver.h", |
| "ios_browsing_history_driver.mm", |
| ] |
| deps = [ |
| ":clear_browsing_data", |
| ":history_ui", |
| "//base", |
| "//components/browser_sync", |
| "//components/browsing_data/core", |
| "//components/history/core/browser", |
| "//components/keyed_service/core", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/favicon", |
| "//ios/chrome/browser/history", |
| "//ios/chrome/browser/main:public", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/browser/ui/alert_coordinator", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| "//ios/chrome/browser/ui/menu", |
| "//ios/chrome/browser/ui/table_view", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/browser/ui/util", |
| ] |
| frameworks = [ |
| "MobileCoreServices.framework", |
| "QuartzCore.framework", |
| "UIKit.framework", |
| ] |
| } |
| |
| source_set("constants") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "history_ui_constants.h", |
| "history_ui_constants.mm", |
| ] |
| } |
| |
| source_set("history_ui") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "history_consumer.h", |
| "history_entries_status_item.h", |
| "history_entries_status_item.mm", |
| "history_entries_status_item_delegate.h", |
| "history_entry_inserter.h", |
| "history_entry_inserter.mm", |
| "history_entry_item.h", |
| "history_entry_item.mm", |
| "history_entry_item_delegate.h", |
| "history_entry_item_interface.h", |
| "history_menu_provider.h", |
| "history_table_view_controller.h", |
| "history_table_view_controller.mm", |
| "history_transitioning_delegate.h", |
| "history_transitioning_delegate.mm", |
| "history_ui_delegate.h", |
| "history_util.h", |
| "history_util.mm", |
| ] |
| deps = [ |
| ":constants", |
| "public", |
| "resources:history_empty", |
| "resources:legacy_empty_history", |
| "//base", |
| "//base:i18n", |
| "//components/browsing_data/core", |
| "//components/history/core/browser", |
| "//components/strings", |
| "//components/url_formatter", |
| "//components/url_formatter", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/drag_and_drop", |
| "//ios/chrome/browser/main:public", |
| "//ios/chrome/browser/metrics:metrics_internal", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/browser/ui:feature_flags", |
| "//ios/chrome/browser/ui/alert_coordinator", |
| "//ios/chrome/browser/ui/collection_view/cells", |
| "//ios/chrome/browser/ui/commands", |
| "//ios/chrome/browser/ui/list_model", |
| "//ios/chrome/browser/ui/table_view", |
| "//ios/chrome/browser/ui/table_view:presentation", |
| "//ios/chrome/browser/ui/table_view:styler", |
| "//ios/chrome/browser/ui/table_view/cells", |
| "//ios/chrome/browser/ui/table_view/cells:cells_constants", |
| "//ios/chrome/browser/ui/util", |
| "//ios/chrome/browser/ui/util:multiwindow_util", |
| "//ios/chrome/browser/url_loading", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/chrome/browser/window_activities", |
| "//ios/chrome/common/ui/favicon", |
| "//ios/chrome/common/ui/util", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("clear_browsing_data") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "history_clear_browsing_data_coordinator.h", |
| "history_clear_browsing_data_coordinator.mm", |
| ] |
| deps = [ |
| ":history_ui", |
| "//base", |
| "//ios/chrome/browser/main:public", |
| "//ios/chrome/browser/ui/commands", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| "//ios/chrome/browser/ui/history/public", |
| "//ios/chrome/browser/ui/settings", |
| "//ios/chrome/browser/ui/settings/clear_browsing_data", |
| "//ios/chrome/browser/ui/table_view", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/browser/ui/table_view:presentation", |
| "//ios/chrome/browser/url_loading", |
| "//ios/web/public", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ "history_entry_inserter_unittest.mm" ] |
| deps = [ |
| ":history_ui", |
| "//base", |
| "//base/test:test_support", |
| "//components/history/core/browser", |
| "//ios/chrome/browser/ui/list_model", |
| "//ios/chrome/test:test_support", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |
| |
| source_set("eg2_tests") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ "history_ui_egtest.mm" ] |
| deps = [ |
| ":constants", |
| "//base", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ui:feature_flags", |
| "//ios/chrome/browser/ui/popup_menu:constants", |
| "//ios/chrome/browser/ui/settings/cells:clear_browsing_data_constants", |
| "//ios/chrome/browser/ui/table_view:constants", |
| "//ios/chrome/browser/ui/table_view:feature_flags", |
| "//ios/chrome/browser/ui/util:multiwindow_util", |
| "//ios/chrome/common", |
| "//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:test_support", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |