summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/autofill/BUILD.gn
blob: 961309903b77ae3dbde5e759a70dcbf7b9dcf4ce (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# 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("autofill") {
  sources = [
    "form_input_accessory_view.h",
    "form_input_accessory_view.mm",
    "form_input_accessory_view_controller.h",
    "form_input_accessory_view_controller.mm",
    "form_input_accessory_view_delegate.h",
    "form_suggestion_controller.h",
    "form_suggestion_controller.mm",
    "form_suggestion_label.h",
    "form_suggestion_label.mm",
    "form_suggestion_provider.h",
    "form_suggestion_view.h",
    "form_suggestion_view.mm",
    "form_suggestion_view_client.h",
    "personal_data_manager_factory.cc",
    "personal_data_manager_factory.h",
  ]
  deps = [
    "//base",
    "//base:i18n",
    "//components/autofill/core/browser",
    "//components/autofill/ios/browser",
    "//components/keyed_service/core",
    "//components/keyed_service/ios",
    "//components/signin/core/browser",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/passwords:passwords_generation_utils",
    "//ios/chrome/browser/signin",
    "//ios/chrome/browser/ui",
    "//ios/web",
    "//ui/base",
    "//url",
  ]
  libs = [ "QuartzCore.framework" ]
}

source_set("autofill_internal") {
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "autofill_agent.h",
    "autofill_agent.mm",
    "autofill_controller.h",
    "autofill_controller.mm",
  ]
  deps = [
    ":autofill",
    "//base",
    "//components/autofill/core/browser",
    "//components/autofill/core/common",
    "//components/autofill/ios/browser",
    "//components/infobars/core",
    "//components/pref_registry",
    "//components/prefs",
    "//components/signin/core/browser",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/infobars",
    "//ios/chrome/browser/signin",
    "//ios/chrome/browser/ui/autofill",
    "//ios/web",
    "//ui/gfx/geometry",
    "//url",
  ]
  libs = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [
    "autofill_controller_js_unittest.mm",
    "autofill_controller_unittest.mm",
    "form_structure_browsertest.mm",
    "form_suggestion_controller_unittest.mm",
    "js_autofill_manager_unittest.mm",
    "js_suggestion_manager_unittest.mm",
  ]
  deps = [
    ":autofill",
    ":autofill_internal",
    "//base",
    "//base/test:test_support",
    "//components/autofill/core/browser",
    "//components/autofill/core/browser:test_support",
    "//components/autofill/core/common",
    "//components/autofill/ios/browser",
    "//components/infobars/core",
    "//components/keyed_service/core",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state:test_support",
    "//ios/chrome/browser/infobars",
    "//ios/chrome/browser/ui",
    "//ios/chrome/browser/ui/autofill",
    "//ios/chrome/browser/web:test_support",
    "//ios/chrome/test/base",
    "//ios/web",
    "//ios/web:test_support",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base:test_support",
  ]
}

source_set("eg_tests") {
  testonly = true
  sources = [
    "form_input_egtest.mm",
  ]
  deps = [
    ":autofill",
    "//base",
    "//base/test:test_support",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/ui",
    "//ios/chrome/test/app:test_support",
    "//ios/chrome/test/earl_grey:test_support",
    "//ios/testing:ios_test_support",
    "//ios/testing/earl_grey:earl_grey_support",
    "//ios/third_party/earl_grey",
    "//ios/web:earl_grey_test_support",
    "//ios/web:test_support",
  ]
}