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
|
# 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")
source_set("affiliation_match_helper") {
sources = [
"affiliated_match_helper.cc",
"affiliated_match_helper.h",
]
deps = []
public_deps = [
"//base",
"//components/affiliations/core/browser:affiliations",
"//components/password_manager/core/browser:password_form",
"//components/password_manager/core/browser/password_store:password_store_interface",
]
}
source_set("affiliation_fetching") {
sources = [
"password_affiliation_source_adapter.cc",
"password_affiliation_source_adapter.h",
]
deps = [
"//components/affiliations/core/browser:affiliations",
"//components/password_manager/core/browser",
"//components/password_manager/core/browser:password_form",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/common:features",
"//net",
"//url",
]
if (!is_android) {
sources += [
"passkey_affiliation_source_adapter.cc",
"passkey_affiliation_source_adapter.h",
]
deps += [ "//components/webauthn/core/browser:passkey_model" ]
}
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
source_set("test_support") {
testonly = true
sources = [
"mock_affiliated_match_helper.cc",
"mock_affiliated_match_helper.h",
]
deps = [
"//base",
"//components/affiliations/core/browser:affiliations",
"//components/affiliations/core/browser:test_support",
"//components/password_manager/core/browser:password_form",
"//components/password_manager/core/browser/affiliation:affiliation_match_helper",
"//services/network:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
# TODO: Clean up deps here - maybe merge targets.
source_set("unit_tests") {
testonly = true
sources = [ "affiliated_match_helper_unittest.cc" ]
deps = [
":test_support",
"//base",
"//base/test:test_support",
"//components/affiliations/core/browser:affiliation_proto",
"//components/affiliations/core/browser:affiliations",
"//components/affiliations/core/browser:test_support",
"//components/password_manager/core/browser:password_form",
"//components/password_manager/core/browser/affiliation:affiliation_match_helper",
"//components/password_manager/core/browser/password_store:password_store_interface",
"//components/password_manager/core/common",
"//components/password_manager/core/common:features",
"//components/variations:test_support",
"//services/network:test_support",
"//services/network/public/mojom",
"//sql:test_support",
"//testing/gmock",
"//testing/gtest",
"//url",
]
}
source_set("affiliation_fetching_unittests") {
testonly = true
sources = [ "password_affiliation_source_adapter_unittest.cc" ]
deps = [
":affiliation_fetching",
":test_support",
"//base",
"//components/affiliations/core/browser:affiliations",
"//components/affiliations/core/browser:test_support",
"//components/password_manager/core/browser:browser",
"//components/password_manager/core/browser:test_support",
"//services/network:test_support",
"//testing/gmock",
"//testing/gtest",
]
if (!is_android) {
sources += [ "passkey_affiliation_source_adapter_unittest.cc" ]
deps += [ "//components/webauthn/core/browser:test_support" ]
}
}
|