test: firmware verificationCompleted: write
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I13e6555c38c9377033f35b7259da21a23a359bf6
diff --git a/test/firmware_state_verificationcompleted_unittest.cpp b/test/firmware_state_verificationcompleted_unittest.cpp
index 2b069c5..bb7e8ca 100644
--- a/test/firmware_state_verificationcompleted_unittest.cpp
+++ b/test/firmware_state_verificationcompleted_unittest.cpp
@@ -182,8 +182,19 @@
/*
* writemeta(session) - write meta should fail.
+ */
+
+/*
* write(session) - write should fail.
*/
+TEST_F(FirmwareHandlerVerificationCompletedTest,
+ WriteToVerifyBlobReturnsFailure)
+{
+ getToVerificationCompleted(VerifyCheckResponses::success);
+
+ std::vector<std::uint8_t> bytes = {0x01, 0x02};
+ EXPECT_FALSE(handler->write(session, 0, bytes));
+}
/*
* read(session) - read returns empty.