blob: 7092e19f11832ff87d581ae7b46e654ef194b5ea [file] [log] [blame]
// Copyright (c) 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 CRYPTOHOME_MOCK_BOOT_LOCKBOX_H_
#define CRYPTOHOME_MOCK_BOOT_LOCKBOX_H_
#include "cryptohome/boot_lockbox.h"
#include <chromeos/secure_blob.h>
#include <gmock/gmock.h>
namespace cryptohome {
class MockBootLockbox : public BootLockbox {
public:
MockBootLockbox() : BootLockbox(NULL, NULL, NULL) {}
virtual ~MockBootLockbox() {}
MOCK_METHOD2(Sign, bool(const chromeos::SecureBlob&, chromeos::SecureBlob*));
MOCK_METHOD2(Verify, bool(const chromeos::SecureBlob&,
const chromeos::SecureBlob&));
MOCK_METHOD0(FinalizeBoot, bool());
MOCK_METHOD0(IsFinalized, bool());
};
} // namespace cryptohome
#endif // CRYPTOHOME_MOCK_BOOT_LOCKBOX_H_