|
::rom_test::MockAbsMmio | mmio_ |
|
::rom_test::MockFlashCtrl | flash_ctrl_ |
|
::rom_test::MockOtp | otp_ |
|
::rom_test::MockRstmgr | rstmgr_ |
|
::rom_test::MockSpiDevice | spi_device_ |
|
std::unique_ptr< testing::InSequence > | seq_ |
|
Definition at line 20 of file bootstrap_unittest_util.h.
◆ ExpectBootstrapRequestCheck()
void bootstrap_unittest_util::BootstrapTest::ExpectBootstrapRequestCheck |
( |
bool |
requested | ) |
|
|
protected |
Sets an expectation for a bootstrap request check.
- Parameters
-
requested | Whether bootstrap is requested. |
Definition at line 30 of file bootstrap_unittest_util.cc.
◆ ExpectFlashCtrlChipErase()
void bootstrap_unittest_util::BootstrapTest::ExpectFlashCtrlChipErase |
( |
rom_error_t |
err0, |
|
|
rom_error_t |
err1 |
|
) |
| |
|
protected |
Sets expectations for a chip erase.
- Parameters
-
err0 | Result of erase for the first bank. |
err1 | Result of erase for the second bank. |
Definition at line 76 of file bootstrap_unittest_util.cc.
◆ ExpectFlashCtrlEraseVerify()
void bootstrap_unittest_util::BootstrapTest::ExpectFlashCtrlEraseVerify |
( |
rom_error_t |
err0, |
|
|
rom_error_t |
err1 |
|
) |
| |
|
protected |
Sets expectations for a chip erase verification.
- Parameters
-
err0 | Result of erase verification for the first bank. |
err1 | Result of erase verification for the second bank. |
Definition at line 103 of file bootstrap_unittest_util.cc.
◆ ExpectFlashCtrlSectorErase()
void bootstrap_unittest_util::BootstrapTest::ExpectFlashCtrlSectorErase |
( |
rom_error_t |
err0, |
|
|
rom_error_t |
err1, |
|
|
uint32_t |
addr |
|
) |
| |
|
protected |
Sets expectations for a sector erase.
- Parameters
-
err0 | Result of erase for the first page. |
err1 | Result of erase for the second page. |
addr | Erase start address. |
Definition at line 87 of file bootstrap_unittest_util.cc.
◆ ExpectSpiCmd()
void bootstrap_unittest_util::BootstrapTest::ExpectSpiCmd |
( |
spi_device_cmd_t |
cmd | ) |
|
|
protected |
Sets an expectation for a spi flash command.
- Parameters
-
cmd | Command struct to output. |
Definition at line 42 of file bootstrap_unittest_util.cc.
◆ ExpectSpiFlashStatusGet()
void bootstrap_unittest_util::BootstrapTest::ExpectSpiFlashStatusGet |
( |
bool |
wel | ) |
|
|
protected |