chromium/components/unexportable_keys/unexportable_key_service_impl_unittest.cc

// 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.

#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 =;

}  // namespace

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) {}

}  // namespace unexportable_keys