Skip to content

Commit

Permalink
[gtest] fix build error when building posix (openthread#11289)
Browse files Browse the repository at this point in the history
This commit fix build error when running "./script/cmake-build posix
-DOT_BUILD_GTEST=ON".
  • Loading branch information
zesonzhang authored Feb 26, 2025
1 parent 33a1f09 commit 0019f38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/gtest/fake_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,13 @@ bool otPlatBleSupportsMultiRadio(otInstance *) { return false; }

otError otPlatBleGapAdvSetData(otInstance *, uint8_t *, uint16_t) { return OT_ERROR_NONE; }

OT_TOOL_WEAK otError otPlatRadioAddCalibratedPower(otInstance *, uint8_t, int16_t, const uint8_t *, uint16_t)
{
return OT_ERROR_NONE;
}

OT_TOOL_WEAK otError otPlatRadioClearCalibratedPowers(otInstance *) { return OT_ERROR_NONE; }

void otPlatSettingsInit(otInstance *, const uint16_t *, uint16_t) {}

void otPlatSettingsDeinit(otInstance *) {}
Expand Down

0 comments on commit 0019f38

Please sign in to comment.