test: firmware notYetStarted: add missing comment
Add a comment describing the blob methods under test.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I307caf9565056042079893a92417b3aa667af2e7
diff --git a/test/firmware_state_notyetstarted_unittest.cpp b/test/firmware_state_notyetstarted_unittest.cpp
index bdfffcb..4d850aa 100644
--- a/test/firmware_state_notyetstarted_unittest.cpp
+++ b/test/firmware_state_notyetstarted_unittest.cpp
@@ -45,16 +45,18 @@
* returned by getBlobIds. It is tested in firmware_canhandle_unittest
*/
+/* canHandleBlob, getBlobIds */
TEST_F(FirmwareHandlerNotYetStartedTest, GetBlobListValidateListContents)
{
- /* TODO: Presently, /flash/verify is present from the beginning, however,
- * this is going to change to simplify handling of open().
+ /* 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));
+ /* Verify canHandleBlob is reading from the same list (basically) */
for (const auto& blob : expectedBlobs)
{
EXPECT_TRUE(handler->canHandleBlob(blob));