Add diagnostics_writer.cc to the list of files allowed to printf.
[chromium-blink-merge.git] / components / autofill / content / browser / BUILD.gn
blobe68a52514bf25bc5141b480a4295d7946eb601ad
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.
5 import("//third_party/protobuf/proto_library.gni")
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   ]
39   deps = [
40     ":risk_proto",
41     "//base",
42     "//base:i18n",
43     "//base:prefs",
44     "//components/autofill/content/common",
45     "//components/autofill/core/browser",
46     "//components/autofill/core/browser:regexes",
47     "//components/autofill/core/common",
48     "//components/os_crypt",
49     "//components/resources",
50     "//components/strings",
51     "//components/user_prefs",
52     "//components/webdata/common",
53     "//content/public/browser",
54     "//content/public/common",
55     "//google_apis",
56     "//ipc",
57     "//skia",
58     "//sql",
59     "//third_party/icu",
60     "//third_party/libphonenumber",
61     "//ui/base",
62     "//ui/gfx",
63     "//ui/gfx/geometry",
64     "//url",
65     #"../third_party/libjingle/libjingle.gyp:libjingle",  TODO(GYP)
66   ]
68   forward_dependent_configs_from = [
69     "//skia",
70   ]
73 proto_library("risk_proto") {
74   sources = [
75     "risk/proto/fingerprint.proto",
76   ]
77   proto_out_dir = "components/autofill/content/browser/risk/proto"
80 static_library("test_support") {
81   sources = [
82     "wallet/mock_wallet_client.cc",
83     "wallet/mock_wallet_client.h",
84     "wallet/wallet_test_util.cc",
85     "wallet/wallet_test_util.h",
86   ]
88   deps = [
89     "//testing/gmock",
90   ]
93 source_set("unit_tests") {
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   ]
106   deps = [
107     ":browser",
108     ":test_support",
109     "//testing/gmock",
110     "//testing/gtest",
111   ]