# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. source_set("download") { sources = [ "browser_download_service.h", "browser_download_service.mm", "browser_download_service_factory.h", "browser_download_service_factory.mm", "download_directory_util.cc", "download_directory_util.h", "download_manager_metric_names.h", "download_manager_tab_helper.h", "download_manager_tab_helper.mm", "download_manager_tab_helper_delegate.h", "google_drive_app_util.h", "google_drive_app_util.mm", "pass_kit_mime_type.cc", "pass_kit_mime_type.h", "pass_kit_tab_helper.h", "pass_kit_tab_helper.mm", "pass_kit_tab_helper_delegate.h", ] deps = [ "//base", "//components/keyed_service/core", "//components/keyed_service/ios", "//ios/chrome/browser/browser_state", "//ios/chrome/browser/ui:network_activity_indicator_manager", "//ios/web/public", "//ios/web/public/download", ] libs = [ "UIKit.framework", "PassKit.framework", ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("unit_tests") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true sources = [ "browser_download_service_factory_unittest.mm", "browser_download_service_unittest.mm", "download_directory_util_unittest.mm", "download_manager_tab_helper_unittest.mm", "google_drive_app_util_unittest.mm", "pass_kit_tab_helper_unittest.mm", ] deps = [ ":test_support", "//base/test:test_support", "//ios/chrome/browser/browser_state:test_support", "//ios/chrome/browser/download", "//ios/chrome/browser/ui:network_activity_indicator_manager", "//ios/chrome/test/fakes", "//ios/web/public", "//ios/web/public/download", "//ios/web/public/test", "//ios/web/public/test/fakes", "//net", "//testing/gtest", "//third_party/ocmock", ] } source_set("test_support") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true sources = [ "pass_kit_test_util.cc", "pass_kit_test_util.h", ] deps = [ "//base", ] }