#include "components/unexportable_keys/unexportable_key_service_impl.h"
#include "base/containers/span.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/gmock_move_support.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "components/unexportable_keys/background_task_priority.h"
#include "components/unexportable_keys/ref_counted_unexportable_signing_key.h"
#include "components/unexportable_keys/service_error.h"
#include "components/unexportable_keys/unexportable_key_task_manager.h"
#include "crypto/scoped_mock_unexportable_key_provider.h"
#include "crypto/signature_verifier.h"
#include "crypto/unexportable_key.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace unexportable_keys {
namespace {
constexpr crypto::SignatureVerifier::SignatureAlgorithm
kAcceptableAlgorithms[] = …;
constexpr BackgroundTaskPriority kTaskPriority = …;
}
class UnexportableKeyServiceImplTest : public testing::Test { … };
TEST_F(UnexportableKeyServiceImplTest, IsUnexportableKeyProviderSupported) { … }
TEST_F(UnexportableKeyServiceImplTest, GenerateKey) { … }
TEST_F(UnexportableKeyServiceImplTest, GenerateKeyMultiplePendingRequests) { … }
TEST_F(UnexportableKeyServiceImplTest, GenerateKeyFails) { … }
TEST_F(UnexportableKeyServiceImplTest, FromWrappedKey) { … }
TEST_F(UnexportableKeyServiceImplTest, FromWrappedKeyMultiplePendingRequests) { … }
TEST_F(UnexportableKeyServiceImplTest,
FromWrappedKeyMultiplePendingRequestsFail) { … }
TEST_F(UnexportableKeyServiceImplTest,
FromWrappedKeyReturnsTheSameIdWhenExists) { … }
TEST_F(UnexportableKeyServiceImplTest, Sign) { … }
TEST_F(UnexportableKeyServiceImplTest, NonExistingKeyId) { … }
}