Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / components / autofill / content / browser / BUILD.gn
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//third_party/protobuf/proto_library.gni")
6
7 # GYP version: components/autofill.gypi:autofill_content_browser
8 static_library("browser") {
9   sources = [
10     "content_autofill_driver.cc",
11     "content_autofill_driver.h",
12     "request_autocomplete_manager.cc",
13     "request_autocomplete_manager.h",
14     "risk/fingerprint.cc",
15     "risk/fingerprint.h",
16     "wallet/form_field_error.cc",
17     "wallet/form_field_error.h",
18     "wallet/full_wallet.cc",
19     "wallet/full_wallet.h",
20     "wallet/gaia_account.cc",
21     "wallet/gaia_account.h",
22     "wallet/instrument.cc",
23     "wallet/instrument.h",
24     "wallet/required_action.cc",
25     "wallet/required_action.h",
26     "wallet/wallet_address.cc",
27     "wallet/wallet_address.h",
28     "wallet/wallet_client.cc",
29     "wallet/wallet_client.h",
30     "wallet/wallet_client_delegate.h",
31     "wallet/wallet_items.cc",
32     "wallet/wallet_items.h",
33     "wallet/wallet_service_url.cc",
34     "wallet/wallet_service_url.h",
35     "wallet/wallet_signin_helper.cc",
36     "wallet/wallet_signin_helper.h",
37   ]
38
39   public_deps = [
40     "//skia",
41   ]
42   deps = [
43     ":risk_proto",
44     "//base",
45     "//base:i18n",
46     "//base:prefs",
47     "//components/autofill/content/common",
48     "//components/autofill/core/browser",
49     "//components/autofill/core/browser:regexes",
50     "//components/autofill/core/common",
51     "//components/os_crypt",
52     "//components/resources",
53     "//components/strings",
54     "//components/user_prefs",
55     "//components/webdata/common",
56     "//content/public/browser",
57     "//content/public/common",
58     "//google_apis",
59     "//ipc",
60     "//sql",
61     "//third_party/icu",
62     "//third_party/libphonenumber",
63     "//third_party/libjingle",
64     "//ui/base",
65     "//ui/gfx",
66     "//ui/gfx/geometry",
67     "//url",
68   ]
69 }
70
71 proto_library("risk_proto") {
72   sources = [
73     "risk/proto/fingerprint.proto",
74   ]
75   proto_out_dir = "components/autofill/content/browser/risk/proto"
76 }
77
78 static_library("test_support") {
79   testonly = true
80   sources = [
81     "wallet/mock_wallet_client.cc",
82     "wallet/mock_wallet_client.h",
83     "wallet/wallet_test_util.cc",
84     "wallet/wallet_test_util.h",
85   ]
86
87   deps = [
88     "//testing/gmock",
89   ]
90 }
91
92 source_set("unit_tests") {
93   testonly = true
94   sources = [
95     "content_autofill_driver_unittest.cc",
96     "request_autocomplete_manager_unittest.cc",
97     "wallet/full_wallet_unittest.cc",
98     "wallet/instrument_unittest.cc",
99     "wallet/wallet_address_unittest.cc",
100     "wallet/wallet_client_unittest.cc",
101     "wallet/wallet_items_unittest.cc",
102     "wallet/wallet_service_url_unittest.cc",
103     "wallet/wallet_signin_helper_unittest.cc",
104   ]
105
106   deps = [
107     ":browser",
108     ":test_support",
109     "//testing/gmock",
110     "//testing/gtest",
111   ]
112 }