From 8cb126ede8d280378752fdeea60aff5da9eac7e4 Mon Sep 17 00:00:00 2001 From: Li Cao Date: Tue, 29 Oct 2024 00:28:13 +0800 Subject: [PATCH] [test] add implementation of otPlatRadioSetChannelTargetPower in FakePlatform (#10865) --- tests/gtest/fake_platform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/gtest/fake_platform.cpp b/tests/gtest/fake_platform.cpp index 54908db4279..db915b10f25 100644 --- a/tests/gtest/fake_platform.cpp +++ b/tests/gtest/fake_platform.cpp @@ -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; }