test: consolidate blob lists
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id0a8b64ccaacd787eef799d46d9523307fafb422
diff --git a/test/firmware_state_updatecompleted_unittest.cpp b/test/firmware_state_updatecompleted_unittest.cpp
index 923b6d0..9e43edb 100644
--- a/test/firmware_state_updatecompleted_unittest.cpp
+++ b/test/firmware_state_updatecompleted_unittest.cpp
@@ -196,9 +196,10 @@
{
getToUpdateCompleted(ActionStatus::success);
- std::vector<std::string> expected = {updateBlobId, hashBlobId,
- activeImageBlobId, staticLayoutBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(
+ handler->getBlobIds(),
+ UnorderedElementsAreArray(
+ {updateBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId}));
}
/*
@@ -215,8 +216,8 @@
handler->close(session);
expectedState(FirmwareBlobHandler::UpdateState::notYetStarted);
- std::vector<std::string> expected = {hashBlobId, staticLayoutBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(handler->getBlobIds(),
+ UnorderedElementsAreArray(startingBlobs));
}
TEST_F(FirmwareHandlerUpdateCompletedTest,
@@ -227,8 +228,8 @@
handler->close(session);
expectedState(FirmwareBlobHandler::UpdateState::notYetStarted);
- std::vector<std::string> expected = {hashBlobId, staticLayoutBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(handler->getBlobIds(),
+ UnorderedElementsAreArray(startingBlobs));
}
/*