diff --git a/src/messaging/ReliableMessageMgr.cpp b/src/messaging/ReliableMessageMgr.cpp index 686d2bc60111b7..97457252632ef1 100644 --- a/src/messaging/ReliableMessageMgr.cpp +++ b/src/messaging/ReliableMessageMgr.cpp @@ -503,6 +503,7 @@ void ReliableMessageMgr::StopTimer() mSystemLayer->CancelTimer(Timeout, this); } +#if CHIP_CONFIG_TEST int ReliableMessageMgr::TestGetCountRetransTable() { int count = 0; @@ -516,6 +517,7 @@ int ReliableMessageMgr::TestGetCountRetransTable() return count; } +#endif // CHIP_CONFIG_TEST } // namespace Messaging } // namespace chip diff --git a/src/messaging/ReliableMessageMgr.h b/src/messaging/ReliableMessageMgr.h index 10480e6f0a7c42..29dde3dd2a1076 100644 --- a/src/messaging/ReliableMessageMgr.h +++ b/src/messaging/ReliableMessageMgr.h @@ -219,9 +219,11 @@ class ReliableMessageMgr */ void ExpireTicks(); +#if CHIP_CONFIG_TEST // Functions for testing int TestGetCountRetransTable(); void TestSetIntervalShift(uint16_t value) { mTimerIntervalShift = value; } +#endif // CHIP_CONFIG_TEST private: BitMapObjectPool & mContextPool;