Merge "Add CTS for BlobStoreManager.Session.openRead()." into rvc-dev am: 2089dc67c7 am: 3102f7102a am: 2f87660e1e am: 3d32715f1d
Change-Id: Ib45689a8373d72731058440d23c98f91ec5e041a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user