test: firmware verificationStarted: write
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I700c6754b491d1cbaa153bfb8241d6562b6f59fe
diff --git a/test/firmware_state_verificationstarted_unittest.cpp b/test/firmware_state_verificationstarted_unittest.cpp
index 33edcc7..84f2398 100644
--- a/test/firmware_state_verificationstarted_unittest.cpp
+++ b/test/firmware_state_verificationstarted_unittest.cpp
@@ -212,6 +212,14 @@
/*
* write(session)
*/
+TEST_F(FirmwareHandlerVerificationStartedTest,
+ WriteOnVerifySessionReturnsFailure)
+{
+ getToVerificationStarted(staticLayoutBlobId);
+
+ std::vector<std::uint8_t> bytes = {0x01, 0x02};
+ EXPECT_FALSE(handler->write(session, 0, bytes));
+}
/*
* open(blob) - there is nothing you can open, this state has an open file.