Update for read+readRange of memory. am: fc0601696c am: 37cc82b163
am: 2e375f9e95

Change-Id: Id1c5bf6c5b02f365f4a4e4507dae6a66f5dfc8c4
diff --git a/test/hidl_test_client.cpp b/test/hidl_test_client.cpp
index 79a48b8..755009d 100644
--- a/test/hidl_test_client.cpp
+++ b/test/hidl_test_client.cpp
@@ -692,9 +692,12 @@
 
         mem_copy = mem;
         memoryTest->fillMemory(mem, kValue);
+
+        memory->read();
         for (size_t i = 0; i < mem.size(); i++) {
             EXPECT_EQ(kValue, data[i]);
         }
+        memory->commit();
     }));
 
     // Test the memory persists after the call
@@ -705,9 +708,11 @@
     uint8_t* data = static_cast<uint8_t*>(static_cast<void*>(memory->getPointer()));
     EXPECT_NE(data, nullptr);
 
+    memory->read();
     for (size_t i = 0; i < mem_copy.size(); i++) {
         EXPECT_EQ(kValue, data[i]);
     }
+    memory->commit();
 
     hidl_memory mem_move(std::move(mem_copy));
     ASSERT_EQ(nullptr, mem_copy.handle());
@@ -722,9 +727,11 @@
     data = static_cast<uint8_t*>(static_cast<void*>(memory->getPointer()));
     EXPECT_NE(data, nullptr);
 
+    memory->read();
     for (size_t i = 0; i < mem_move.size(); i++) {
         EXPECT_EQ(kValue, data[i]);
     }
+    memory->commit();
 }
 
 TEST_F(HidlTest, NullSharedMemory) {