test: firmware updatePending: read(session)
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ie0fea7065d2ea93f6d679293452df8c315844b7a
diff --git a/test/firmware_state_updatepending_unittest.cpp b/test/firmware_state_updatepending_unittest.cpp
index 43f90e3..5fdc952 100644
--- a/test/firmware_state_updatepending_unittest.cpp
+++ b/test/firmware_state_updatepending_unittest.cpp
@@ -18,6 +18,7 @@
namespace
{
+using ::testing::IsEmpty;
using ::testing::Return;
using ::testing::UnorderedElementsAreArray;
@@ -163,6 +164,15 @@
}
/*
+ * read(session)
+ */
+TEST_F(FirmwareHandlerUpdatePendingTest, ReadFromUpdateBlobIdReturnsEmpty)
+{
+ getToUpdatePending();
+ EXPECT_THAT(handler->read(session, 0, 1), IsEmpty());
+}
+
+/*
* TODO: deleteBlob(blob)
*/
@@ -175,10 +185,6 @@
*/
/*
- * read(session)
- */
-
-/*
* commit(session)
*/