chromium/ios/chrome/browser/ui/settings/google_services/manage_accounts/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("manage_accounts") {
  sources = [
    "accounts_coordinator.h",
    "accounts_coordinator.mm",
    "accounts_mediator.h",
    "accounts_mediator.mm",
    "accounts_mediator_delegate.h",
  ]
  deps = [
    ":constants",
    ":manage_accounts_ui",
    ":protocols",
    "//base",
    "//components/signin/public/identity_manager/objc",
    "//components/strings",
    "//components/sync/base",
    "//components/sync/service",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/ntp/ui_bundled:feature_flags",
    "//ios/chrome/browser/settings/model/sync/utils",
    "//ios/chrome/browser/settings/model/sync/utils:identity_error_util",
    "//ios/chrome/browser/shared/coordinator/alert",
    "//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/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/url:constants",
    "//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/signin/model",
    "//ios/chrome/browser/signin/model:system_identity",
    "//ios/chrome/browser/signin/model:system_identity_manager",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/ui/authentication",
    "//ios/chrome/browser/ui/authentication/cells",
    "//ios/chrome/browser/ui/authentication/enterprise:enterprise_utils",
    "//ios/chrome/browser/ui/authentication/signout_action_sheet",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/sync",
    "//ios/chrome/browser/ui/settings/utils",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/reauthentication",
    "//ios/third_party/material_components_ios",
  ]
}

source_set("manage_accounts_ui") {
  sources = [
    "accounts_consumer.h",
    "accounts_model_identity_data_source.h",
    "accounts_mutator.h",
    "accounts_table_view_controller.h",
    "accounts_table_view_controller.mm",
    "identity_view_item.h",
    "identity_view_item.mm",
    "legacy_accounts_table_view_controller.h",
    "legacy_accounts_table_view_controller.mm",
  ]
  deps = [
    ":constants",
    ":protocols",
    "//base",
    "//components/signin/public/base",
    "//components/signin/public/identity_manager",
    "//components/signin/public/identity_manager/objc",
    "//components/strings",
    "//components/sync/base:features",
    "//components/sync/service",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/settings/model/sync/utils",
    "//ios/chrome/browser/settings/model/sync/utils:identity_error_util",
    "//ios/chrome/browser/shared/coordinator/alert",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/url:constants",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/symbols:icons",
    "//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/signin/model:system_identity_manager",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/ui/authentication",
    "//ios/chrome/browser/ui/authentication/cells",
    "//ios/chrome/browser/ui/authentication/enterprise:enterprise_utils",
    "//ios/chrome/browser/ui/authentication/signin:constants",
    "//ios/chrome/browser/ui/authentication/signout_action_sheet:signout_action_sheet",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/sync",
    "//ios/chrome/common/ui/colors",
    "//ui/base",
  ]
}

source_set("protocols") {
  sources = [ "with_overridable_model_identity_data_source.h" ]
  frameworks = [ "Foundation.framework" ]
}

source_set("constants") {
  sources = [
    "accounts_table_view_controller_constants.h",
    "accounts_table_view_controller_constants.mm",
  ]
  deps = [ "//ios/chrome/browser/shared/ui/list_model" ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "accounts_table_egtest.mm",
    "legacy_accounts_table_egtest.mm",
  ]
  deps = [
    "//base/test:test_support",
    "//components/sync/base:features",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/bookmarks/model:bookmark_storage_type",
    "//ios/chrome/browser/bookmarks/ui_bundled:eg_test_support+eg2",
    "//ios/chrome/browser/ntp/ui_bundled:feature_flags",
    "//ios/chrome/browser/policy/model:constants",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/elements:constants",
    "//ios/chrome/browser/shared/ui/elements:eg_test_support+eg2",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/signin/model:test_constants",
    "//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
    "//ios/chrome/browser/ui/authentication/views:views_constants",
    "//ios/chrome/browser/ui/settings/google_services:constants",
    "//ios/chrome/browser/ui/settings/google_services/manage_accounts: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" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "accounts_table_view_controller_unittest.mm",
    "legacy_accounts_table_view_controller_unittest.mm",
  ]
  deps = [
    ":manage_accounts_ui",
    "//base/test:test_support",
    "//components/prefs",
    "//components/prefs:test_support",
    "//components/signin/public/base",
    "//components/signin/public/identity_manager",
    "//components/sync",
    "//components/sync:test_support",
    "//components/sync/service",
    "//components/sync_preferences:test_support",
    "//components/variations:test_support",
    "//google_apis",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/list_model",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:styler",
    "//ios/chrome/browser/shared/ui/table_view:test_support",
    "//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: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/authentication/cells",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/google_services",
    "//ios/chrome/browser/ui/settings/google_services:constants",
    "//ios/chrome/browser/ui/settings/google_services/manage_accounts",
    "//ios/chrome/test:test_support",
    "//ios/web/public/test",
    "//testing/gtest",
    "//third_party/ocmock:ocmock",
    "//ui/base",
  ]
}