test: firmware updateCompleted: read(session)
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I84af74e9801bf7a9d6a0fe75839a4f0424851ae3
diff --git a/test/firmware_state_updatecompleted_unittest.cpp b/test/firmware_state_updatecompleted_unittest.cpp
index 625e075..357458c 100644
--- a/test/firmware_state_updatecompleted_unittest.cpp
+++ b/test/firmware_state_updatecompleted_unittest.cpp
@@ -20,6 +20,8 @@
namespace
{
+using ::testing::IsEmpty;
+
/*
* There are the following calls (parameters may vary):
* canHandleBlob(blob)
@@ -176,12 +178,21 @@
}
/*
+ * read(session) - nothing to read here.
+ */
+TEST_F(FirmwareHandlerUpdateCompletedTest, ReadingFromUpdateBlobReturnsNothing)
+{
+ getToUpdateCompleted(ActionStatus::success);
+
+ EXPECT_THAT(handler->read(session, 0, 1), IsEmpty());
+}
+
+/*
* There are the following calls (parameters may vary):
* canHandleBlob(blob)
* getBlobIds
* deleteBlob(blob)
* close(session)
- * read(session)
*/
} // namespace