chromium/ios/chrome/browser/ui/sharing/BUILD.gn

# Copyright 2020 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("sharing") {
  sources = [
    "sharing_coordinator.h",
    "sharing_params.h",
    "sharing_params.mm",
    "sharing_positioner.h",
    "sharing_scenario.h",
  ]
  deps = [
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/ui/util:url_with_title",
    "//url",
  ]
}

source_set("sharing_internal") {
  sources = [
    "share_download_overlay_coordinator.h",
    "share_download_overlay_coordinator.mm",
    "share_download_overlay_view_controller.h",
    "share_download_overlay_view_controller.mm",
    "sharing_coordinator.mm",
  ]
  deps = [
    ":sharing",
    ":sharing_metrics",
    "//base",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/sharing/model",
    "//ios/chrome/browser/ui/sharing/activity_services",
    "//ios/chrome/browser/ui/sharing/qr_generator",
    "//ios/third_party/material_components_ios",
    "//ios/web/public",
    "//ios/web/public/download",
    "//ui/base",
  ]
}

source_set("sharing_metrics") {
  sources = [
    "share_file_download_metrics.h",
    "share_file_download_metrics.mm",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "sharing_coordinator_unittest.mm" ]
  deps = [
    ":sharing",
    "//base",
    "//base/test:test_support",
    "//components/bookmarks/browser",
    "//components/bookmarks/test",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/bookmarks/model:test_support",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/ui/sharing/activity_services",
    "//ios/chrome/test:test_support",
    "//ios/third_party/material_components_ios",
    "//ios/web/public",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/ocmock",
    "//url",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "share_file_download_egtest.mm" ]
  deps = [
    "//base/test:test_support",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//net:test_support",
  ]
  frameworks = [ "UIKit.framework" ]
}