Merge "Add CTS for BlobStoreManager.Session.openRead()." into rvc-dev am: 2089dc67c7

Change-Id: I2db4e524451a80ee0fc69c18baf5c7b94c0a3910
This commit is contained in:
TreeHugger Robot
2020-03-26 00:40:05 +00:00
committed by Automerger Merge Worker

View File

@@ -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);
}