| # 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", |
| ] |
| 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", |
| "//ios/chrome/app/application_delegate:startup_information", |
| "//ios/chrome/app/profile", |
| "//ios/chrome/browser/policy/ui_bundled:user_policy_util", |
| "//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/profile", |
| "//ios/chrome/browser/signin/model:authentication_service", |
| "//ios/chrome/browser/signin/model:authentication_service_factory", |
| ] |
| } |
| |
| source_set("promos_manager_scene_agent") { |
| sources = [ |
| "promos_manager_scene_agent.h", |
| "promos_manager_scene_agent.mm", |
| ] |
| deps = [ |
| ":utils", |
| "//ios/chrome/app/profile", |
| "//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("ui_bundled") { |
| 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/authentication/ui_bundled/signin:features", |
| "//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/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/authentication/ui_bundled/signin/promo", |
| "//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/first_run/ui_bundled:features", |
| "//ios/chrome/browser/first_run/ui_bundled/welcome_back/ui", |
| "//ios/chrome/browser/post_restore_signin/ui_bundled", |
| "//ios/chrome/browser/promos_manager/model:constants", |
| "//ios/chrome/browser/safari_data_import/coordinator:promo", |
| "//ios/chrome/browser/safari_data_import/public", |
| "//ios/chrome/browser/shared/model/application_context", |
| "//ios/chrome/browser/shared/model/browser", |
| "//ios/chrome/browser/shared/model/prefs:pref_names", |
| "//ios/chrome/browser/shared/model/profile", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/shared/public/features:system_flags", |
| "//ios/chrome/browser/sync/model", |
| "//ios/chrome/browser/whats_new/coordinator:util", |
| "//ios/chrome/browser/whats_new/coordinator/promo", |
| "//ios/chrome/common/ui/confirmation_alert", |
| "//ios/chrome/common/ui/promo_style", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "promos_manager_coordinator_unittest.mm" ] |
| deps = [ |
| ":promos", |
| ":ui_bundled", |
| "//ios/chrome/app/application_delegate:test_support", |
| "//ios/chrome/app/profile", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_header", |
| "//ios/chrome/browser/shared/coordinator/scene/test", |
| "//ios/chrome/browser/shared/model/browser", |
| "//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:authentication_service", |
| "//ios/chrome/browser/signin/model:authentication_service_factory", |
| "//ios/chrome/browser/signin/model:test_support", |
| "//ios/chrome/test:test_support", |
| "//ios/web/public/test", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |