summaryrefslogtreecommitdiff
path: root/chromium/components/autofill/core/common/BUILD.gn
blob: fa03af7f4fc92b645e95f9a205e1192cfee7db37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/jumbo.gni")

jumbo_static_library("common") {
  sources = [
    "autofill_clock.cc",
    "autofill_clock.h",
    "autofill_constants.cc",
    "autofill_constants.h",
    "autofill_data_validation.cc",
    "autofill_data_validation.h",
    "autofill_internals/log_message.cc",
    "autofill_internals/log_message.h",
    "autofill_internals/logging_scope.cc",
    "autofill_internals/logging_scope.h",
    "autofill_l10n_util.cc",
    "autofill_l10n_util.h",
    "autofill_payments_features.cc",
    "autofill_payments_features.h",
    "autofill_prefs.cc",
    "autofill_prefs.h",
    "autofill_switches.cc",
    "autofill_switches.h",
    "autofill_tick_clock.cc",
    "autofill_tick_clock.h",
    "autofill_util.cc",
    "autofill_util.h",
    "dense_set.h",
    "field_data_manager.cc",
    "field_data_manager.h",
    "form_data.cc",
    "form_data.h",
    "form_data_predictions.cc",
    "form_data_predictions.h",
    "form_field_data.cc",
    "form_field_data.h",
    "form_field_data_predictions.cc",
    "form_field_data_predictions.h",
    "gaia_id_hash.cc",
    "gaia_id_hash.h",
    "language_code.h",
    "logging/log_buffer.cc",
    "logging/log_buffer.h",
    "password_form_fill_data.cc",
    "password_form_fill_data.h",
    "password_form_generation_data.h",
    "password_generation_util.cc",
    "password_generation_util.h",
    "save_password_progress_logger.cc",
    "save_password_progress_logger.h",
    "signatures.cc",
    "signatures.h",
    "unique_ids.cc",
    "unique_ids.h",
  ]

  public_deps = [ ":features" ]

  deps = [
    "//base",
    "//base:i18n",
    "//build:chromeos_buildflags",

    # Note: Can't use mojom:mojo_types here, as that already depends on :common.
    "//components/autofill/core/common/mojom:mojo_types_shared",
    "//components/pref_registry",
    "//components/prefs",
    "//components/variations",
    "//crypto",
    "//google_apis:google_apis",
    "//ui/base",
    "//ui/gfx/geometry",
    "//url",
  ]

  configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
}

component("features") {
  output_name = "autofill_core_common_features"
  defines = [ "IS_AUTOFILL_IMPL" ]
  sources = [
    "autofill_features.cc",
    "autofill_features.h",
  ]

  deps = [ "//base" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "autofill_internals/log_message_unittest.cc",
    "autofill_internals/logging_scope_unittest.cc",
    "autofill_l10n_util_unittest.cc",
    "autofill_prefs_unittest.cc",
    "autofill_util_unittest.cc",
    "dense_set_unittest.cc",
    "field_data_manager_unittest.cc",
    "form_data_unittest.cc",
    "form_field_data_unittest.cc",
    "gaia_id_hash_unittest.cc",
    "logging/log_buffer_unittest.cc",
    "save_password_progress_logger_unittest.cc",
  ]

  deps = [
    ":common",
    "//base",
    "//base:i18n",
    "//base/test:test_support",
    "//components/pref_registry",
    "//components/prefs",
    "//components/prefs:test_support",
    "//crypto:crypto",
    "//google_apis:google_apis",
    "//testing/gmock",
    "//testing/gtest",
    "//url",
  ]
}