diff --git a/src/messaging/tests/TestReliableMessageProtocol.cpp b/src/messaging/tests/TestReliableMessageProtocol.cpp index 4eaa0f6f5c9d77..234d32056ee928 100644 --- a/src/messaging/tests/TestReliableMessageProtocol.cpp +++ b/src/messaging/tests/TestReliableMessageProtocol.cpp @@ -128,14 +128,10 @@ class MockAppDelegate : public ExchangeDelegate class MockSessionEstablishmentExchangeDispatch : public Messaging::ApplicationExchangeDispatch { public: - bool IsReliableTransmissionAllowed() const override { return mRetainMessageOnSend; } - bool MessagePermitted(uint16_t protocol, uint8_t type) override { return true; } bool IsEncryptionRequired() const override { return mRequireEncryption; } - bool mRetainMessageOnSend = true; - bool mRequireEncryption = false; }; @@ -329,8 +325,6 @@ void CheckFailedMessageRetainOnSend(nlTestSuite * inSuite, void * inContext) 64_ms32, // CHIP_CONFIG_MRP_DEFAULT_ACTIVE_RETRY_INTERVAL }); - mockSender.mMessageDispatch.mRetainMessageOnSend = false; - // Let's drop the initial message gLoopback.mSentMessageCount = 0; gLoopback.mNumMessagesToDrop = 1;