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
|
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
source_set("credential_ui_entry") {
sources = [
"credential_ui_entry.cc",
"credential_ui_entry.h",
]
deps = [
"//components/affiliations/core/browser:affiliations",
"//components/password_manager/core/browser:passkey_credential",
"//components/password_manager/core/browser:password_form",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/browser/form_parsing",
"//components/password_manager/core/browser/import:csv",
"//components/password_manager/core/browser/well_known_change_password",
"//components/url_formatter",
]
}
source_set("ui") {
sources = [
"affiliated_group.cc",
"affiliated_group.h",
"bulk_leak_check_service_adapter.cc",
"bulk_leak_check_service_adapter.h",
"credential_provider_interface.h",
"credential_utils.cc",
"credential_utils.h",
"insecure_credentials_manager.cc",
"insecure_credentials_manager.h",
"password_check_referrer.cc",
"password_check_referrer.h",
"password_undo_helper.cc",
"password_undo_helper.h",
"passwords_grouper.cc",
"passwords_grouper.h",
"passwords_provider.h",
"post_save_compromised_helper.cc",
"post_save_compromised_helper.h",
"saved_passwords_presenter.cc",
"saved_passwords_presenter.h",
]
public_deps = [ ":credential_ui_entry" ]
deps = [
"//components/affiliations/core/browser:affiliations",
"//components/autofill/core/common:common",
"//components/password_manager/core/browser:metrics_util",
"//components/password_manager/core/browser:passkey_credential",
"//components/password_manager/core/browser:password_form",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/browser/leak_detection",
"//components/password_manager/core/browser/password_store:password_store_interface",
"//components/password_manager/core/common",
"//components/prefs",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/sync/base:features",
"//components/undo",
"//components/url_formatter",
"//components/webauthn/core/browser:passkey_model",
"//url",
]
if (!is_android) {
sources += [
"reuse_check_utility.cc",
"reuse_check_utility.h",
"weak_check_utility.cc",
"weak_check_utility.h",
]
deps += [ "//third_party/zxcvbn-cpp" ]
}
}
source_set("unit_tests") {
testonly = true
sources = [
"bulk_leak_check_service_adapter_unittest.cc",
"credential_ui_entry_unittest.cc",
"credential_utils_unittest.cc",
"insecure_credentials_manager_unittest.cc",
"password_undo_helper_unittest.cc",
"passwords_grouper_unittest.cc",
"post_save_compromised_helper_unittest.cc",
"saved_passwords_presenter_unittest.cc",
]
if (!is_android) {
sources += [
"reuse_check_utility_unittest.cc",
"weak_check_utility_unittest.cc",
]
}
deps = [
":ui",
"//components/affiliations/core/browser:test_support",
"//components/password_manager/core/browser:test_support",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/browser/leak_detection:test_support",
"//components/password_manager/core/common",
"//components/prefs",
"//components/prefs:test_support",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/sync/base:features",
"//components/sync/protocol",
"//testing/gmock",
"//testing/gtest",
]
}
|