chromium/chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/scoped_key_persistence_delegate_factory.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/scoped_key_persistence_delegate_factory.h"

#include <utility>

#include "base/check.h"
#include "base/memory/scoped_refptr.h"
#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/ec_signing_key.h"
#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/persistence/mock_key_persistence_delegate.h"
#include "chrome/browser/enterprise/connectors/device_trust/key_management/core/signing_key_pair.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"

BPKUR;

namespace enterprise_connectors {
namespace test {

namespace {

std::unique_ptr<crypto::UnexportableSigningKey> GenerateHardwareSigningKey() {}

std::unique_ptr<crypto::UnexportableSigningKey> GenerateECSigningKey() {}

}  // namespace

ScopedKeyPersistenceDelegateFactory::ScopedKeyPersistenceDelegateFactory() {}

ScopedKeyPersistenceDelegateFactory::~ScopedKeyPersistenceDelegateFactory() {}

std::unique_ptr<MockKeyPersistenceDelegate>
ScopedKeyPersistenceDelegateFactory::CreateMockedHardwareDelegate() {}

std::unique_ptr<MockKeyPersistenceDelegate>
ScopedKeyPersistenceDelegateFactory::
    CreateMockedHardwareDelegateWithLoadingSideEffect(
        base::RepeatingClosure& side_effect) {}

std::unique_ptr<MockKeyPersistenceDelegate>
ScopedKeyPersistenceDelegateFactory::CreateMockedECDelegate() {}

std::unique_ptr<KeyPersistenceDelegate>
ScopedKeyPersistenceDelegateFactory::CreateKeyPersistenceDelegate() {}

ScopedInMemoryKeyPersistenceDelegateFactory::
    ScopedInMemoryKeyPersistenceDelegateFactory() {}

ScopedInMemoryKeyPersistenceDelegateFactory::
    ~ScopedInMemoryKeyPersistenceDelegateFactory() {}

std::unique_ptr<KeyPersistenceDelegate>
ScopedInMemoryKeyPersistenceDelegateFactory::CreateKeyPersistenceDelegate() {}

// We may want a method to change this to test no permission case?
bool ScopedInMemoryKeyPersistenceDelegateFactory::CheckRotationPermissions() {}

bool ScopedInMemoryKeyPersistenceDelegateFactory::StoreKeyPair(
    KeyTrustLevel trust_level,
    std::vector<uint8_t> wrapped) {}

scoped_refptr<SigningKeyPair>
ScopedInMemoryKeyPersistenceDelegateFactory::LoadKeyPair(
    KeyStorageType type,
    LoadPersistedKeyResult* result) {}

scoped_refptr<SigningKeyPair>
ScopedInMemoryKeyPersistenceDelegateFactory::CreateKeyPair() {}

bool ScopedInMemoryKeyPersistenceDelegateFactory::PromoteTemporaryKeyPair() {}

bool ScopedInMemoryKeyPersistenceDelegateFactory::DeleteKeyPair(
    KeyStorageType type) {}

bool KeyPersistenceDelegateStub::CheckRotationPermissions() {}

bool KeyPersistenceDelegateStub::StoreKeyPair(KeyTrustLevel trust_level,
                                              std::vector<uint8_t> wrapped) {}

scoped_refptr<SigningKeyPair> KeyPersistenceDelegateStub::LoadKeyPair(
    KeyStorageType type,
    LoadPersistedKeyResult* result) {}

scoped_refptr<SigningKeyPair> KeyPersistenceDelegateStub::CreateKeyPair() {}

bool KeyPersistenceDelegateStub::PromoteTemporaryKeyPair() {}

bool KeyPersistenceDelegateStub::DeleteKeyPair(KeyStorageType type) {}

}  // namespace test
}  // namespace enterprise_connectors