Skip to content

Commit

Permalink
[test] add implementation of otPlatRadioSetChannelTargetPower in Fake…
Browse files Browse the repository at this point in the history
…Platform (openthread#10865)
  • Loading branch information
Irving-cl authored Oct 28, 2024
1 parent 7886083 commit 8cb126e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/gtest/fake_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ otError otPlatRadioConfigureEnhAckProbing(otInstance *, otLinkMetrics, otShortAd
return OT_ERROR_NOT_IMPLEMENTED;
}

// Add WEAK here because in some unit test there is an implementation for `otPlatRadioSetChannelTargetPower`
OT_TOOL_WEAK otError otPlatRadioSetChannelTargetPower(otInstance *, uint8_t, int16_t) { return OT_ERROR_NONE; }

void otPlatReset(otInstance *) {}

otPlatResetReason otPlatGetResetReason(otInstance *) { return OT_PLAT_RESET_REASON_POWER_ON; }
Expand Down

0 comments on commit 8cb126e

Please sign in to comment.