blob: 3f2b6166736f9fa5859e6c91912b748f885eb889 [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ATTESTATION_SERVER_MOCK_TPM_UTILITY_H_
#define ATTESTATION_SERVER_MOCK_TPM_UTILITY_H_
#include "attestation/server/tpm_utility.h"
#include <string>
#include <gmock/gmock.h>
namespace attestation {
class MockTpmUtility : public TpmUtility {
public:
MockTpmUtility();
~MockTpmUtility() override;
MOCK_METHOD0(IsTpmReady, bool());
MOCK_METHOD6(ActivateIdentity, bool(const std::string&,
const std::string&,
const std::string&,
const std::string&,
const std::string&,
std::string*));
MOCK_METHOD4(GenerateKey, bool(KeyType, KeyUsage, std::string*,
std::string*));
MOCK_METHOD6(CertifyKey, bool(const std::string&,
const std::string&,
const std::string&,
std::string*,
std::string*,
std::string*));
};
} // namespace attestation
#endif // ATTESTATION_SERVER_MOCK_TPM_UTILITY_H_