test: firmware verificationPending: read
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ia928494328cee086dbb1b251c4d81cee6b563ecc
diff --git a/test/firmware_state_verificationpending_unittest.cpp b/test/firmware_state_verificationpending_unittest.cpp
index a99f8d9..e8a3bf2 100644
--- a/test/firmware_state_verificationpending_unittest.cpp
+++ b/test/firmware_state_verificationpending_unittest.cpp
@@ -19,6 +19,7 @@
namespace
{
+using ::testing::IsEmpty;
using ::testing::Return;
/*
@@ -247,6 +248,14 @@
/*
* read(session)
*/
+TEST_F(FirmwareHandlerVerificationPendingTest,
+ ReadAgainstVerifyBlobIdReturnsEmpty)
+{
+ getToVerificationPending(staticLayoutBlobId);
+
+ EXPECT_TRUE(handler->open(session, flags, verifyBlobId));
+ EXPECT_THAT(handler->read(session, 0, 32), IsEmpty());
+}
} // namespace
} // namespace ipmi_flash