#include "device/fido/virtual_fido_device_factory.h"
#include "device/fido/cable/cable_discovery_data.h"
#include "device/fido/fido_transport_protocol.h"
#include "device/fido/virtual_fido_device_discovery.h"
namespace device::test {
VirtualFidoDeviceFactory::VirtualFidoDeviceFactory() = default;
VirtualFidoDeviceFactory::~VirtualFidoDeviceFactory() = default;
void VirtualFidoDeviceFactory::SetSupportedProtocol(
ProtocolVersion supported_protocol) { … }
void VirtualFidoDeviceFactory::SetTransport(FidoTransportProtocol transport) { … }
void VirtualFidoDeviceFactory::SetCtap2Config(
const VirtualCtap2Device::Config& config) { … }
VirtualFidoDevice::State* VirtualFidoDeviceFactory::mutable_state() { … }
scoped_refptr<VirtualFidoDeviceDiscovery::Trace>
VirtualFidoDeviceFactory::trace() { … }
std::vector<std::unique_ptr<FidoDiscoveryBase>>
VirtualFidoDeviceFactory::Create(FidoTransportProtocol transport) { … }
bool VirtualFidoDeviceFactory::IsTestOverride() { … }
base::RepeatingCallback<void(std::unique_ptr<cablev2::Pairing>)>
VirtualFidoDeviceFactory::get_cable_contact_callback() { … }
void VirtualFidoDeviceFactory::set_discover_win_webauthn_api_authenticator(
bool on) { … }
#if BUILDFLAG(IS_WIN)
std::unique_ptr<device::FidoDiscoveryBase>
VirtualFidoDeviceFactory::MaybeCreateWinWebAuthnApiDiscovery() {
if (!discover_win_webauthn_api_authenticator_) {
return nullptr;
}
return FidoDiscoveryFactory::MaybeCreateWinWebAuthnApiDiscovery();
}
#endif
}