| // 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 CRYPTOHOME_MOCK_BOOT_ATTRIBUTES_H_ |
| #define CRYPTOHOME_MOCK_BOOT_ATTRIBUTES_H_ |
| |
| #include <string> |
| |
| #include <gmock/gmock.h> |
| |
| #include "cryptohome/boot_attributes.h" |
| |
| namespace cryptohome { |
| |
| class MockBootAttributes : public BootAttributes { |
| public: |
| MockBootAttributes() : BootAttributes(NULL, NULL) {} |
| virtual ~MockBootAttributes() {} |
| |
| MOCK_METHOD0(Load, bool()); |
| MOCK_CONST_METHOD2(Get, bool(const std::string&, std::string*)); |
| MOCK_METHOD2(Set, void(const std::string&, const std::string&)); |
| MOCK_METHOD0(FlushAndSign, bool()); |
| }; |
| |
| } // namespace cryptohome |
| |
| #endif // CRYPTOHOME_MOCK_BOOT_ATTRIBUTES_H_ |