| # Copyright 2020 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/buildflag_header.gni") |
| import("//build/config/ios/ios_sdk.gni") |
| |
| source_set("credential_provider") { |
| sources = [ |
| "ASPasskeyCredentialIdentity+credential.h", |
| "ASPasskeyCredentialIdentity+credential.mm", |
| "ASPasswordCredentialIdentity+credential.h", |
| "ASPasswordCredentialIdentity+credential.mm", |
| "archivable_credential+passkey.h", |
| "archivable_credential+passkey.mm", |
| "archivable_credential.h", |
| "archivable_credential.mm", |
| "archivable_credential_store.h", |
| "archivable_credential_store.mm", |
| "archivable_credential_util.h", |
| "archivable_credential_util.mm", |
| "constants.h", |
| "constants.mm", |
| "credential_provider_creation_notifier.h", |
| "credential_provider_creation_notifier.mm", |
| "credential_store_util.h", |
| "credential_store_util.mm", |
| "memory_credential_store.h", |
| "memory_credential_store.mm", |
| "multi_store_credential_store.h", |
| "multi_store_credential_store.mm", |
| "passkey_model_observer_bridge.h", |
| "passkey_model_observer_bridge.mm", |
| "user_defaults_credential_store.h", |
| "user_defaults_credential_store.mm", |
| ] |
| deps = [ |
| ":ui", |
| "//base", |
| "//components/sync/protocol", |
| "//components/webauthn/core/browser:passkey_model", |
| "//ios/chrome/common:ios_app_bundle_id_prefix_buildflags", |
| "//ios/chrome/common/app_group", |
| ] |
| frameworks = [ |
| "AuthenticationServices.framework", |
| "Foundation.framework", |
| ] |
| } |
| |
| source_set("ui") { |
| sources = [ |
| "credential.h", |
| "credential_store.h", |
| ] |
| frameworks = [ "Foundation.framework" ] |
| } |
| |
| source_set("mock_credential_store") { |
| testonly = true |
| sources = [ |
| "mock_credential_store.h", |
| "mock_credential_store.mm", |
| ] |
| deps = [ ":ui" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "archivable_credential_store_unittest.mm", |
| "archivable_credential_unittest.mm", |
| "as_credential_identity_categories_unittests.mm", |
| "credential_store_util_unittest.mm", |
| "memory_credential_store_unittests.mm", |
| "multi_store_credential_store_unittests.mm", |
| "user_defaults_credential_store_unittests.mm", |
| ] |
| deps = [ |
| ":credential_provider", |
| "//base/test:test_support", |
| "//testing/gtest", |
| ] |
| } |