test: consolidate blob lists
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id0a8b64ccaacd787eef799d46d9523307fafb422
diff --git a/test/firmware_state_notyetstarted_unittest.cpp b/test/firmware_state_notyetstarted_unittest.cpp
index 80e0911..528e47f 100644
--- a/test/firmware_state_notyetstarted_unittest.cpp
+++ b/test/firmware_state_notyetstarted_unittest.cpp
@@ -59,13 +59,11 @@
/* By only checking that the hash and static blob ids are present to start
* with, we're also verifying others aren't.
*/
- std::vector<std::string> expectedBlobs = {staticLayoutBlobId, hashBlobId};
-
EXPECT_THAT(handler->getBlobIds(),
- UnorderedElementsAreArray(expectedBlobs));
+ UnorderedElementsAreArray(startingBlobs));
/* Verify canHandleBlob is reading from the same list (basically) */
- for (const auto& blob : expectedBlobs)
+ for (const auto& blob : startingBlobs)
{
EXPECT_TRUE(handler->canHandleBlob(blob));
}