blob: 6ca241cdac96ba0f7389a6ef51b997ca85045ace [file] [log] [blame]
// Copyright 2014 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 TRUNKS_MOCK_TPM_STATE_H_
#define TRUNKS_MOCK_TPM_STATE_H_
#include "trunks/tpm_state.h"
#include <gmock/gmock.h>
namespace trunks {
class MockTpmState : public TpmState {
public:
MockTpmState();
~MockTpmState() override;
MOCK_METHOD0(Initialize, TPM_RC());
MOCK_METHOD0(IsOwnerPasswordSet, bool());
MOCK_METHOD0(IsEndorsementPasswordSet, bool());
MOCK_METHOD0(IsLockoutPasswordSet, bool());
MOCK_METHOD0(IsInLockout, bool());
MOCK_METHOD0(IsPlatformHierarchyEnabled, bool());
MOCK_METHOD0(WasShutdownOrderly, bool());
MOCK_METHOD0(IsRSASupported, bool());
MOCK_METHOD0(IsECCSupported, bool());
};
} // namespace trunks
#endif // TRUNKS_MOCK_TPM_STATE_H_