# Copyright 2017 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("model") {
sources = [
"ar_quick_look_tab_helper.h",
"ar_quick_look_tab_helper.mm",
"ar_quick_look_tab_helper_delegate.h",
"browser_download_service.h",
"browser_download_service.mm",
"browser_download_service_factory.h",
"browser_download_service_factory.mm",
"confirm_download_closing_overlay.h",
"confirm_download_closing_overlay.mm",
"confirm_download_replacing_overlay.h",
"confirm_download_replacing_overlay.mm",
"document_download_tab_helper.h",
"document_download_tab_helper.mm",
"document_download_tab_helper_metrics.h",
"document_download_tab_helper_metrics.mm",
"download_directory_util.h",
"download_directory_util.mm",
"download_manager_metric_names.h",
"download_manager_tab_helper.h",
"download_manager_tab_helper.mm",
"download_manager_tab_helper_delegate.h",
"external_app_util.h",
"external_app_util.mm",
"installation_notifier+Testing.h",
"installation_notifier.h",
"installation_notifier.mm",
"pass_kit_tab_helper.h",
"pass_kit_tab_helper.mm",
"pass_kit_tab_helper_delegate.h",
"safari_download_tab_helper.h",
"safari_download_tab_helper.mm",
"safari_download_tab_helper_delegate.h",
"vcard_tab_helper.h",
"vcard_tab_helper.mm",
"vcard_tab_helper_delegate.h",
]
public_deps = [ ":mime_types" ]
deps = [
"//base",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/download/ui_bundled:features",
"//ios/chrome/browser/drive/model:drive_tab_helper",
"//ios/chrome/browser/drive/model:upload_task",
"//ios/chrome/browser/overlays/model",
"//ios/chrome/browser/overlays/model/public/common/confirmation",
"//ios/chrome/browser/overlays/model/public/common/confirmation:util",
"//ios/chrome/browser/prerender/model",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/model/utils",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/ui/fullscreen",
"//ios/chrome/browser/ui/fullscreen:ui",
"//ios/web/common",
"//ios/web/public",
"//ios/web/public/download",
"//ui/base",
]
frameworks = [
"UIKit.framework",
"PassKit.framework",
"QuartzCore.framework",
"QuickLook.framework",
]
}
source_set("mime_types") {
sources = [
"download_mimetype_util.cc",
"download_mimetype_util.h",
"mime_type_util.cc",
"mime_type_util.h",
]
deps = [ "//base" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"ar_quick_look_tab_helper_unittest.mm",
"browser_download_service_factory_unittest.mm",
"browser_download_service_unittest.mm",
"document_download_tab_helper_unittest.mm",
"download_directory_util_unittest.mm",
"download_manager_tab_helper_unittest.mm",
"google_drive_app_util_unittest.mm",
"installation_notifier_unittest.mm",
"pass_kit_tab_helper_unittest.mm",
"vcard_tab_helper_unittest.mm",
]
deps = [
":test_support",
"//base/test:test_support",
"//ios/chrome/browser/download/model",
"//ios/chrome/browser/download/ui_bundled:features",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/ui/fullscreen:internal",
"//ios/chrome/browser/ui/fullscreen/test",
"//ios/chrome/test/fakes",
"//ios/web/public",
"//ios/web/public/download",
"//ios/web/public/test",
"//ios/web/public/test:download_test_utils",
"//ios/web/public/test/fakes",
"//net",
"//testing/gtest",
"//third_party/ocmock",
]
}
source_set("test_support") {
testonly = true
sources = [
"download_test_util.cc",
"download_test_util.h",
]
deps = [ "//base" ]
}