blob: b1a40411b3e239bf654ed221ca762f57a48b7853 [file] [log] [blame]
# 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")
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_router.cc",
"content_autofill_router.h",
"form_forest.cc",
"form_forest.h",
"form_forest_util_inl.h",
"risk/fingerprint.cc",
"risk/fingerprint.h",
]
public_deps = [
":risk_proto",
"//components/autofill/content/common/mojom",
"//components/autofill/core/browser",
"//components/autofill/core/common",
"//components/keyed_service/content",
"//content/public/common",
"//mojo/public/cpp/bindings",
"//skia",
"//third_party/abseil-cpp:absl",
]
deps = [
"//base",
"//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",
]
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 = [
"content_autofill_driver_factory_test_api.cc",
"content_autofill_driver_factory_test_api.h",
"content_autofill_driver_test_api.h",
"content_autofill_router_test_api.h",
"form_forest_test_api.cc",
"form_forest_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",
"form_forest_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",
]
}