test: consolidate blob lists
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id0a8b64ccaacd787eef799d46d9523307fafb422
diff --git a/test/firmware_state_verificationcompleted_unittest.cpp b/test/firmware_state_verificationcompleted_unittest.cpp
index 0f02cf3..8754e15 100644
--- a/test/firmware_state_verificationcompleted_unittest.cpp
+++ b/test/firmware_state_verificationcompleted_unittest.cpp
@@ -91,9 +91,10 @@
TEST_F(FirmwareHandlerVerificationCompletedTest, GetBlobIdsReturnsExpectedList)
{
getToVerificationCompleted(ActionStatus::success);
- std::vector<std::string> expected = {verifyBlobId, hashBlobId,
- activeImageBlobId, staticLayoutBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(
+ handler->getBlobIds(),
+ UnorderedElementsAreArray(
+ {verifyBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId}));
}
/*
@@ -307,8 +308,8 @@
handler->close(session);
ASSERT_FALSE(handler->canHandleBlob(updateBlobId));
expectedState(FirmwareBlobHandler::UpdateState::notYetStarted);
- std::vector<std::string> expected = {staticLayoutBlobId, hashBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(handler->getBlobIds(),
+ UnorderedElementsAreArray(startingBlobs));
}
} // namespace