blob: cdcb3aa4e4d9e52791f8d12bb864c466d07745fe [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(IsOwned, bool());
MOCK_METHOD0(IsInLockout, bool());
MOCK_METHOD0(IsPlatformHierarchyEnabled, bool());
MOCK_METHOD0(IsStorageHierarchyEnabled, bool());
MOCK_METHOD0(IsEndorsementHierarchyEnabled, bool());
MOCK_METHOD0(IsEnabled, bool());
MOCK_METHOD0(WasShutdownOrderly, bool());
MOCK_METHOD0(IsRSASupported, bool());
MOCK_METHOD0(IsECCSupported, bool());
};
} // namespace trunks
#endif // TRUNKS_MOCK_TPM_STATE_H_