# 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. import("//ios/build/config.gni") source_set("download") { deps = [ "//base", "//ios/web/net/cookies", "//ios/web/public", "//ios/web/public/download", "//ios/web/web_state:error_translation_util", "//ui/base", ] sources = [ "download_controller_impl.h", "download_controller_impl.mm", "download_task_impl.h", "download_task_impl.mm", ] libs = [ "UIKit.framework" ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("download_unittests") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true deps = [ "//base", "//base/test:test_support", "//ios/testing:ocmock_support", "//ios/web/download", "//ios/web/net/cookies", "//ios/web/public/download", "//ios/web/public/test", "//ios/web/public/test/fakes", "//ios/web/test/fakes", "//net", "//testing/gmock", "//testing/gtest", ] sources = [ "download_controller_impl_unittest.mm", "download_task_impl_unittest.mm", ] } source_set("download_inttests") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true deps = [ "//base/test:test_support", "//ios/web/public", "//ios/web/public/download", "//ios/web/public/test", "//ios/web/public/test/fakes", "//net:test_support", ] sources = [ "download_inttest.mm", ] }