mirror of
https://github.com/androidx/media.git
synced 2025-05-05 06:30:24 +08:00
ExtractorAsserts: add comments on method arguments
PiperOrigin-RevId: 463320634
This commit is contained in:
parent
02eb6e96c5
commit
dc65aaef8e
@ -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…
x
Reference in New Issue
Block a user