bmc: add utilty method to only add a blob id if not present
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I96f3335a1341bc29eeff398f200214f240861047
diff --git a/test/firmware_state_notyetstarted_unittest.cpp b/test/firmware_state_notyetstarted_unittest.cpp
index 0cc724d..a97a348 100644
--- a/test/firmware_state_notyetstarted_unittest.cpp
+++ b/test/firmware_state_notyetstarted_unittest.cpp
@@ -99,6 +99,8 @@
EXPECT_TRUE(handler->open(session, flags, staticLayoutBlobId));
EXPECT_EQ(FirmwareBlobHandler::UpdateState::uploadInProgress,
realHandler->getCurrentState());
+
+ EXPECT_TRUE(handler->canHandleBlob(activeImageBlobId));
}
TEST_F(FirmwareHandlerNotYetStartedTest, OpenHashFileVerifyStateChange)
@@ -110,6 +112,8 @@
EXPECT_TRUE(handler->open(session, flags, hashBlobId));
EXPECT_EQ(FirmwareBlobHandler::UpdateState::uploadInProgress,
realHandler->getCurrentState());
+
+ EXPECT_TRUE(handler->canHandleBlob(activeHashBlobId));
}
} // namespace