# Copyright 2023 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("coordinator") {
sources = [
"parcel_tracking_opt_in_coordinator.h",
"parcel_tracking_opt_in_coordinator.mm",
"parcel_tracking_opt_in_mediator.h",
"parcel_tracking_opt_in_mediator.mm",
]
deps = [
":ui",
"//base",
"//components/commerce/core:shopping_service",
"//components/prefs",
"//ios/chrome/browser/commerce/model:shopping_service",
"//ios/chrome/browser/parcel_tracking:metrics",
"//ios/chrome/browser/parcel_tracking:opt_in_status",
"//ios/chrome/browser/parcel_tracking:parcel_tracking_step",
"//ios/chrome/browser/parcel_tracking:tracking_source",
"//ios/chrome/browser/parcel_tracking:util",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/common/ui/confirmation_alert",
"//ios/web/public",
"//ios/web/public/annotations:custom_text_check_result",
]
}
source_set("ui") {
sources = [
"parcel_tracking_opt_in_view_controller.h",
"parcel_tracking_opt_in_view_controller.mm",
"parcel_tracking_opt_in_view_controller_delegate.h",
]
deps = [
"//base",
"//ios/chrome/app/strings",
"//ios/chrome/browser/parcel_tracking:opt_in_status",
"//ios/chrome/browser/parcel_tracking/ui_bundled/resources",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/common:string_util",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/confirmation_alert",
"//ios/chrome/common/ui/util",
"//net",
"//ui/base",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "parcel_tracking_opt_in_coordinator_unittest.mm" ]
deps = [
":coordinator",
"//base/test:test_support",
"//components/prefs",
"//ios/chrome/browser/parcel_tracking:metrics",
"//ios/chrome/browser/parcel_tracking:opt_in_status",
"//ios/chrome/browser/parcel_tracking:util",
"//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/web/public/test",
"//testing/gtest",
]
}