#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/key_persistence_delegate_factory.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "build/build_config.h"
#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/key_persistence_delegate.h"
#if BUILDFLAG(IS_WIN)
#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/win_key_persistence_delegate.h"
#elif BUILDFLAG(IS_MAC)
#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/mac_key_persistence_delegate.h"
#elif BUILDFLAG(IS_LINUX)
#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/linux_key_persistence_delegate.h"
#endif
namespace enterprise_connectors {
namespace {
std::optional<KeyPersistenceDelegateFactory*>& GetTestInstanceStorage() { … }
}
KeyPersistenceDelegateFactory* KeyPersistenceDelegateFactory::GetInstance() { … }
std::unique_ptr<KeyPersistenceDelegate>
KeyPersistenceDelegateFactory::CreateKeyPersistenceDelegate() { … }
void KeyPersistenceDelegateFactory::SetInstanceForTesting(
KeyPersistenceDelegateFactory* factory) { … }
void KeyPersistenceDelegateFactory::ClearInstanceForTesting() { … }
}