Unit tests: Move hal 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 hal target_h stubs into hal/tests/UNITTESTS/doubles/.

Note: In Mbed OS, the standard include format requires each header to
be prefixed with its module name, for example "hal/gpio_api.h". This
requires headers to be organized in a module directory. But unit tests
stubs for hal correspond to what a real Mbed target would have
implemented (in a non-test scenario), and targets do not currently put
headers in hal/, so we similary put stub headers directly in
hal/tests/UNITTESTS/doubles/ instead of add a hal/ subdirectory there.
ls
1 parent c775e30 commit 825e3491b017d6ca87ce4074016dda26e9640001
@Lingkai Dong Lingkai Dong authored on 7 Jul 2021
Showing 11 changed files
View
UNITTESTS/target_h/PeripheralNames.h 100644 → 0
View
UNITTESTS/target_h/PinNames.h 100644 → 0
View
UNITTESTS/target_h/device.h 100644 → 0
View
UNITTESTS/target_h/gpio_object.h 100644 → 0
View
UNITTESTS/target_h/objects.h 100644 → 0
View
hal/tests/UNITTESTS/doubles/CMakeLists.txt
View
hal/tests/UNITTESTS/doubles/PeripheralNames.h 0 → 100644
View
hal/tests/UNITTESTS/doubles/PinNames.h 0 → 100644
View
hal/tests/UNITTESTS/doubles/device.h 0 → 100644
View
hal/tests/UNITTESTS/doubles/gpio_object.h 0 → 100644
View
hal/tests/UNITTESTS/doubles/objects.h 0 → 100644