CMake: unit-tests: Split platform headers out of mbed-stubs-headers
We have a central collection of "stub headers", which makes reasoning
about dependencies rather difficult, as it forces every stub library to
depend on all available stub headers. The standard approach would be for
each stub library to expose its public headers, and its dependents to
explicitly specify a dependency on the stub library containing the
headers it needs. This is a more modular design than creating a
header-only monolith library. Move the platform stub headers from this
central library into the mbed-stubs-platform library to increase
modularity.

mbed-stubs-connectivity now depends on the mbed-stubs-platform because
it requires some headers which were moved to mbed-stubs-platform.
ls
1 parent b73b38a commit 021baa68e714d8ab3bb07a2996046b5c59f82198
@Robert Walton Robert Walton authored on 11 Jun 2021
Showing 7 changed files
View
UNITTESTS/stubs/FileHandle_stub.h 100644 → 0
View
UNITTESTS/stubs/connectivity/CMakeLists.txt
View
UNITTESTS/stubs/mbed_poll_stub.h 100644 → 0
View
connectivity/cellular/tests/UNITTESTS/doubles/CMakeLists.txt
View
platform/tests/UNITTESTS/doubles/CMakeLists.txt
View
platform/tests/UNITTESTS/doubles/FileHandle_stub.h 0 → 100644
View
platform/tests/UNITTESTS/doubles/mbed_poll_stub.h 0 → 100644