OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 "export/password_exporter.h", | 45 "export/password_exporter.h", |
46 "facet_manager.cc", | 46 "facet_manager.cc", |
47 "facet_manager.h", | 47 "facet_manager.h", |
48 "facet_manager_host.h", | 48 "facet_manager_host.h", |
49 "form_fetcher.h", | 49 "form_fetcher.h", |
50 "form_fetcher_impl.cc", | 50 "form_fetcher_impl.cc", |
51 "form_fetcher_impl.h", | 51 "form_fetcher_impl.h", |
52 "form_saver.h", | 52 "form_saver.h", |
53 "form_saver_impl.cc", | 53 "form_saver_impl.cc", |
54 "form_saver_impl.h", | 54 "form_saver_impl.h", |
55 "hsts_query.cc", | |
56 "hsts_query.h", | |
57 "http_data_cleaner.cc", | |
58 "http_data_cleaner.h", | |
55 "http_password_store_migrator.cc", | 59 "http_password_store_migrator.cc", |
56 "http_password_store_migrator.h", | 60 "http_password_store_migrator.h", |
57 "import/csv_reader.cc", | 61 "import/csv_reader.cc", |
58 "import/csv_reader.h", | 62 "import/csv_reader.h", |
59 "import/password_csv_reader.cc", | 63 "import/password_csv_reader.cc", |
60 "import/password_csv_reader.h", | 64 "import/password_csv_reader.h", |
61 "import/password_importer.cc", | 65 "import/password_importer.cc", |
62 "import/password_importer.h", | 66 "import/password_importer.h", |
63 "keychain_migration_status_mac.h", | 67 "keychain_migration_status_mac.h", |
64 "log_manager.cc", | 68 "log_manager.cc", |
65 "log_manager.h", | 69 "log_manager.h", |
66 "log_receiver.h", | 70 "log_receiver.h", |
67 "log_router.cc", | 71 "log_router.cc", |
68 "log_router.h", | 72 "log_router.h", |
69 "login_database.cc", | 73 "login_database.cc", |
70 "login_database.h", | 74 "login_database.h", |
71 "login_database_ios.cc", | 75 "login_database_ios.cc", |
72 "login_database_mac.cc", | 76 "login_database_mac.cc", |
73 "login_database_posix.cc", | 77 "login_database_posix.cc", |
74 "login_database_win.cc", | 78 "login_database_win.cc", |
75 "login_model.cc", | 79 "login_model.cc", |
76 "login_model.h", | 80 "login_model.h", |
77 "obsolete_http_cleaner.cc", | |
78 "obsolete_http_cleaner.h", | |
79 "password_autofill_manager.cc", | 81 "password_autofill_manager.cc", |
80 "password_autofill_manager.h", | 82 "password_autofill_manager.h", |
81 "password_bubble_experiment.cc", | 83 "password_bubble_experiment.cc", |
82 "password_bubble_experiment.h", | 84 "password_bubble_experiment.h", |
83 "password_form_manager.cc", | 85 "password_form_manager.cc", |
84 "password_form_manager.h", | 86 "password_form_manager.h", |
85 "password_generation_manager.cc", | 87 "password_generation_manager.cc", |
86 "password_generation_manager.h", | 88 "password_generation_manager.h", |
87 "password_manager.cc", | 89 "password_manager.cc", |
88 "password_manager.h", | 90 "password_manager.h", |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 "//google_apis", | 162 "//google_apis", |
161 "//net", | 163 "//net", |
162 "//sql", | 164 "//sql", |
163 "//third_party/protobuf:protobuf_lite", | 165 "//third_party/protobuf:protobuf_lite", |
164 "//third_party/re2", | 166 "//third_party/re2", |
165 "//ui/base", | 167 "//ui/base", |
166 "//ui/gfx", | 168 "//ui/gfx", |
167 "//url", | 169 "//url", |
168 ] | 170 ] |
169 | 171 |
172 if (is_ios) { | |
173 sources -= [ | |
vasilii
2017/03/28 17:27:44
What about if (!is_ios) sources += ?
jdoerrie
2017/03/29 11:27:56
Done.
| |
174 "hsts_query.cc", | |
175 "hsts_query.h", | |
176 "http_data_cleaner.cc", | |
177 "http_data_cleaner.h", | |
178 ] | |
179 } | |
180 | |
170 if (is_mac || is_ios) { | 181 if (is_mac || is_ios) { |
171 sources -= [ "login_database_posix.cc" ] | 182 sources -= [ "login_database_posix.cc" ] |
172 } | 183 } |
173 | 184 |
174 if (!is_ios) { | 185 if (!is_ios) { |
175 deps += [ "//components/safe_browsing/password_protection" ] | 186 deps += [ "//components/safe_browsing/password_protection" ] |
176 } | 187 } |
177 | 188 |
178 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 189 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
179 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 190 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
216 ] | 227 ] |
217 | 228 |
218 public_deps = [ | 229 public_deps = [ |
219 ":browser", | 230 ":browser", |
220 "//testing/gmock", | 231 "//testing/gmock", |
221 "//url:url", | 232 "//url:url", |
222 ] | 233 ] |
223 deps = [ | 234 deps = [ |
224 "//base", | 235 "//base", |
225 "//components/autofill/core/common", | 236 "//components/autofill/core/common", |
237 "//net:net", | |
226 "//testing/gtest", | 238 "//testing/gtest", |
227 ] | 239 ] |
228 } | 240 } |
229 | 241 |
230 bundle_data("unit_tests_bundle_data") { | 242 bundle_data("unit_tests_bundle_data") { |
231 visibility = [ ":unit_tests" ] | 243 visibility = [ ":unit_tests" ] |
232 testonly = true | 244 testonly = true |
233 sources = [ | 245 sources = [ |
234 "//components/test/data/password_manager/login_db_v1.sql", | 246 "//components/test/data/password_manager/login_db_v1.sql", |
235 "//components/test/data/password_manager/login_db_v10.sql", | 247 "//components/test/data/password_manager/login_db_v10.sql", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 "affiliation_utils_unittest.cc", | 285 "affiliation_utils_unittest.cc", |
274 "browser_save_password_progress_logger_unittest.cc", | 286 "browser_save_password_progress_logger_unittest.cc", |
275 "credential_manager_logger_unittest.cc", | 287 "credential_manager_logger_unittest.cc", |
276 "credential_manager_password_form_manager_unittest.cc", | 288 "credential_manager_password_form_manager_unittest.cc", |
277 "export/csv_writer_unittest.cc", | 289 "export/csv_writer_unittest.cc", |
278 "export/password_csv_writer_unittest.cc", | 290 "export/password_csv_writer_unittest.cc", |
279 "export/password_exporter_unittest.cc", | 291 "export/password_exporter_unittest.cc", |
280 "facet_manager_unittest.cc", | 292 "facet_manager_unittest.cc", |
281 "form_fetcher_impl_unittest.cc", | 293 "form_fetcher_impl_unittest.cc", |
282 "form_saver_impl_unittest.cc", | 294 "form_saver_impl_unittest.cc", |
295 "hsts_query_unittest.cc", | |
296 "http_data_cleaner_unittest.cc", | |
283 "http_password_store_migrator_unittest.cc", | 297 "http_password_store_migrator_unittest.cc", |
284 "import/csv_reader_unittest.cc", | 298 "import/csv_reader_unittest.cc", |
285 "import/password_csv_reader_unittest.cc", | 299 "import/password_csv_reader_unittest.cc", |
286 "import/password_importer_unittest.cc", | 300 "import/password_importer_unittest.cc", |
287 "log_manager_unittest.cc", | 301 "log_manager_unittest.cc", |
288 "log_router_unittest.cc", | 302 "log_router_unittest.cc", |
289 "login_database_unittest.cc", | 303 "login_database_unittest.cc", |
290 "login_model_unittest.cc", | 304 "login_model_unittest.cc", |
291 "obsolete_http_cleaner_unittest.cc", | |
292 "password_autofill_manager_unittest.cc", | 305 "password_autofill_manager_unittest.cc", |
293 "password_bubble_experiment_unittest.cc", | 306 "password_bubble_experiment_unittest.cc", |
294 "password_form_manager_unittest.cc", | 307 "password_form_manager_unittest.cc", |
295 "password_generation_manager_unittest.cc", | 308 "password_generation_manager_unittest.cc", |
296 "password_manager_settings_migration_experiment_unittest.cc", | 309 "password_manager_settings_migration_experiment_unittest.cc", |
297 "password_manager_unittest.cc", | 310 "password_manager_unittest.cc", |
298 "password_manager_util_unittest.cc", | 311 "password_manager_util_unittest.cc", |
299 "password_reuse_detection_manager_unittest.cc", | 312 "password_reuse_detection_manager_unittest.cc", |
300 "password_reuse_detector_unittest.cc", | 313 "password_reuse_detector_unittest.cc", |
301 "password_store_default_unittest.cc", | 314 "password_store_default_unittest.cc", |
302 "password_store_origin_unittest.h", | 315 "password_store_origin_unittest.h", |
303 "password_store_unittest.cc", | 316 "password_store_unittest.cc", |
304 "password_syncable_service_unittest.cc", | 317 "password_syncable_service_unittest.cc", |
305 "password_ui_utils_unittest.cc", | 318 "password_ui_utils_unittest.cc", |
306 "psl_matching_helper_unittest.cc", | 319 "psl_matching_helper_unittest.cc", |
307 "sql_table_builder_unittest.cc", | 320 "sql_table_builder_unittest.cc", |
308 "statistics_table_unittest.cc", | 321 "statistics_table_unittest.cc", |
309 ] | 322 ] |
310 if (is_mac) { | 323 if (is_mac) { |
311 sources -= [ "password_store_default_unittest.cc" ] | 324 sources -= [ "password_store_default_unittest.cc" ] |
312 } | 325 } |
313 if (is_ios) { | 326 if (is_ios) { |
314 sources += [ "login_database_ios_unittest.cc" ] | 327 sources += [ "login_database_ios_unittest.cc" ] |
328 sources -= [ | |
329 "hsts_query_unittest.cc", | |
330 "http_data_cleaner_unittest.cc", | |
331 ] | |
315 } | 332 } |
316 deps = [ | 333 deps = [ |
317 ":test_support", | 334 ":test_support", |
318 ":unit_tests_bundle_data", | 335 ":unit_tests_bundle_data", |
319 "//base/test:test_support", | 336 "//base/test:test_support", |
320 "//components/autofill/core/browser:test_support", | 337 "//components/autofill/core/browser:test_support", |
321 "//components/autofill/core/browser/proto", | 338 "//components/autofill/core/browser/proto", |
322 "//components/autofill/core/common", | 339 "//components/autofill/core/common", |
323 "//components/os_crypt:test_support", | 340 "//components/os_crypt:test_support", |
324 "//components/password_manager/core/browser:proto", | 341 "//components/password_manager/core/browser:proto", |
325 "//components/password_manager/core/common", | 342 "//components/password_manager/core/common", |
326 "//components/prefs:test_support", | 343 "//components/prefs:test_support", |
327 "//components/security_state/core", | 344 "//components/security_state/core", |
328 "//components/strings", | 345 "//components/strings", |
329 "//components/sync:test_support_driver", | 346 "//components/sync:test_support_driver", |
330 "//components/sync:test_support_model", | 347 "//components/sync:test_support_model", |
331 "//components/variations", | 348 "//components/variations", |
332 "//net:test_support", | 349 "//net:test_support", |
333 "//sql:test_support", | 350 "//sql:test_support", |
334 "//testing/gmock", | 351 "//testing/gmock", |
335 "//testing/gtest", | 352 "//testing/gtest", |
336 "//ui/base", | 353 "//ui/base", |
337 "//url", | 354 "//url", |
338 ] | 355 ] |
339 } | 356 } |
OLD | NEW |