summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/net/BUILD.gn
blob: b1add75745b6c36dccb5abf55b68e1341ae0250c (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# 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_factory.cc",
    "http_server_properties_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/language/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/common",
    "//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/common",
    "//ios/web/public/test",
    "//services/network:test_support",
    "//testing/gtest",
  ]
}

source_set("eg_tests") {
  defines = [ "CHROME_EARL_GREY_1" ]
  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/testing/earl_grey:earl_grey_support",
    "//ios/third_party/earl_grey:earl_grey+link",
    "//ios/web/public/test",
    "//ios/web/public/test/http_server",
    "//url",
  ]
  libs = [ "XCTest.framework" ]
}

source_set("eg2_tests") {
  defines = [ "CHROME_EARL_GREY_2" ]
  configs += [
    "//build/config/compiler:enable_arc",
    "//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",
    "//ios/third_party/earl_grey2:test_lib",
    "//ios/web/public/test/http_server",
    "//ui/base",
    "//url",
  ]
  libs = [ "UIKit.framework" ]
}