# 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.
import("//build/config/features.gni")
# Test target for download internal tests to depend on.
source_set("test_support") {
visibility = [
"//components/download/content/internal:unit_tests",
"//components/download/internal/background_service:unit_tests",
"//components/download/internal/background_service/ios:unit_tests",
"//ios/chrome/browser/download/model/background_service:unit_tests",
]
testonly = true
sources = [
"background_download_test_base.cc",
"background_download_test_base.h",
"black_hole_log_sink.cc",
"black_hole_log_sink.h",
"entry_utils.cc",
"entry_utils.h",
"mock_file_monitor.cc",
"mock_file_monitor.h",
"test_store.cc",
"test_store.h",
]
if (use_blink) {
sources += [
"download_params_utils.cc",
"download_params_utils.h",
"mock_controller.cc",
"mock_controller.h",
"mock_download_driver_client.cc",
"mock_download_driver_client.h",
"mock_log_sink.cc",
"mock_log_sink.h",
"mock_model_client.cc",
"mock_model_client.h",
"test_device_status_listener.cc",
"test_device_status_listener.h",
"test_download_driver.cc",
"test_download_driver.h",
]
}
public_deps = [
"//base",
"//components/download/internal/background_service:common",
"//components/download/public/background_service:public",
"//testing/gmock",
]
public_deps += [ "//net:test_support" ]
deps = [ "//components/download/internal/background_service:storage" ]
if (use_blink) {
deps += [
"//components/download/internal/background_service:internal",
"//components/download/network",
"//services/network:test_support",
"//services/network/public/cpp",
]
}
}