forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] add missing platform APIs in FakePlatform (openthread#10844)
This commit adds some missing platform API implementation for FakePlatform. These are added so that FakePlatform can be used to write unit tests in ot-br-posix. The commit also guards the microSecondTimer code in `FakePlatform` with the marcro `OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE` because `otPlatAlarmMicroFired` is only defined in OT timer.cpp when `OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE` is true. This commit also removes some parameter names in the fake implementation to avoid unused warnings.
- Loading branch information
Showing
2 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters