Skip to content

Commit 7e03912

Browse files
committed
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.
1 parent b1645b2 commit 7e03912

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

storage/blockdevice/tests/UNITTESTS/doubles/ExhaustibleBlockDevice_stub.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717

1818
#include "ExhaustibleBlockDevice.h"
19-
#include "mbed.h"
2019
#include "mbed_critical.h"
2120

2221

storage/blockdevice/tests/UNITTESTS/doubles/ObservingBlockDevice_stub.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include "ObservingBlockDevice.h"
1919
#include "ReadOnlyBlockDevice.h"
20-
#include "mbed.h"
2120

2221

2322
ObservingBlockDevice::ObservingBlockDevice(BlockDevice *bd)

0 commit comments

Comments
 (0)