chromium/ios/chrome/browser/ui/content_suggestions/parcel_tracking/BUILD.gn

# 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("parcel_tracking") {
  sources = [
    "magic_stack_parcel_list_half_sheet_table_view_controller.h",
    "magic_stack_parcel_list_half_sheet_table_view_controller.mm",
    "parcel_tracking_commands.h",
    "parcel_tracking_item.h",
    "parcel_tracking_item.mm",
    "parcel_tracking_mediator.h",
    "parcel_tracking_mediator.mm",
    "parcel_tracking_view.h",
    "parcel_tracking_view.mm",
  ]
  deps = [
    "//base",
    "//base:i18n",
    "//components/commerce/core:shopping_service",
    "//components/prefs",
    "//components/prefs/ios",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/ntp/shared/metrics:home_metrics",
    "//ios/chrome/browser/ntp/ui_bundled",
    "//ios/chrome/browser/parcel_tracking:features",
    "//ios/chrome/browser/parcel_tracking:metrics",
    "//ios/chrome/browser/parcel_tracking:prefs",
    "//ios/chrome/browser/parcel_tracking:tracking_source",
    "//ios/chrome/browser/parcel_tracking:util",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/ui/content_suggestions:constants",
    "//ios/chrome/browser/ui/content_suggestions:public",
    "//ios/chrome/browser/ui/content_suggestions/magic_stack:public",
    "//ios/chrome/browser/ui/content_suggestions/parcel_tracking/resources",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/url_loading/model:url_loading_params_header",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/util",
    "//ios/public/provider/chrome/browser/branded_images:branded_images_api",
    "//ui/base",
    "//url",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "parcel_tracking_mediator_unittest.mm",
    "parcel_tracking_view+testing.h",
    "parcel_tracking_view_unittest.mm",
  ]
  deps = [
    ":parcel_tracking",
    "//components/commerce/core:shopping_service_test_support",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/parcel_tracking:prefs",
    "//ios/chrome/browser/shared/model/application_context",
    "//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/url_loading/model",
    "//ios/chrome/browser/url_loading/model:test_support",
    "//ios/chrome/test:test_support",
    "//ios/web/public/test",
    "//testing/gtest",
    "//third_party/ocmock",
  ]
}