-
Notifications
You must be signed in to change notification settings - Fork 3k
Move events stubs to events dir #14823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@rajkan01, thank you for your changes. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
227ae1e
to
48153cc
Compare
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
48153cc
to
e8a3cac
Compare
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
2db0f7f
to
9334542
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the other unit tests stubs PRs, maybe we can also move mbed-headers-events from UNITTESTS/stubs/CMakeLists.txt into events/tests/UNITTESTS/doubles/CMakeLists.txt?
And files in UNITTESTS/fakes/events/ can be moved/combined into events/tests/UNITTESTS/doubles/ too - fakes are a type of doubles too.
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
9334542
to
71d00fa
Compare
fakes are a type of doubles but the fakes use the same file name and similar implementation as the original and that implementation differ based on the Device Under Test use case. Now, these fakes are used by ble. Better to keep the fakes as part of the DUT to avoid conflict and duplicate file issue |
fc5d5f0
to
80ca390
Compare
Move the events stub into the events component directory. so we can avoid duplicating the mbed-os source tree in a central UNITTESTS folder.
Move the header-only mbed-headers-events library the unit test stubs depend on into the events component directory. This makes the events stubs more self-contained and improves the composition of the library.
Move events stubs headers to the mbed-os/events/tests/UNITTESTS/double directory and update double CMake to include stub headers
Previously the events stub library depended on `mbed-headers`, which is a collection of all available headers in mbed-os. To make it easier to separate the library, only depend on the headers we're using.
Previously events fakes as part of UNITTESTS/fakes, this PR moves events fakes to events double directory to make events stubs to be self-contained.
80ca390
to
863ef79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
fixes #14791
Impact of changes
None.
Migration actions required
None
Documentation
To be updated
Pull request type
Test results
Reviewers