test: consolidate blob lists
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id0a8b64ccaacd787eef799d46d9523307fafb422
diff --git a/test/firmware_state_updatestarted_unittest.cpp b/test/firmware_state_updatestarted_unittest.cpp
index e8bd103..237e0e9 100644
--- a/test/firmware_state_updatestarted_unittest.cpp
+++ b/test/firmware_state_updatestarted_unittest.cpp
@@ -63,9 +63,10 @@
{
getToUpdateStarted();
- std::vector<std::string> expected = {updateBlobId, hashBlobId,
- activeImageBlobId, staticLayoutBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(
+ handler->getBlobIds(),
+ UnorderedElementsAreArray(
+ {updateBlobId, hashBlobId, activeImageBlobId, staticLayoutBlobId}));
}
/*
@@ -234,10 +235,8 @@
EXPECT_TRUE(handler->close(session));
- std::vector<std::string> expectedBlobs = {staticLayoutBlobId, hashBlobId};
-
EXPECT_THAT(handler->getBlobIds(),
- UnorderedElementsAreArray(expectedBlobs));
+ UnorderedElementsAreArray(startingBlobs));
expectedState(FirmwareBlobHandler::UpdateState::notYetStarted);
}