| // Copyright 2020 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_CACHE_H_ |
| #define TRUNKS_MOCK_TPM_CACHE_H_ |
| |
| #include <base/macros.h> |
| #include <gmock/gmock.h> |
| |
| #include "trunks/tpm_cache.h" |
| #include "trunks/tpm_generated.h" |
| |
| namespace trunks { |
| |
| class MockTpmCache : public TpmCache { |
| public: |
| MockTpmCache(); |
| ~MockTpmCache() override = default; |
| |
| MOCK_METHOD( |
| TPM_RC, GetSaltingKeyPublicArea, (TPMT_PUBLIC* public_area), (override)); |
| MOCK_METHOD(TPM_ALG_ID, GetBestSupportedKeyType, (), (override)); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MockTpmCache); |
| }; |
| |
| } // namespace trunks |
| |
| #endif // TRUNKS_MOCK_TPM_CACHE_H_ |