# 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/chromeos/ui_mode.gni")
import("//testing/test.gni")
assert(is_chromeos_ash,
"Non-ChromeOS builds cannot depend on //chromeos/ash/components/osauth")
static_library("test_support") {
defines = [ "IS_CHROMEOS_ASH_COMPONENTS_OSAUTH_IMPL" ]
public_deps = [ "//chromeos/ash/components/osauth/public" ]
testonly = true
deps = [
"//base",
"//base/test:test_support",
"//chromeos/ash/components/dbus/userdataauth:test_support",
"//chromeos/ash/components/install_attributes:test_support",
"//chromeos/ash/components/osauth/impl",
"//components/prefs:test_support",
"//components/user_manager:test_support",
"//testing/gmock",
"//testing/gtest",
]
sources = [
"engine_test_util.cc",
"engine_test_util.h",
"mock_auth_attempt_consumer.cc",
"mock_auth_attempt_consumer.h",
"mock_auth_factor_engine.cc",
"mock_auth_factor_engine.h",
"mock_auth_factor_engine_factory.cc",
"mock_auth_factor_engine_factory.h",
"mock_auth_factor_status_consumer.cc",
"mock_auth_factor_status_consumer.h",
"mock_auth_hub.cc",
"mock_auth_hub.h",
"mock_auth_hub_connector.cc",
"mock_auth_hub_connector.h",
]
}