| # Copyright 2024 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("client") { |
| sources = [ |
| "tips_notification_client.h", |
| "tips_notification_client.mm", |
| "tips_notification_criteria.h", |
| "tips_notification_criteria.mm", |
| "tips_notification_presenter.h", |
| "tips_notification_presenter.mm", |
| ] |
| deps = [ |
| ":utils", |
| "//base", |
| "//components/feature_engagement/public", |
| "//components/safe_browsing/core/common:safe_browsing_prefs", |
| "//components/search", |
| "//components/sync/service", |
| "//ios/chrome/browser/authentication/ui_bundled:signin_presenter", |
| "//ios/chrome/browser/content_suggestions/ui_bundled:commands", |
| "//ios/chrome/browser/content_suggestions/ui_bundled/set_up_list:utils", |
| "//ios/chrome/browser/default_browser/model", |
| "//ios/chrome/browser/default_browser/model:utils", |
| "//ios/chrome/browser/feature_engagement/model", |
| "//ios/chrome/browser/lens/ui_bundled:lens_availability", |
| "//ios/chrome/browser/ntp/model:features", |
| "//ios/chrome/browser/ntp/model:set_up_list_prefs", |
| "//ios/chrome/browser/push_notification/model:constants", |
| "//ios/chrome/browser/push_notification/model:push_notification_client", |
| "//ios/chrome/browser/push_notification/model:push_notification_service_header", |
| "//ios/chrome/browser/push_notification/model:push_notification_util", |
| "//ios/chrome/browser/search_engines/model:template_url_service_factory", |
| "//ios/chrome/browser/settings/model/sync/utils", |
| "//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/prefs:pref_names", |
| "//ios/chrome/browser/shared/model/profile", |
| "//ios/chrome/browser/shared/model/utils", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/signin/model", |
| "//ios/chrome/browser/signin/model:authentication_service", |
| "//ios/chrome/browser/signin/model:authentication_service_factory", |
| "//ios/chrome/browser/sync/model", |
| "//ios/public/provider/chrome/browser/lens:lens_api", |
| ] |
| frameworks = [ "UserNotifications.framework" ] |
| } |
| |
| source_set("utils") { |
| sources = [ |
| "utils.h", |
| "utils.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/prefs", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/push_notification/model:constants", |
| "//ios/chrome/browser/shared/public/features", |
| "//ui/base", |
| ] |
| frameworks = [ "UserNotifications.framework" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "tips_notification_client_unittest.mm", |
| "tips_notification_criteria_unittest.mm", |
| "tips_notification_presenter_unittest.mm", |
| ] |
| deps = [ |
| ":client", |
| ":utils", |
| "//base", |
| "//base/test:test_support", |
| "//components/feature_engagement/public", |
| "//components/feature_engagement/test:test_support", |
| "//components/password_manager/core/common", |
| "//components/safe_browsing/core/common:safe_browsing_prefs", |
| "//components/search_engines", |
| "//components/sync:test_support", |
| "//ios/chrome/browser/authentication/ui_bundled:signin_presenter", |
| "//ios/chrome/browser/content_suggestions/ui_bundled:commands", |
| "//ios/chrome/browser/default_browser/model", |
| "//ios/chrome/browser/default_browser/model:test_support", |
| "//ios/chrome/browser/default_browser/model:utils", |
| "//ios/chrome/browser/feature_engagement/model", |
| "//ios/chrome/browser/first_run/model", |
| "//ios/chrome/browser/ntp/model:set_up_list_prefs", |
| "//ios/chrome/browser/policy/model:policy_util", |
| "//ios/chrome/browser/push_notification/model:constants", |
| "//ios/chrome/browser/push_notification/model:push_notification_util", |
| "//ios/chrome/browser/search_engines/model:template_url_service_factory", |
| "//ios/chrome/browser/settings/model/sync/utils", |
| "//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/test:test_support", |
| "//ios/chrome/browser/shared/model/prefs:pref_names", |
| "//ios/chrome/browser/shared/model/profile/test", |
| "//ios/chrome/browser/shared/model/utils:test_support", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/signin/model:authentication_service", |
| "//ios/chrome/browser/signin/model:authentication_service_factory", |
| "//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/test:test_support", |
| "//ios/testing:block_swizzler", |
| "//ios/web/public/test", |
| "//third_party/ocmock", |
| ] |
| } |