chromium/components/unexportable_keys/unexportable_key_task_manager_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_task_manager.h"

#include "base/test/gmock_expected_support.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "base/token.h"
#include "base/types/expected.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_id.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"
#include "third_party/abseil-cpp/absl/types/variant.h"

namespace unexportable_keys {

namespace {
constexpr std::string_view kGenerateKeyTaskResultHistogramName =;
constexpr std::string_view kFromWrappedKeyTaskResultHistogramName =;
constexpr std::string_view kSignTaskResultHistogramName =;
}  // namespace

class UnexportableKeyTaskManagerTest : public testing::Test {};

TEST_F(UnexportableKeyTaskManagerTest, GenerateKeyAsync) {}

TEST_F(UnexportableKeyTaskManagerTest,
       GenerateKeyAsyncFailureUnsupportedAlgorithm) {}

TEST_F(UnexportableKeyTaskManagerTest, GenerateKeyAsyncFailureNoKeyProvider) {}

TEST_F(UnexportableKeyTaskManagerTest, FromWrappedKeyAsync) {}

TEST_F(UnexportableKeyTaskManagerTest, FromWrappedKeyAsyncFailureEmptyKey) {}

TEST_F(UnexportableKeyTaskManagerTest,
       FromWrappedKeyAsyncFailureNoKeyProvider) {}

TEST_F(UnexportableKeyTaskManagerTest, SignAsync) {}

TEST_F(UnexportableKeyTaskManagerTest, SignAsyncNullKey) {}

}  // namespace unexportable_keys