summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/net/BUILD.gn
blob: 2d147ebf54e3581e1fd2c656b794b86f6f5a5d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# 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",
    "crl_set_fetcher.cc",
    "crl_set_fetcher.h",
    "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",
    "net_types.h",
    "proxy_service_factory.cc",
    "proxy_service_factory.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/proxy_config",
    "//components/update_client",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/browsing_data",
    "//ios/net",
    "//ios/web",
    "//net",
    "//net:extras",
    "//url",
  ]
  allow_circular_includes_from = [
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
  ]
}

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/web:test_support",
    "//net",
    "//net:test_support",
    "//testing/gtest",
  ]
}

source_set("eg_tests") {
  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",
    "//ios/web:test_support",
    "//url",
  ]
  libs = [ "XCTest.framework" ]
}