#include "components/enterprise/client_certificates/core/private_key_factory.h"
#include <memory>
#include "base/functional/callback.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/test_future.h"
#include "components/enterprise/client_certificates/core/mock_private_key.h"
#include "components/enterprise/client_certificates/core/mock_private_key_factory.h"
#include "components/enterprise/client_certificates/core/private_key.h"
#include "components/enterprise/client_certificates/core/private_key_types.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Invoke;
StrictMock;
namespace client_certificates {
std::unique_ptr<MockPrivateKeyFactory> CreateMockedFactory() { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_NoSupportedSource) { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_OnlySoftwareSource) { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_OnlySoftwareSource_Fail) { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_OnlyUnexportableSource) { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_OnlyUnexportableSource_Fail) { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_AllSources) { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_AllSources_UnexportableFail) { … }
TEST(PrivateKeyFactoryTest, CreatePrivateKey_AllSources_AllFail) { … }
TEST(PrivateKeyFactoryTest, LoadPrivateKey_AllSources_Unexportable) { … }
}