test: firmware updateStarted: writeMeta(session)

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I111c00f403566bd6f72abc47c6850bedf1e4f8fa
diff --git a/test/firmware_state_updatestarted_unittest.cpp b/test/firmware_state_updatestarted_unittest.cpp
index 592665b..9ff4bbf 100644
--- a/test/firmware_state_updatestarted_unittest.cpp
+++ b/test/firmware_state_updatestarted_unittest.cpp
@@ -114,16 +114,13 @@
 }
 
 /*
- * stat(session)
- */
-
-/*
- * close(session)
- */
-
-/*
  * writemeta(session)
  */
+TEST_F(FirmwareHandlerUpdateStartedTest, WriteMetaToUpdateBlobReturnsFailure)
+{
+    getToUpdateStarted();
+    EXPECT_FALSE(handler->writeMeta(session, 0, {0x01}));
+}
 
 /*
  * write(session)
@@ -134,6 +131,14 @@
  */
 
 /*
+ * stat(session) - this will trigger a check, and the state may change.
+ */
+
+/*
+ * TODO: close(session) - this will abort.
+ */
+
+/*
  * commit(session)
  */