# Copyright 2022 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("promos") {
sources = [
"bannered_promo_view_provider.h",
"promo_protocol.h",
"promos_manager_ui_handler.h",
"standard_promo_action_handler.h",
"standard_promo_alert_handler.h",
"standard_promo_alert_provider.h",
"standard_promo_display_handler.h",
"standard_promo_view_provider.h",
]
frameworks = [ "UIKit.framework" ]
public_deps = [
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/common/ui/confirmation_alert",
"//ios/chrome/common/ui/promo_style:promo_style",
]
deps = [
"//ios/chrome/browser/promos_manager/model:constants",
"//ios/chrome/browser/promos_manager/model:types",
]
}
source_set("utils") {
sources = [
"utils.h",
"utils.mm",
]
deps = [
"//base",
"//components/policy/core/common",
"//components/prefs",
"//ios/chrome/app/application_delegate:app_state_header",
"//ios/chrome/browser/policy/ui_bundled:user_policy_scene_agent",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/signin/model",
]
}
source_set("promos_manager_scene_agent") {
sources = [
"promos_manager_scene_agent.h",
"promos_manager_scene_agent.mm",
]
deps = [
":utils",
"//ios/chrome/app/application_delegate:app_state_header",
"//ios/chrome/browser/shared/coordinator/scene:observing_scene_agent",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/public/commands",
]
}
source_set("promos_manager") {
sources = [
"promos_manager_coordinator+Testing.h",
"promos_manager_coordinator.h",
"promos_manager_coordinator.mm",
"promos_manager_mediator.h",
"promos_manager_mediator.mm",
]
frameworks = [ "Foundation.framework" ]
public_deps = [
":promos",
":utils",
"//base",
"//components/feature_engagement/public",
"//ios/chrome/app:tests_hook",
"//ios/chrome/browser/default_promo/ui_bundled:coordinator",
"//ios/chrome/browser/feature_engagement/model",
"//ios/chrome/browser/promos_manager/model",
"//ios/chrome/browser/promos_manager/model:factory",
"//ios/chrome/browser/promos_manager/model:features",
"//ios/chrome/browser/promos_manager/model:types",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/sync/model",
"//ios/public/provider/chrome/browser/signin:choice_api",
]
deps = [
":promos_manager_scene_agent",
"//components/crash/core/common:crash_key",
"//ios/chrome/app/strings",
"//ios/chrome/browser/app_store_rating/ui_bundled",
"//ios/chrome/browser/app_store_rating/ui_bundled:features",
"//ios/chrome/browser/credential_provider_promo/ui_bundled:coordinator",
"//ios/chrome/browser/default_browser/model:utils",
"//ios/chrome/browser/default_promo/ui_bundled/post_default_abandonment",
"//ios/chrome/browser/default_promo/ui_bundled/post_default_abandonment:features",
"//ios/chrome/browser/default_promo/ui_bundled/post_restore:post_restore_default_browser",
"//ios/chrome/browser/default_promo/ui_bundled/promo_handler",
"//ios/chrome/browser/docking_promo/ui",
"//ios/chrome/browser/promos_manager/model:constants",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/public/features:system_flags",
"//ios/chrome/browser/ui/post_restore_signin",
"//ios/chrome/browser/ui/whats_new:util",
"//ios/chrome/browser/ui/whats_new/promo",
"//ios/chrome/common/ui/confirmation_alert",
"//ios/chrome/common/ui/promo_style:promo_style",
"//ui/base",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "promos_manager_coordinator_unittest.mm" ]
deps = [
":promos",
":promos_manager",
"//base",
"//base/test:test_support",
"//components/prefs",
"//components/prefs:test_support",
"//components/sync_preferences:test_support",
"//ios/chrome/app/application_delegate:app_state_header",
"//ios/chrome/app/application_delegate:test_support",
"//ios/chrome/browser/promos_manager/model",
"//ios/chrome/browser/promos_manager/model:features",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/coordinator/scene/test",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/prefs:browser_prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/common/ui/confirmation_alert",
"//ios/chrome/common/ui/promo_style",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//testing/gtest",
"//third_party/ocmock",
]
}