chromium/ios/chrome/browser/ui/settings/downloads/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("downloads") {
  sources = [
    "downloads_settings_coordinator.h",
    "downloads_settings_coordinator.mm",
    "downloads_settings_coordinator_delegate.h",
    "downloads_settings_table_view_controller.h",
    "downloads_settings_table_view_controller.mm",
    "downloads_settings_table_view_controller_action_delegate.h",
    "downloads_settings_table_view_controller_presentation_delegate.h",
  ]
  deps = [
    ":identity_button_cell",
    "//components/prefs",
    "//ios/chrome/app/strings:ios_strings_grit",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/signin/model:system_identity",
    "//ios/chrome/browser/ui/authentication/signin:constants",
    "//ios/chrome/browser/ui/authentication/signin:signin_headers",
    "//ios/chrome/browser/ui/authentication/views",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings/downloads/save_to_photos",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("identity_button_cell") {
  sources = [
    "identity_button_cell.h",
    "identity_button_cell.mm",
    "identity_button_item.h",
    "identity_button_item.mm",
  ]
  deps = [
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/ui/authentication/views",
    "//ios/chrome/browser/ui/authentication/views:views_constants",
    "//ios/chrome/common/ui/util",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "downloads_settings_coordinator_unittest.mm",
    "downloads_settings_table_view_controller_unittest.mm",
  ]
  deps = [
    ":downloads",
    "//base/test:test_support",
    "//components/signin/public/identity_manager:test_support",
    "//ios/chrome/app/strings:ios_strings_grit",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/table_view:test_support",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//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:system_identity",
    "//ios/chrome/browser/signin/model:test_support",
    "//ios/chrome/browser/ui/authentication/cells",
    "//ios/chrome/browser/ui/authentication/signin:constants",
    "//ios/chrome/browser/ui/authentication/signin:constants",
    "//ios/chrome/browser/ui/authentication/signin:signin_headers",
    "//ios/chrome/browser/ui/authentication/views",
    "//ios/chrome/browser/ui/settings/downloads:identity_button_cell",
    "//ios/chrome/browser/ui/settings/downloads/save_to_photos",
    "//ios/chrome/browser/ui/settings/downloads/save_to_photos:test_support",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/test/fakes",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base",
    "//ui/base:test_support",
  ]
}