mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Add unit test
This commit is contained in:
parent
1994ba991c
commit
c84a3279d3
@ -48,6 +48,15 @@ public final class WavExtractorTest {
|
|||||||
simulationConfig);
|
simulationConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void sample_withOddMetadataChunkSize_extractsSameData() throws Exception {
|
||||||
|
ExtractorAsserts.assertBehavior(
|
||||||
|
WavExtractor::new,
|
||||||
|
"media/wav/sample_with_odd_metadata_chunk_size.wav",
|
||||||
|
new AssertionConfig.Builder().setDumpFilesPrefix("extractordumps/wav/sample.wav").build(),
|
||||||
|
simulationConfig);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void sample_imaAdpcm() throws Exception {
|
public void sample_imaAdpcm() throws Exception {
|
||||||
ExtractorAsserts.assertBehavior(
|
ExtractorAsserts.assertBehavior(
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user