Unit tests: Move platform target_h stubs

Stubs previously in UNITTESTS/target_h/ have the same names as
regular Mbed OS headers, intending to override the latter directly.
We move platform target_h stubs into
platform/tests/UNITTESTS/doubles/platform/.

Note: nvic_wrapper.h is normally implemented and used by Mbed targets
as needed. But as unit tests do not have a real target, we treat it
as a stub for the platform.
pull/14929/head
Lingkai Dong 2021-07-08 10:24:24 +01:00
parent 7e3565b5f5
commit 4011e2ef85
19 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
add_library(mbed-headers-platform INTERFACE)
target_include_directories(mbed-headers-platform
INTERFACE
.
platform
platform/cxxsupport
${mbed-os_SOURCE_DIR}/platform/include
${mbed-os_SOURCE_DIR}/platform/include/platform
${mbed-os_SOURCE_DIR}/platform/randlib/include/mbed-client-randlib/