File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,811; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (163 lines) | stat: -rw-r--r-- 4,645 bytes parent folder | download | duplicates (2)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//third_party/protobuf/proto_library.gni")

proto_library("autofill_shared_storage_proto") {
  sources = [ "autofill_shared_storage.proto" ]
}

static_library("browser") {
  sources = [
    "autofill_log_router_factory.cc",
    "autofill_log_router_factory.h",
    "bad_message.cc",
    "bad_message.h",
    "content_autofill_client.cc",
    "content_autofill_client.h",
    "content_autofill_driver.cc",
    "content_autofill_driver.h",
    "content_autofill_driver_factory.cc",
    "content_autofill_driver_factory.h",
    "content_autofill_shared_storage_handler.cc",
    "content_autofill_shared_storage_handler.h",
    "content_identity_credential_delegate.cc",
    "content_identity_credential_delegate.h",
    "renderer_forms_from_browser_form.cc",
    "renderer_forms_from_browser_form.h",
    "risk/fingerprint.cc",
    "risk/fingerprint.h",
    "scoped_autofill_managers_observation.cc",
    "scoped_autofill_managers_observation.h",
  ]

  public_deps = [
    ":risk_proto",
    "//base",
    "//components/autofill/content/common/mojom",
    "//components/autofill/core/browser",
    "//components/autofill/core/common",
    "//components/keyed_service/content",
    "//components/services/storage",
    "//content/public/common",
    "//mojo/public/cpp/bindings",
    "//skia",
    "//third_party/abseil-cpp:absl",
  ]
  deps = [
    ":autofill_shared_storage_proto",
    "//base:i18n",
    "//components/os_crypt/sync",
    "//components/prefs",
    "//components/profile_metrics",
    "//components/resources",
    "//components/strings",
    "//components/user_prefs",
    "//components/version_info",
    "//components/webauthn/core/browser",
    "//content/public/browser",
    "//gpu/config",
    "//mojo/public/cpp/system",
    "//net",
    "//ppapi/buildflags",
    "//services/device/public/cpp/geolocation",
    "//services/device/public/mojom",
    "//services/service_manager/public/cpp",
    "//sql",
    "//ui/base",
    "//ui/display",
    "//ui/gfx",
    "//ui/gfx/geometry",
    "//url",
  ]
  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  if (!is_android) {
    deps += [ "//components/webauthn/content/browser" ]
  }
}

proto_library("risk_proto") {
  sources = [ "risk/proto/fingerprint.proto" ]
  proto_out_dir = "components/autofill/content/browser/risk/proto"
}

source_set("test_support") {
  testonly = true
  sources = [
    "autofill_test_utils.cc",
    "autofill_test_utils.h",
    "content_autofill_driver_factory_test_api.cc",
    "content_autofill_driver_factory_test_api.h",
    "content_autofill_driver_test_api.h",
    "test_autofill_client_injector.cc",
    "test_autofill_client_injector.h",
    "test_autofill_driver_injector.cc",
    "test_autofill_driver_injector.h",
    "test_autofill_manager_injector.cc",
    "test_autofill_manager_injector.h",
    "test_content_autofill_client.cc",
    "test_content_autofill_client.h",
    "test_content_autofill_driver.h",
  ]

  public_deps = [
    ":browser",
    "//components/autofill/core/browser:test_support",
    "//content/public/browser",
    "//content/test:test_support",
  ]

  deps = [ "//base" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "autofill_internals_log_router_unittest.cc",
    "content_autofill_driver_factory_unittest.cc",
    "content_autofill_driver_unittest.cc",
    "content_identity_credential_delegate_unittest.cc",
    "scoped_autofill_managers_observation_unittest.cc",
  ]

  deps = [
    ":browser",
    ":test_support",
    "//base",
    "//components/autofill/content/common/mojom",
    "//components/autofill/core/browser",
    "//components/autofill/core/browser:test_support",
    "//components/autofill/core/common",
    "//components/version_info",
    "//content/public/browser",
    "//content/public/common",
    "//content/test:test_support",
    "//mojo/public/cpp/system",
    "//net:test_support",
    "//services/service_manager/public/cpp",
    "//testing/gmock",
    "//testing/gtest",
  ]
}
source_set("browser_tests") {
  testonly = true
  sources = [ "risk/fingerprint_browsertest.cc" ]

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  deps = [
    ":test_support",
    "//base",
    "//content/public/browser",
    "//content/test:browsertest_support",
    "//content/test:test_support",
    "//services/device/public/cpp:test_support",
    "//services/device/public/cpp/geolocation",
    "//services/device/public/mojom",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/gfx/geometry",
  ]
}