test: firmware updatePending: writeMeta(session)

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I127a34c716af550a871dbc5e933685806c0b7be8
diff --git a/test/firmware_state_updatepending_unittest.cpp b/test/firmware_state_updatepending_unittest.cpp
index 0dcd2be..eb0a54e 100644
--- a/test/firmware_state_updatepending_unittest.cpp
+++ b/test/firmware_state_updatepending_unittest.cpp
@@ -141,6 +141,17 @@
 }
 
 /*
+ * writemeta(session) - this will return failure.
+ */
+TEST_F(FirmwareHandlerUpdatePendingTest, WriteMetaToUpdateBlobReturnsFailure)
+{
+    getToUpdatePending();
+
+    EXPECT_TRUE(handler->open(session, flags, updateBlobId));
+    EXPECT_FALSE(handler->writeMeta(session, 0, {0x01}));
+}
+
+/*
  * TODO: deleteBlob(blob)
  */
 
@@ -153,10 +164,6 @@
  */
 
 /*
- * writemeta(session)
- */
-
-/*
  * write(session)
  */