|  | # 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") { | 
|  | configs += [ "//build/config/compiler:enable_arc" ] | 
|  | 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") { | 
|  | configs += [ "//build/config/compiler:enable_arc" ] | 
|  | 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", | 
|  | "//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", | 
|  | "//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") { | 
|  | configs += [ "//build/config/compiler:enable_arc" ] | 
|  | sources = [ | 
|  | "share_file_download_metrics.h", | 
|  | "share_file_download_metrics.mm", | 
|  | ] | 
|  | } | 
|  |  | 
|  | source_set("unit_tests") { | 
|  | configs += [ "//build/config/compiler:enable_arc" ] | 
|  | testonly = true | 
|  | sources = [ "sharing_coordinator_unittest.mm" ] | 
|  | deps = [ | 
|  | ":sharing", | 
|  | "//base", | 
|  | "//base/test:test_support", | 
|  | "//components/bookmarks/browser", | 
|  | "//components/bookmarks/test", | 
|  | "//ios/chrome/browser/bookmarks", | 
|  | "//ios/chrome/browser/bookmarks:test_support", | 
|  | "//ios/chrome/browser/shared/coordinator/scene:scene_state_browser_agent", | 
|  | "//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/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/compiler:enable_arc", | 
|  | "//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" ] | 
|  | } |