# 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("push_notification") {
sources = [
"commerce_push_notification_client.h",
"commerce_push_notification_client.mm",
"push_notification_feature.h",
"push_notification_feature.mm",
]
deps = [
"//base",
"//components/bookmarks/browser:browser",
"//components/commerce/core:feature_list",
"//components/commerce/core:proto",
"//components/commerce/core:shopping_service",
"//components/optimization_guide/core:core",
"//components/optimization_guide/proto:optimization_guide_proto",
"//components/variations/service",
"//components/variations/service:service",
"//ios/chrome/browser/bookmarks/model:model",
"//ios/chrome/browser/commerce/model:shopping_service",
"//ios/chrome/browser/optimization_guide/model",
"//ios/chrome/browser/push_notification/model:push_notification_client",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//url:url",
]
frameworks = [ "UserNotifications.framework" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "commerce_push_notification_client_unittest.mm" ]
deps = [
":push_notification",
"//base",
"//base/test:test_support",
"//components/commerce/core:commerce_subscription_db_content_proto",
"//components/commerce/core:proto",
"//components/commerce/core:shopping_service",
"//components/commerce/core:shopping_service_test_support",
"//components/optimization_guide/proto:optimization_guide_proto",
"//components/session_proto_db:session_proto_db",
"//components/sync_bookmarks",
"//ios/chrome/app/application_delegate:app_state_header",
"//ios/chrome/browser/bookmarks/model:model",
"//ios/chrome/browser/commerce/model:session_proto_db",
"//ios/chrome/browser/commerce/model:shopping_service",
"//ios/chrome/browser/optimization_guide/model:model",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/url_loading/model",
"//ios/chrome/browser/url_loading/model:test_support",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
]
}