Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / autofill / core / common / BUILD.gn
blob9a53fe2486ac71f61381f1b4a23961b97ac0c7bc
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 static_library("common") {
6   sources = [
7     "autofill_constants.cc",
8     "autofill_constants.h",
9     "autofill_data_validation.cc",
10     "autofill_data_validation.h",
11     "autofill_l10n_util.cc",
12     "autofill_l10n_util.h",
13     "autofill_pref_names.cc",
14     "autofill_pref_names.h",
15     "autofill_regexes.cc",
16     "autofill_regexes.h",
17     "autofill_switches.cc",
18     "autofill_switches.h",
19     "autofill_util.cc",
20     "autofill_util.h",
21     "form_data.cc",
22     "form_data.h",
23     "form_data_predictions.cc",
24     "form_data_predictions.h",
25     "form_field_data.cc",
26     "form_field_data.h",
27     "form_field_data_predictions.cc",
28     "form_field_data_predictions.h",
29     "password_form.cc",
30     "password_form.h",
31     "password_form_fill_data.cc",
32     "password_form_fill_data.h",
33     "password_generation_util.cc",
34     "password_generation_util.h",
35     "save_password_progress_logger.cc",
36     "save_password_progress_logger.h",
37     "web_element_descriptor.cc",
38     "web_element_descriptor.h",
39   ]
41   deps = [
42     "//base",
43     "//base:i18n",
44     "//ui/base",
45     "//ui/gfx",
46     "//url",
47   ]
49   if (is_android) {
50     # deps += [ 'autofill_jni_headers' ]  TODO(GYP)
51   }
53   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
56 source_set("unit_tests") {
57   testonly = true
58   sources = [
59     "autofill_regexes_unittest.cc",
60     "autofill_util_unittest.cc",
61     "form_data_unittest.cc",
62     "form_field_data_unittest.cc",
63     "password_form_fill_data_unittest.cc",
64     "save_password_progress_logger_unittest.cc",
65   ]
67   deps = [
68     ":common",
69     "//base",
70     "//base:i18n",
71     "//components/autofill/core/browser",
72     "//testing/gmock",
73     "//testing/gtest",
74     "//url",
75   ]