Skip to content

Commit f785853

Browse files
committed
Fix rebase issues with TestCommandInteraction
1 parent 1bcccef commit f785853

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/tests/TestCommandInteraction.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ uint32_t TestCommandInteraction::GetAddResponseDataOverheadSizeForPath(const Con
635635
// AddResponseData. In order to have this accounted for in overhead calculation we set the length to be 256.
636636
uint32_t sizeOfForcedSizeBuffer = aBufferSizeHint == ForcedSizeBufferLengthHint::kSizeGreaterThan255 ? 256 : 0;
637637
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);
639639
uint32_t remainingSizeAfter = commandHandler.mInvokeResponseBuilder.GetWriter()->GetRemainingFreeLength();
640640
uint32_t delta = remainingSizeBefore - remainingSizeAfter - sizeOfForcedSizeBuffer;
641641

@@ -661,7 +661,7 @@ void TestCommandInteraction::FillCurrentInvokeResponseBuffer(CommandHandlerImpl
661661
EXPECT_GE(sizeToFill, 256u);
662662

663663
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);
665665
}
666666

667667
void TestCommandInteraction::ValidateCommandHandlerEncodeInvokeResponseMessage(bool aNeedStatusCode)
@@ -1193,7 +1193,7 @@ TEST_F_FROM_FIXTURE(TestCommandInteraction, TestCommandHandler_WithoutResponderC
11931193

11941194
uint32_t sizeToFill = 50; // This is an arbitrary number, we need to select a non-zero value.
11951195
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);
11971197

11981198
// Since calling AddResponseData is supposed to be a no-operation when there is no responder, it is
11991199
// 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
18681868

18691869
uint32_t sizeToFill = 50;
18701870
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);
18721872

18731873
remainingSize = commandHandler.mInvokeResponseBuilder.GetWriter()->GetRemainingFreeLength();
18741874
EXPECT_GT(remainingSize, sizeToLeave);

0 commit comments

Comments
 (0)