diff options
author | Sudheer Shanka <sudheersai@google.com> | 2020-03-25 12:49:30 -0700 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2020-03-25 12:49:30 -0700 |
commit | 2a973ab626a175ac983806dd7a4a0624e072b4a9 (patch) | |
tree | 3e8e47fd2a86c3b9d28aecf988698bc766d48be5 | |
parent | 09b95708628b34df20b219c15c1e60f4bcca481b (diff) |
Add CTS for BlobStoreManager.Session.openRead().
Bug: 152423769
Test: atest --test-mapping apex/blobstore
Change-Id: I517adb501bf6899dadd78c1b28c2135ae0b6f798
-rw-r--r-- | tests/BlobStoreTestUtils/src/com/android/utils/blob/DummyBlobData.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/BlobStoreTestUtils/src/com/android/utils/blob/DummyBlobData.java b/tests/BlobStoreTestUtils/src/com/android/utils/blob/DummyBlobData.java index 42908bef6178..35a6c26ec73f 100644 --- a/tests/BlobStoreTestUtils/src/com/android/utils/blob/DummyBlobData.java +++ b/tests/BlobStoreTestUtils/src/com/android/utils/blob/DummyBlobData.java @@ -167,7 +167,7 @@ public class DummyBlobData { final byte[] actualBytes = new byte[lengthBytes]; try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream( - session.openWrite(0L, 0L))) { + session.openRead())) { read(in, actualBytes, offsetBytes, lengthBytes); } @@ -190,7 +190,7 @@ public class DummyBlobData { long offsetBytes, long lengthBytes) throws Exception { final byte[] actualDigest; try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream( - session.openWrite(0L, 0L))) { + session.openRead())) { actualDigest = createSha256Digest(in, offsetBytes, lengthBytes); } |