chromium/ios/chrome/browser/ui/settings/tabs/inactive_tabs/BUILD.gn

# 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("inactive_tabs") {
  sources = [
    "inactive_tabs_settings_coordinator.h",
    "inactive_tabs_settings_coordinator.mm",
    "inactive_tabs_settings_mediator.h",
    "inactive_tabs_settings_mediator.mm",
  ]
  deps = [
    ":inactive_tabs_ui",
    "//components/prefs",
    "//components/prefs/ios",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//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/prefs:pref_names",
    "//ios/chrome/browser/tabs/model/inactive_tabs",
    "//ios/chrome/browser/tabs/model/inactive_tabs:features",
  ]
}

source_set("inactive_tabs_ui") {
  sources = [
    "inactive_tabs_settings_consumer.h",
    "inactive_tabs_settings_table_view_controller.h",
    "inactive_tabs_settings_table_view_controller.mm",
    "inactive_tabs_settings_table_view_controller_delegate.h",
  ]
  deps = [
    "//base:i18n",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/ui/table_view:styler",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/tabs/model/inactive_tabs:features",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings/tabs:tabs_constants",
    "//ios/chrome/common/ui/colors",
    "//ui/base",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "inactive_tabs_settings_egtest.mm" ]
  deps = [
    "//base:i18n",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/tabs/model/inactive_tabs:features",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}