mirror of
https://github.com/samsonjs/media.git
synced 2026-04-26 14:57:47 +00:00
ExtractorAsserts: add comments on method arguments
PiperOrigin-RevId: 463320634
This commit is contained in:
parent
02eb6e96c5
commit
dc65aaef8e
1 changed files with 81 additions and 9 deletions
|
|
@ -242,23 +242,95 @@ public final class ExtractorAsserts {
|
||||||
Context context = ApplicationProvider.getApplicationContext();
|
Context context = ApplicationProvider.getApplicationContext();
|
||||||
byte[] fileData = TestUtil.getByteArray(context, file);
|
byte[] fileData = TestUtil.getByteArray(context, file);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, false, false, false);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ false,
|
||||||
|
/* simulateUnknownLength= */ false,
|
||||||
|
/* simulatePartialReads= */ false);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, false, false, true);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ false,
|
||||||
|
/* simulateUnknownLength= */ false,
|
||||||
|
/* simulatePartialReads= */ true);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, false, true, false);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ false,
|
||||||
|
/* simulateUnknownLength= */ true,
|
||||||
|
/* simulatePartialReads= */ false);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, false, true, true);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ false,
|
||||||
|
/* simulateUnknownLength= */ true,
|
||||||
|
/* simulatePartialReads= */ true);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, true, false, false);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ true,
|
||||||
|
/* simulateUnknownLength= */ false,
|
||||||
|
/* simulatePartialReads= */ false);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, true, false, true);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ true,
|
||||||
|
/* simulateUnknownLength= */ false,
|
||||||
|
/* simulatePartialReads= */ true);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, true, true, false);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ true,
|
||||||
|
/* simulateUnknownLength= */ true,
|
||||||
|
/* simulatePartialReads= */ false);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, true, true, true, true);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ true,
|
||||||
|
/* simulateIOErrors= */ true,
|
||||||
|
/* simulateUnknownLength= */ true,
|
||||||
|
/* simulatePartialReads= */ true);
|
||||||
assertOutput(
|
assertOutput(
|
||||||
factory.create(), dumpFilesPrefix, fileData, context, false, false, false, false, false);
|
factory.create(),
|
||||||
|
dumpFilesPrefix,
|
||||||
|
fileData,
|
||||||
|
context,
|
||||||
|
/* deduplicateConsecutiveFormats= */ false,
|
||||||
|
/* sniffFirst= */ false,
|
||||||
|
/* simulateIOErrors= */ false,
|
||||||
|
/* simulateUnknownLength= */ false,
|
||||||
|
/* simulatePartialReads= */ false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue