mbed-os/storage
Lingkai Dong f88bf828ab QSPIFBlockDevice: Add unit test for the S25FS512S quirk
Add a test case to verify that the quirk on `CR1NV` and `CR3NV`
registers get applied by `QSPIFBlockDevice` when the flash device
is S25FS512S.

`QSPIFBlockDevice` depends on the SFDP functions and the `QSPI` class,
but we can't use gMock on them because:
* SFDP functions are global functions, whereas gMock only supports
mocking class member functions.
* A mocked class is injected into the test subject, but passing a
preexisting `QSPI` instance into `QSPIFBlockDevice` is not possible
(unless we resort to pointers). For details, see comments in
test_QSPIFBlockDevice.cpp.

So fakes of the `QSPI` class and any SFDP functions involved are
defined in test_QSPIFBlockDevice.cpp.
2021-09-10 11:33:34 +01:00
..
blockdevice QSPIFBlockDevice: Add unit test for the S25FS512S quirk 2021-09-10 11:33:34 +01:00
docs Refactor KVStore config override explanation 2021-05-11 17:19:16 +01:00
filesystem CMake: Add option to enable greentea tests 2021-08-10 16:35:11 +01:00
kvstore CMake: Add option to enable greentea tests 2021-08-10 16:35:11 +01:00
platform CMake: Rename CMake targets 2020-11-06 17:25:22 +00:00
CMakeLists.txt Unit tests: Create mbed-headers-filesystem 2021-07-02 16:25:43 +01:00