# Copyright 2023 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("shared_storage") {
visibility = [
":*",
"//content/test:*",
"//services/network:network_service",
"//services/network:test_support",
"//services/network:tests",
]
defines = [ "IS_NETWORK_SERVICE_IMPL" ]
sources = [
"shared_storage_header_utils.cc",
"shared_storage_header_utils.h",
"shared_storage_request_helper.cc",
"shared_storage_request_helper.h",
]
deps = [
"//base",
"//net",
"//services/network/public/cpp",
"//services/network/public/mojom",
"//url",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
source_set("test_support") {
testonly = true
defines = [ "IS_NETWORK_SERVICE_IMPL" ]
sources = [
"shared_storage_test_url_loader_network_observer.cc",
"shared_storage_test_url_loader_network_observer.h",
"shared_storage_test_utils.cc",
"shared_storage_test_utils.h",
]
deps = [
":shared_storage",
"//base",
"//base/test:test_support",
"//net:test_support",
"//services/network:test_support",
"//services/network/public/cpp",
"//services/network/public/mojom",
"//testing/gtest",
"//url",
]
}
source_set("tests") {
testonly = true
defines = [ "IS_NETWORK_SERVICE_IMPL" ]
sources = [ "shared_storage_request_helper_unittest.cc" ]
deps = [
":shared_storage",
":test_support",
"//base",
"//base/test:test_support",
"//net:test_support",
"//services/network:test_support",
"//services/network/public/cpp",
"//services/network/public/mojom",
"//testing/gtest",
"//url",
]
}