mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Pull files from the device cache after a test concludes.
PiperOrigin-RevId: 412251020
This commit is contained in:
parent
965062857d
commit
2054b29089
1 changed files with 18 additions and 22 deletions
|
|
@ -83,7 +83,6 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
|
|||
|
||||
Uri uri = Uri.parse(uriString);
|
||||
File externalCacheFile = createExternalCacheFile(context, /* filePrefix= */ testId);
|
||||
try {
|
||||
InstrumentationRegistry.getInstrumentation()
|
||||
.runOnMainSync(
|
||||
() -> {
|
||||
|
|
@ -104,9 +103,6 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
|
|||
}
|
||||
long outputSizeBytes = externalCacheFile.length();
|
||||
return new TransformationResult(outputSizeBytes);
|
||||
} finally {
|
||||
externalCacheFile.delete();
|
||||
}
|
||||
}
|
||||
|
||||
private static File createExternalCacheFile(Context context, String filePrefix)
|
||||
|
|
|
|||
Loading…
Reference in a new issue