@@ -635,7 +635,7 @@ uint32_t TestCommandInteraction::GetAddResponseDataOverheadSizeForPath(const Con
635
635
// AddResponseData. In order to have this accounted for in overhead calculation we set the length to be 256.
636
636
uint32_t sizeOfForcedSizeBuffer = aBufferSizeHint == ForcedSizeBufferLengthHint::kSizeGreaterThan255 ? 256 : 0 ;
637
637
ForcedSizeBuffer responseData (sizeOfForcedSizeBuffer);
638
- EXPECT_EQ (commandHandler.AddResponseData (aRequestCommandPath, responseData, CHIP_NO_ERROR);
638
+ EXPECT_EQ (commandHandler.AddResponseData (aRequestCommandPath, responseData. GetCommandId (), responseData) , CHIP_NO_ERROR);
639
639
uint32_t remainingSizeAfter = commandHandler.mInvokeResponseBuilder .GetWriter ()->GetRemainingFreeLength ();
640
640
uint32_t delta = remainingSizeBefore - remainingSizeAfter - sizeOfForcedSizeBuffer;
641
641
@@ -661,7 +661,7 @@ void TestCommandInteraction::FillCurrentInvokeResponseBuffer(CommandHandlerImpl
661
661
EXPECT_GE (sizeToFill, 256u );
662
662
663
663
ForcedSizeBuffer responseData (sizeToFill);
664
- EXPECT_EQ (apCommandHandler->AddResponseData (aRequestCommandPath, responseData), CHIP_NO_ERROR);
664
+ EXPECT_EQ (apCommandHandler->AddResponseData (aRequestCommandPath, responseData. GetCommandId (), responseData ), CHIP_NO_ERROR);
665
665
}
666
666
667
667
void TestCommandInteraction::ValidateCommandHandlerEncodeInvokeResponseMessage (bool aNeedStatusCode)
@@ -1193,7 +1193,7 @@ TEST_F_FROM_FIXTURE(TestCommandInteraction, TestCommandHandler_WithoutResponderC
1193
1193
1194
1194
uint32_t sizeToFill = 50 ; // This is an arbitrary number, we need to select a non-zero value.
1195
1195
ForcedSizeBuffer responseData (sizeToFill);
1196
- EXPECT_EQ (commandHandler.AddResponseData (requestCommandPath, responseData, CHIP_NO_ERROR);
1196
+ EXPECT_EQ (commandHandler.AddResponseData (requestCommandPath, responseData. GetCommandId (), responseData) , CHIP_NO_ERROR);
1197
1197
1198
1198
// Since calling AddResponseData is supposed to be a no-operation when there is no responder, it is
1199
1199
// hard to validate. Best way is to check that we are still in an Idle state afterwards
@@ -1868,7 +1868,7 @@ TEST_F_FROM_FIXTURE(TestCommandInteraction, TestCommandHandler_FillUpInvokeRespo
1868
1868
1869
1869
uint32_t sizeToFill = 50 ;
1870
1870
ForcedSizeBuffer responseData (sizeToFill);
1871
- EXPECT_EQ (commandHandler.AddResponseData (requestCommandPath2, responseData, CHIP_NO_ERROR);
1871
+ EXPECT_EQ (commandHandler.AddResponseData (requestCommandPath2, responseData. GetCommandId (), responseData) , CHIP_NO_ERROR);
1872
1872
1873
1873
remainingSize = commandHandler.mInvokeResponseBuilder .GetWriter ()->GetRemainingFreeLength ();
1874
1874
EXPECT_GT (remainingSize, sizeToLeave);
0 commit comments