Unit tests: Do not include mbed.h in storage stubs
The header `mbed.h` pulls in headers from a number of Mbed OS
components that are not necessarily used. It was intended for user
applications only, and libraries and unit tests should explicitly
include library headers it uses to limit dependencies.

This change avoids having to link unnecessary libraries in storage
unit tests' CMake definitions.
ls
1 parent b1645b2 commit 7e039125873b64579d7dab798c12fa2fcb02eb24
@Lingkai Dong Lingkai Dong authored on 2 Jul 2021
Showing 2 changed files
View
storage/blockdevice/tests/UNITTESTS/doubles/ExhaustibleBlockDevice_stub.cpp
View
storage/blockdevice/tests/UNITTESTS/doubles/ObservingBlockDevice_stub.cpp