chromium/ios/chrome/browser/ui/content_suggestions/set_up_list/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("set_up_list") {
  sources = [
    "set_up_list_config.h",
    "set_up_list_config.mm",
    "set_up_list_consumer_source.h",
    "set_up_list_item_icon.h",
    "set_up_list_item_icon.mm",
    "set_up_list_item_view+Testing.h",
    "set_up_list_item_view.h",
    "set_up_list_item_view.mm",
    "set_up_list_item_view_data.h",
    "set_up_list_item_view_data.mm",
    "set_up_list_mediator.h",
    "set_up_list_mediator.mm",
    "set_up_list_show_more_item_view.h",
    "set_up_list_show_more_item_view.mm",
    "set_up_list_show_more_view_controller.h",
    "set_up_list_show_more_view_controller.mm",
    "set_up_list_tap_delegate.h",
  ]
  deps = [
    ":constants",
    ":utils",
    "//base",
    "//components/password_manager/core/common:features",
    "//components/prefs",
    "//components/prefs/ios",
    "//components/segmentation_platform/embedder/default_model",
    "//components/segmentation_platform/public",
    "//components/signin/public/identity_manager",
    "//components/signin/public/identity_manager/objc",
    "//components/sync/base:features",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/content_notification/model:util",
    "//ios/chrome/browser/credential_provider_promo/ui_bundled:coordinator",
    "//ios/chrome/browser/default_browser/model:utils",
    "//ios/chrome/browser/ntp/model:set_up_list",
    "//ios/chrome/browser/ntp/model:set_up_list_item_type",
    "//ios/chrome/browser/ntp/model:set_up_list_prefs",
    "//ios/chrome/browser/push_notification/model:push_notification_service",
    "//ios/chrome/browser/segmentation_platform/model:segmented_default_browser",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/ui/content_suggestions:constants",
    "//ios/chrome/browser/ui/content_suggestions:content_suggestions_ui_util",
    "//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/ui/content_suggestions/set_up_list/resources",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/util",
    "//ios/chrome/common/ui/util:dynamic_type_util",
    "//ui/base:base",
  ]
  frameworks = [
    "AuthenticationServices.framework",
    "Foundation.framework",
  ]
}

source_set("default_browser_promo") {
  sources = [
    "set_up_list_default_browser_promo_coordinator.h",
    "set_up_list_default_browser_promo_coordinator.mm",
    "set_up_list_default_browser_promo_coordinator_delegate.h",
    "set_up_list_default_browser_promo_mediator.h",
    "set_up_list_default_browser_promo_mediator.mm",
  ]
  deps = [
    "//base",
    "//components/feature_engagement/public",
    "//components/segmentation_platform/embedder/default_model",
    "//components/segmentation_platform/public",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/default_browser/model:utils",
    "//ios/chrome/browser/feature_engagement/model",
    "//ios/chrome/browser/first_run/ui_bundled/default_browser:default_browser_mediator",
    "//ios/chrome/browser/first_run/ui_bundled/default_browser:default_browser_ui",
    "//ios/chrome/browser/ntp/model:set_up_list_item_type",
    "//ios/chrome/browser/ntp/model:set_up_list_prefs",
    "//ios/chrome/browser/segmentation_platform/model",
    "//ios/chrome/browser/segmentation_platform/model:segmented_default_browser",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//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/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/common/ui/promo_style",
  ]
}

source_set("content_notification_promo") {
  sources = [
    "set_up_list_content_notification_promo_coordinator.h",
    "set_up_list_content_notification_promo_coordinator.mm",
    "set_up_list_content_notification_promo_coordinator_delegate.h",
  ]
  deps = [
    ":content_notification_promo_ui",
    "//base",
    "//ios/chrome/app/strings:ios_strings_grit",
    "//ios/chrome/browser/ntp/model:set_up_list_item_type",
    "//ios/chrome/browser/ntp/model:set_up_list_prefs",
    "//ios/chrome/browser/push_notification/model:push_notification_client",
    "//ios/chrome/browser/push_notification/model:push_notification_service",
    "//ios/chrome/browser/push_notification/model:push_notification_service_header",
    "//ios/chrome/browser/shared/coordinator/alert",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/ui/push_notification:opt_in_alert_coordinator",
    "//ios/chrome/browser/ui/settings/notifications:notifications_ui",
    "//ios/chrome/common/ui/promo_style",
    "//ui/base",
  ]
}

source_set("content_notification_promo_ui") {
  sources = [
    "set_up_list_content_notification_promo_view_controller.h",
    "set_up_list_content_notification_promo_view_controller.mm",
  ]
  deps = [
    ":constants",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/ui/content_suggestions/set_up_list/resources",
    "//ios/chrome/common/ui/promo_style",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("constants") {
  sources = [
    "constants.h",
    "constants.mm",
  ]
  deps = [ "//base" ]
}

source_set("utils") {
  sources = [
    "utils.h",
    "utils.mm",
  ]
  deps = [
    "//base",
    "//components/prefs",
    "//ios/chrome/browser/ntp/model:set_up_list_prefs",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/utils",
    "//ios/chrome/browser/shared/public/features",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "set_up_list_default_browser_promo_coordinator_unittest.mm",
    "set_up_list_default_browser_promo_mediator_unittest.mm",
  ]
  deps = [
    ":constants",
    ":default_browser_promo",
    ":set_up_list",
    "//base",
    "//base/test:test_support",
    "//components/segmentation_platform/embedder/default_model",
    "//components/segmentation_platform/public:test_support",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/default_browser/model:utils",
    "//ios/chrome/browser/first_run/ui_bundled/default_browser:default_browser_mediator",
    "//ios/chrome/browser/ntp/model:set_up_list",
    "//ios/chrome/browser/ntp/model:set_up_list_item_type",
    "//ios/chrome/browser/segmentation_platform/model:segmented_default_browser",
    "//ios/chrome/browser/segmentation_platform/model:segmented_default_browser_tests",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/test:test_support",
    "//ios/web/public/test",
    "//third_party/ocmock",
    "//ui/base:test_support",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "set_up_list_default_browser_egtest.mm" ]
  deps = [
    ":constants",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/first_run/ui_bundled:constants",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
    "//ios/chrome/browser/ui/content_suggestions:eg_test_support+eg2",
    "//ios/chrome/common/ui/promo_style:constants",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}