test: firmware verificationStarted: read
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I79d0534ca13b2aa38afa93d528f851d765fc59b5
diff --git a/test/firmware_state_verificationstarted_unittest.cpp b/test/firmware_state_verificationstarted_unittest.cpp
index f491767..051e1dd 100644
--- a/test/firmware_state_verificationstarted_unittest.cpp
+++ b/test/firmware_state_verificationstarted_unittest.cpp
@@ -18,6 +18,7 @@
namespace
{
+using ::testing::IsEmpty;
using ::testing::Return;
/*
@@ -236,11 +237,18 @@
}
/*
+ * read(session)
+ */
+TEST_F(FirmwareHandlerVerificationStartedTest, ReadOfVerifyBlobReturnsEmpty)
+{
+ getToVerificationStarted(staticLayoutBlobId);
+ EXPECT_THAT(handler->read(session, 0, 32), IsEmpty());
+}
+
+/*
* close(session) - close while state if verificationStarted without calling
* stat first will abort.
*
- * read(session)
- *
* commit(session)
*/