mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
ExtractorAsserts: add comments on method arguments
PiperOrigin-RevId: 463320634
This commit is contained in:
parent
ac8d80a044
commit
3aa5f259a5
1 changed files with 81 additions and 9 deletions
|
|
@ -244,23 +244,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