Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a973ab6 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Add CTS for BlobStoreManager.Session.openRead().

Bug: 152423769
Test: atest --test-mapping apex/blobstore
Change-Id: I517adb501bf6899dadd78c1b28c2135ae0b6f798
parent 09b95708
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
        }