blob: 797fd3b0f0ac4d2bbfd8ce755a127e1e3936c0fe [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.
#include "trunks/mock_tpm_state.h"
#include <gmock/gmock.h>
using testing::Return;
namespace trunks {
MockTpmState::MockTpmState() {
ON_CALL(*this, IsOwnerPasswordSet()).WillByDefault(Return(true));
ON_CALL(*this, IsEndorsementPasswordSet()).WillByDefault(Return(true));
ON_CALL(*this, IsLockoutPasswordSet()).WillByDefault(Return(true));
ON_CALL(*this, IsOwned()).WillByDefault(Return(true));
ON_CALL(*this, IsPlatformHierarchyEnabled()).WillByDefault(Return(true));
ON_CALL(*this, IsStorageHierarchyEnabled()).WillByDefault(Return(true));
ON_CALL(*this, IsEndorsementHierarchyEnabled()).WillByDefault(Return(true));
ON_CALL(*this, IsEnabled()).WillByDefault(Return(true));
ON_CALL(*this, WasShutdownOrderly()).WillByDefault(Return(true));
ON_CALL(*this, IsRSASupported()).WillByDefault(Return(true));
ON_CALL(*this, IsECCSupported()).WillByDefault(Return(true));
}
MockTpmState::~MockTpmState() {}
} // namespace trunks