| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| |
| #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_MOCK_SHUTDOWN_H_ |
| #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_MOCK_SHUTDOWN_H_ |
| |
| #include "sw/device/lib/base/global_mock.h" |
| #include "sw/device/silicon_creator/lib/shutdown.h" |
| #include "sw/device/silicon_creator/testing/rom_test.h" |
| |
| namespace rom_test { |
| namespace internal { |
| |
| /** |
| * Mock class for shutdown. |
| */ |
| class MockShutdown : public global_mock::GlobalMock<MockShutdown> { |
| public: |
| MOCK_METHOD(shutdown_error_redact_t, RedactPolicy, (uintptr_t, uintptr_t)); |
| MOCK_METHOD(uint32_t, Redact, (rom_error_t, shutdown_error_redact_t)); |
| MOCK_METHOD(void, Finalize, (shutdown_addrs_t, rom_error_t)); |
| }; |
| |
| } // namespace internal |
| |
| using MockShutdown = testing::StrictMock<internal::MockShutdown>; |
| |
| } // namespace rom_test |
| |
| #endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_MOCK_SHUTDOWN_H_ |