chromium/ios/chrome/browser/ui/recent_tabs/BUILD.gn

# Copyright 2018 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("recent_tabs") {
  sources = [
    "closed_tabs_observer_bridge.h",
    "closed_tabs_observer_bridge.mm",
    "recent_tabs_coordinator.h",
    "recent_tabs_coordinator.mm",
    "recent_tabs_coordinator_delegate.h",
    "recent_tabs_mediator.h",
    "recent_tabs_mediator.mm",
    "recent_tabs_menu_helper.h",
    "recent_tabs_menu_helper.mm",
  ]
  deps = [
    ":recent_tabs_ui",
    "//base",
    "//components/feature_engagement/public",
    "//components/sessions",
    "//components/signin/public/identity_manager",
    "//components/signin/public/identity_manager/objc",
    "//components/sync",
    "//ios/chrome/browser/default_browser/model:default_browser_interest_signals",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/feature_engagement/model",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/policy/model:policy_util",
    "//ios/chrome/browser/sessions/model",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//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/table_view:constants",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/synced_sessions/model",
    "//ios/chrome/browser/ui/authentication/history_sync",
    "//ios/chrome/browser/ui/menu",
    "//ios/chrome/browser/ui/menu:tab_context_menu_delegate",
    "//ios/chrome/browser/ui/sharing",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_activity_observer",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_mode",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_page_mutator",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_consumer",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_toolbars_mutator",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/toolbars",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/toolbars:toolbars_ui",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/url_loading/model:url_loading_params_header",
    "//ios/chrome/common/ui/favicon:favicon_constants",
    "//ui/base",
  ]
  public_deps = [ "//components/sync_sessions" ]
}

source_set("recent_tabs_ui_constants") {
  sources = [
    "recent_tabs_constants.h",
    "recent_tabs_constants.mm",
  ]
}

source_set("recent_tabs_ui") {
  sources = [
    "recent_tabs_consumer.h",
    "recent_tabs_menu_provider.h",
    "recent_tabs_presentation_delegate.h",
    "recent_tabs_table_view_controller.h",
    "recent_tabs_table_view_controller.mm",
    "recent_tabs_table_view_controller_delegate.h",
    "recent_tabs_table_view_controller_ui_delegate.h",
    "sessions_sync_user_state.h",
  ]
  deps = [
    ":recent_tabs_ui_constants",
    "//base",
    "//components/prefs",
    "//components/search_engines",
    "//components/sessions",
    "//components/strings",
    "//components/sync",
    "//ios/chrome/app:tests_hook",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/drag_and_drop/model",
    "//ios/chrome/browser/intents:intents_donation_helper",
    "//ios/chrome/browser/keyboard/ui_bundled",
    "//ios/chrome/browser/metrics/model:metrics_internal",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/ntp/model:util",
    "//ios/chrome/browser/search_engines/model",
    "//ios/chrome/browser/sessions/model",
    "//ios/chrome/browser/sessions/model:session_util",
    "//ios/chrome/browser/settings/model/sync/utils",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/url:constants",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:styler",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/synced_sessions/model",
    "//ios/chrome/browser/tabs_search/model",
    "//ios/chrome/browser/tabs_search/model:model_factory",
    "//ios/chrome/browser/ui/authentication",
    "//ios/chrome/browser/ui/authentication:signin_presenter",
    "//ios/chrome/browser/ui/authentication/cells",
    "//ios/chrome/browser/ui/authentication/enterprise:enterprise_utils",
    "//ios/chrome/browser/ui/authentication/history_sync",
    "//ios/chrome/browser/ui/authentication/signin:signin_headers",
    "//ios/chrome/browser/ui/recent_tabs/resources",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/suggested_actions/resources",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/favicon",
    "//ios/chrome/common/ui/table_view:cells_constants",
    "//ios/public/provider/chrome/browser/modals:modals_api",
    "//ios/web/public",
    "//ui/base",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "recent_tabs_coordinator_unittest.mm",
    "recent_tabs_mediator_unittest.mm",
  ]
  deps = [
    ":recent_tabs",
    ":recent_tabs_ui",
    "//base",
    "//base/test:test_support",
    "//components/browser_sync",
    "//components/sessions:test_support",
    "//components/signin/public/identity_manager",
    "//components/signin/public/identity_manager:test_support",
    "//components/sync:test_support",
    "//components/sync_sessions",
    "//components/sync_user_events",
    "//ios/chrome/app/application_delegate:app_state_header",
    "//ios/chrome/app/application_delegate:test_support",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/history/model",
    "//ios/chrome/browser/sessions/model",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/signin/model:fake_system_identity_manager",
    "//ios/chrome/browser/signin/model:test_support",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/sync/model:test_support",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_mode",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/toolbars",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/toolbars/test:fakes",
    "//ios/chrome/test:test_support",
    "//ios/web/public/test",
    "//testing/gtest",
    "//third_party/ocmock",
  ]
}

source_set("eg_app_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "recent_tabs_app_interface.h",
    "recent_tabs_app_interface.mm",
  ]
  deps = [
    "//base",
    "//base/test:test_support",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/ui/list_model",
    "//ios/chrome/test/app:test_support",
  ]
}

source_set("eg_test_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "recent_tabs_app_interface.h",
    "recent_tabs_app_interface_stub.mm",
  ]
  deps = [
    "//base",
    "//ios/testing/earl_grey:eg_test_support+eg2",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "recent_tabs_egtest.mm" ]
  deps = [
    ":eg_test_support+eg2",
    ":recent_tabs_ui_constants",
    "//base/test:test_support",
    "//build:branding_buildflags",
    "//components/policy:policy_code_generate",
    "//components/policy/core/common:common_constants",
    "//components/strings",
    "//components/sync/base",
    "//components/sync/service",
    "//components/unified_consent",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/history/ui_bundled:constants",
    "//ios/chrome/browser/policy/model:eg_test_support+eg2",
    "//ios/chrome/browser/policy/model:policy_util",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/list_model",
    "//ios/chrome/browser/shared/ui/table_view:constants",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/signin/model:test_constants",
    "//ios/chrome/browser/tabs/ui_bundled/tests:eg_test_support+eg2",
    "//ios/chrome/browser/tabs/ui_bundled/tests:fake_distant_tab",
    "//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/common/ui/promo_style: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:test_support",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}