# Copyright 2016 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. source_set("net") { configs += [ "//build/config/compiler:enable_arc" ] sources = [ "chrome_cookie_store_ios_client.h", "chrome_cookie_store_ios_client.mm", "connection_type_observer_bridge.h", "connection_type_observer_bridge.mm", "cookie_util.h", "cookie_util.mm", "http_server_properties_manager_factory.cc", "http_server_properties_manager_factory.h", "ios_chrome_http_user_agent_settings.h", "ios_chrome_http_user_agent_settings.mm", "ios_chrome_network_delegate.cc", "ios_chrome_network_delegate.h", "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/pref_registry", "//components/prefs", "//components/update_client", "//ios/chrome/browser", "//ios/chrome/browser/browser_state", "//ios/chrome/browser/browsing_data", "//ios/net", "//ios/web", "//net", "//net:extras", "//url", ] public_deps = [ ":net_types", ] allow_circular_includes_from = [ "//ios/chrome/browser" ] } source_set("net_types") { sources = [ "net_types.h", ] deps = [ "//base", "//net", ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("unit_tests") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true sources = [ "cookie_util_unittest.mm", "retryable_url_fetcher_unittest.mm", ] deps = [ ":net", "//base", "//base/test:test_support", "//ios/net", "//ios/net:test_support", "//ios/web/public/test", "//net", "//net:test_support", "//testing/gtest", ] } source_set("eg_tests") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true sources = [ "cookies_egtest.mm", ] deps = [ "//base", "//ios/chrome/test/app:test_support", "//ios/chrome/test/earl_grey:test_support", "//ios/third_party/earl_grey:earl_grey+link", "//ios/web/public/test", "//ios/web/public/test/http_server", "//url", ] libs = [ "XCTest.framework" ] }