test: firmware updateCompleted: write(session)
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I4338c340867a296ed9a3890ce2418d7d0e2d0002
diff --git a/test/firmware_state_updatecompleted_unittest.cpp b/test/firmware_state_updatecompleted_unittest.cpp
index 776e4c5..98b9a56 100644
--- a/test/firmware_state_updatecompleted_unittest.cpp
+++ b/test/firmware_state_updatecompleted_unittest.cpp
@@ -145,12 +145,21 @@
}
/*
+ * write(session)
+ */
+TEST_F(FirmwareHandlerUpdateCompletedTest, WriteToUpdateBlobReturnsFailure)
+{
+ getToUpdateCompleted(ActionStatus::success);
+
+ EXPECT_FALSE(handler->write(session, 0, {0x01}));
+}
+
+/*
* There are the following calls (parameters may vary):
* canHandleBlob(blob)
* getBlobIds
* deleteBlob(blob)
* close(session)
- * write(session)
* read(session)
* commit(session)
*/