# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("content") {
sources = [
"browsing_data_helper.cc",
"browsing_data_helper.h",
"browsing_data_model.cc",
"browsing_data_model.h",
"browsing_data_quota_helper.cc",
"browsing_data_quota_helper.h",
"browsing_data_quota_helper_impl.cc",
"browsing_data_quota_helper_impl.h",
"canonical_cookie_hash.cc",
"canonical_cookie_hash.h",
"conditional_cache_counting_helper.cc",
"conditional_cache_counting_helper.h",
"cookie_helper.cc",
"cookie_helper.h",
"local_storage_helper.cc",
"local_storage_helper.h",
"shared_worker_info.cc",
"shared_worker_info.h",
]
deps = [
"//base",
"//components/attribution_reporting:features",
"//components/browsing_data/core",
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/no_state_prefetch/browser",
"//components/origin_trials:browser",
"//components/origin_trials:common",
"//components/prefs",
"//components/services/storage",
"//components/services/storage/privileged/mojom",
"//components/site_isolation",
"//components/webid",
"//content/public/browser",
"//net",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"browsing_data_helper_unittest.cc",
"browsing_data_model_unittest.cc",
"browsing_data_quota_helper_unittest.cc",
"cookie_helper_unittest.cc",
]
deps = [
":content",
":test_support",
"//base",
"//base/test:test_support",
"//content/test:test_support",
"//extensions/buildflags",
"//services/network:test_support",
"//storage/browser:test_support",
"//testing/gtest",
"//url",
]
}
source_set("test_support") {
testonly = true
sources = [
"browsing_data_model_test_util.cc",
"browsing_data_model_test_util.h",
"browsing_data_test_util.cc",
"browsing_data_test_util.h",
"fake_browsing_data_model.cc",
"fake_browsing_data_model.h",
"mock_browsing_data_quota_helper.cc",
"mock_browsing_data_quota_helper.h",
"mock_cookie_helper.cc",
"mock_cookie_helper.h",
"mock_local_storage_helper.cc",
"mock_local_storage_helper.h",
"test_browsing_data_model_delegate.cc",
"test_browsing_data_model_delegate.h",
]
deps = [
":content",
"//base",
"//components/services/storage",
"//content/public/browser",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//url",
]
}