Skip to content

Commit 7196248

Browse files
committed
Unit tests: Remove mbed.h stub from target_h
The header `mbed.h` is a convenient wrapper that pre-includes some platform headers, for use by user applications. Libraries and tests internal to Mbed OS should not use it, and they should explicitly include headers they need. So a stub is not needed.
1 parent 4011e2e commit 7196248

File tree

3 files changed

+1
-36
lines changed

3 files changed

+1
-36
lines changed

UNITTESTS/target_h/mbed.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

connectivity/netsocket/tests/UNITTESTS/doubles/NetworkStack_stub.cpp

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

1818
#include "netsocket/NetworkStack.h"
1919
#include "netsocket/nsapi_dns.h"
20-
#include "mbed.h"
2120
#include "stddef.h"
2221
#include <new>
2322

events/tests/UNITTESTS/equeue/test_equeue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
#include "gtest/gtest.h"
1818
#include "events/equeue.h"
19-
#include "mbed.h"
19+
#include "platform/Callback.h"
2020
#include <unistd.h>
2121
#include <pthread.h>
2222

0 commit comments

Comments
 (0)