Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / components / password_manager / core / browser / BUILD.gn
blob06ca44f9c983cecfcb2faeb84704d26d5281fde2
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 if (is_android) {
8   import("//build/config/android/config.gni")
11 source_set("browser") {
12   sources = [
13     "affiliated_match_helper.cc",
14     "affiliated_match_helper.h",
15     "affiliation_backend.cc",
16     "affiliation_backend.h",
17     "affiliation_database.cc",
18     "affiliation_database.h",
19     "affiliation_fetch_throttler.cc",
20     "affiliation_fetch_throttler.h",
21     "affiliation_fetch_throttler_delegate.h",
22     "affiliation_fetcher.cc",
23     "affiliation_fetcher.h",
24     "affiliation_fetcher_delegate.h",
25     "affiliation_service.cc",
26     "affiliation_service.h",
27     "affiliation_utils.cc",
28     "affiliation_utils.h",
29     "browser_save_password_progress_logger.cc",
30     "browser_save_password_progress_logger.h",
31     "credential_manager_password_form_manager.cc",
32     "credential_manager_password_form_manager.h",
33     "credential_manager_pending_request_task.cc",
34     "credential_manager_pending_request_task.h",
35     "credential_manager_pending_require_user_mediation_task.cc",
36     "credential_manager_pending_require_user_mediation_task.h",
37     "credentials_filter.h",
38     "export/csv_writer.cc",
39     "export/csv_writer.h",
40     "facet_manager.cc",
41     "facet_manager.h",
42     "facet_manager_host.h",
43     "import/csv_reader.cc",
44     "import/csv_reader.h",
45     "keychain_migration_status_mac.h",
46     "log_receiver.h",
47     "log_router.cc",
48     "log_router.h",
49     "login_database.cc",
50     "login_database.h",
51     "login_database_mac.cc",
52     "login_database_posix.cc",
53     "login_database_win.cc",
54     "login_model.h",
55     "password_autofill_manager.cc",
56     "password_autofill_manager.h",
57     "password_bubble_experiment.cc",
58     "password_bubble_experiment.h",
59     "password_form_manager.cc",
60     "password_form_manager.h",
61     "password_generation_manager.cc",
62     "password_generation_manager.h",
63     "password_manager.cc",
64     "password_manager.h",
65     "password_manager_client.cc",
66     "password_manager_client.h",
67     "password_manager_driver.h",
68     "password_manager_internals_service.cc",
69     "password_manager_internals_service.h",
70     "password_manager_metrics_util.cc",
71     "password_manager_metrics_util.h",
72     "password_manager_settings_migration_experiment.cc",
73     "password_manager_settings_migration_experiment.h",
74     "password_manager_util.cc",
75     "password_manager_util.h",
76     "password_store.cc",
77     "password_store.h",
78     "password_store_change.h",
79     "password_store_consumer.cc",
80     "password_store_consumer.h",
81     "password_store_default.cc",
82     "password_store_default.h",
83     "password_store_sync.cc",
84     "password_store_sync.h",
85     "password_syncable_service.cc",
86     "password_syncable_service.h",
87     "psl_matching_helper.cc",
88     "psl_matching_helper.h",
89     "statistics_table.cc",
90     "statistics_table.h",
91     "test_affiliation_fetcher_factory.h",
92     "webdata/logins_table.cc",
93     "webdata/logins_table.h",
94     "webdata/logins_table_win.cc",
95     "webdata/password_web_data_service_win.cc",
96     "webdata/password_web_data_service_win.h",
97   ]
99   public_deps = [
100     "//base",
101     "//sync",
102   ]
103   deps = [
104     ":proto",
105     "//components/autofill/core/common",
106     "//components/keyed_service/core",
107     "//components/os_crypt",
108     "//components/password_manager/core/common",
109     "//components/strings",
110     "//components/url_formatter",
111     "//net",
112     "//sql",
113     "//third_party/protobuf:protobuf_lite",
114     "//third_party/re2",
115     "//url",
116   ]
118   if (is_mac) {
119     # TODO(blundell): Provide the iOS login DB implementation and then
120     # also exclude the POSIX one from iOS. http://crbug.com/341429
121     sources -= [ "login_database_posix.cc" ]
122   }
124   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
125   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
128 proto_library("proto") {
129   sources = [
130     "affiliation_api.proto",
131   ]
134 source_set("test_support") {
135   testonly = true
136   sources = [
137     "fake_affiliation_api.cc",
138     "fake_affiliation_api.h",
139     "fake_affiliation_fetcher.cc",
140     "fake_affiliation_fetcher.h",
141     "mock_affiliation_consumer.cc",
142     "mock_affiliation_consumer.h",
143     "mock_password_store.cc",
144     "mock_password_store.h",
145     "password_manager_test_utils.cc",
146     "password_manager_test_utils.h",
147     "stub_password_manager_client.cc",
148     "stub_password_manager_client.h",
149     "stub_password_manager_driver.cc",
150     "stub_password_manager_driver.h",
151     "test_password_store.cc",
152     "test_password_store.h",
153   ]
155   public_deps = [
156     ":browser",
157   ]
158   deps = [
159     "//base",
160     "//components/autofill/core/common",
161     "//testing/gmock",
162     "//testing/gtest",
163   ]
166 source_set("unit_tests") {
167   testonly = true
168   sources = [
169     "affiliated_match_helper_unittest.cc",
170     "affiliation_backend_unittest.cc",
171     "affiliation_database_unittest.cc",
172     "affiliation_fetch_throttler_unittest.cc",
173     "affiliation_fetcher_unittest.cc",
174     "affiliation_service_unittest.cc",
175     "affiliation_utils_unittest.cc",
176     "browser_save_password_progress_logger_unittest.cc",
177     "export/csv_writer_unittest.cc",
178     "facet_manager_unittest.cc",
179     "import/csv_reader_unittest.cc",
180     "log_router_unittest.cc",
181     "login_database_unittest.cc",
182     "mock_affiliated_match_helper.cc",
183     "mock_affiliated_match_helper.h",
184     "password_autofill_manager_unittest.cc",
185     "password_bubble_experiment_unittest.cc",
186     "password_form_manager_unittest.cc",
187     "password_generation_manager_unittest.cc",
188     "password_manager_metrics_util_unittest.cc",
189     "password_manager_settings_migration_experiment_unittest.cc",
190     "password_manager_unittest.cc",
191     "password_store_default_unittest.cc",
192     "password_store_unittest.cc",
193     "password_syncable_service_unittest.cc",
194     "psl_matching_helper_unittest.cc",
195     "statistics_table_unittest.cc",
196   ]
197   deps = [
198     ":test_support",
199     "//testing/gmock",
200     "//testing/gtest",
201   ]