# Copyright 2023 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("tab_resumption") {
sources = [
"tab_resumption_commands.h",
"tab_resumption_helper_delegate.h",
"tab_resumption_item.h",
"tab_resumption_item.mm",
"tab_resumption_mediator.h",
"tab_resumption_mediator.mm",
"tab_resumption_view.h",
"tab_resumption_view.mm",
]
deps = [
":constants",
"//base",
"//components/page_image_service",
"//components/segmentation_platform/public",
"//components/sessions:session_id",
"//components/signin/public/identity_manager/objc",
"//components/sync/base",
"//components/sync/service",
"//components/sync_sessions",
"//components/url_formatter",
"//components/visited_url_ranking/public",
"//ios/chrome/app/strings",
"//ios/chrome/browser/favicon/model",
"//ios/chrome/browser/intents:intents_donation_helper",
"//ios/chrome/browser/metrics/model:metrics_internal",
"//ios/chrome/browser/ntp/model",
"//ios/chrome/browser/ntp/ui_bundled",
"//ios/chrome/browser/ntp_tiles/model/tab_resumption:tab_resumption_prefs",
"//ios/chrome/browser/page_image/model",
"//ios/chrome/browser/sessions/model:session_util",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/model/utils",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/snapshots/model",
"//ios/chrome/browser/start_surface/ui_bundled",
"//ios/chrome/browser/start_surface/ui_bundled:feature_flags",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/synced_sessions/model",
"//ios/chrome/browser/tabs/model:tab_sync_util",
"//ios/chrome/browser/ui/content_suggestions:constants",
"//ios/chrome/browser/ui/content_suggestions:metrics",
"//ios/chrome/browser/ui/content_suggestions:public",
"//ios/chrome/browser/ui/content_suggestions/magic_stack:public",
"//ios/chrome/browser/url_loading/model",
"//ios/chrome/browser/url_loading/model:url_loading_params_header",
"//ios/chrome/browser/visited_url_ranking/model",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/favicon",
"//ios/chrome/common/ui/favicon:favicon_constants",
"//ios/chrome/common/ui/util",
"//ui/base",
"//url",
]
}
source_set("constants") {
sources = [
"tab_resumption_constants.h",
"tab_resumption_constants.mm",
]
deps = [ "//base" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "tab_resumption_item_unittest.mm" ]
deps = [
":tab_resumption",
"//base",
"//base/test:test_support",
"//components/segmentation_platform/public",
"//ios/chrome/browser/shared/ui/symbols",
"//testing/gtest",
"//url",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "tab_resumption_egtest.mm" ]
deps = [
":constants",
"//base/test:test_support",
"//components/sync/base:features",
"//components/url_formatter",
"//components/visited_url_ranking/public",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ntp_tiles/model/tab_resumption:tab_resumption_prefs",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/start_surface/ui_bundled:feature_flags",
"//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/content_suggestions:constants",
"//ios/chrome/browser/ui/content_suggestions:eg_test_support+eg2",
"//ios/chrome/browser/ui/content_suggestions/magic_stack:constants",
"//ios/chrome/browser/ui/recent_tabs:recent_tabs_ui_constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//net:test_support",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}