# 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.
source_set("model") {
sources = [
"accept_language_pref_watcher.h",
"accept_language_pref_watcher.mm",
"chrome_cookie_store_ios_client.h",
"chrome_cookie_store_ios_client.mm",
"connection_type_observer_bridge.h",
"connection_type_observer_bridge.mm",
"http_server_properties_factory.cc",
"http_server_properties_factory.h",
"ios_chrome_http_user_agent_settings.h",
"ios_chrome_http_user_agent_settings.mm",
"ios_chrome_url_request_context_getter.cc",
"ios_chrome_url_request_context_getter.h",
"retryable_url_fetcher.h",
"retryable_url_fetcher.mm",
]
deps = [
"//base",
"//components/component_updater",
"//components/content_settings/core/browser",
"//components/content_settings/core/browser:cookie_settings",
"//components/language/core/browser",
"//components/pref_registry",
"//components/prefs",
"//components/update_client",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/net",
"//ios/web/common",
"//net",
"//net:extras",
"//url",
]
public_deps = [
":crurl",
":net_types",
":network_delegate",
]
}
source_set("network_delegate") {
sources = [
"ios_chrome_network_delegate.cc",
"ios_chrome_network_delegate.h",
]
deps = [
"//base",
"//components/content_settings/core/browser:cookie_settings",
"//components/content_settings/core/common",
"//components/prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/web/public/thread",
"//net",
]
}
source_set("net_types") {
sources = [ "net_types.h" ]
deps = [
"//base",
"//net",
]
}
source_set("crurl") {
sources = [
"crurl.h",
"crurl.mm",
]
public_deps = [ "//base" ]
deps = [
"//net",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "retryable_url_fetcher_unittest.mm" ]
deps = [
":model",
"//base",
"//base/test:test_support",
"//ios/web/common",
"//ios/web/public/test",
"//services/network:test_support",
"//testing/gtest",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "cookies_egtest.mm" ]
deps = [
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//net:test_support",
"//ui/base",
"//url",
]
frameworks = [ "UIKit.framework" ]
}