blob: 601ac5fcf401470bc85710da9f2c805408f142cb [file] [log] [blame]
# 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.
static_library("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/proto:optimization_guide_proto",
"//ios/chrome/browser/application_context:application_context",
"//ios/chrome/browser/bookmarks:bookmarks",
"//ios/chrome/browser/browser_state:browser_state",
"//ios/chrome/browser/commerce:shopping_service",
"//ios/chrome/browser/main:public",
"//ios/chrome/browser/optimization_guide",
"//ios/chrome/browser/push_notification:push_notification_client",
"//ios/chrome/browser/url_loading",
"//url:url",
]
frameworks = [ "UserNotifications.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
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",
"//ios/chrome/browser/bookmarks:bookmarks",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/browser_state:test_support",
"//ios/chrome/browser/commerce:session_proto_db",
"//ios/chrome/browser/commerce:shopping_service",
"//ios/chrome/browser/main:public",
"//ios/chrome/browser/main:test_support",
"//ios/chrome/browser/url_loading:test_support",
"//ios/chrome/browser/url_loading:url_loading",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
]
}