blob: f300cb301d9a350c1710c2f6478589dacd8443a8 [file] [log] [blame]
# 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 = [
":download_cookies",
"//base",
"//ios/net",
"//ios/web/common",
"//ios/web/net/cookies",
"//ios/web/public",
"//ios/web/public/download",
"//ios/web/web_view: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_cookies") {
visibility = [ ":*" ]
deps = [
"//ios/net",
"//net",
]
sources = [
"download_session_cookie_storage.h",
"download_session_cookie_storage.mm",
]
libs = [ "Foundation.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("download_unittests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
deps = [
":download_cookies",
"//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_session_cookie_storage_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",
]
}