Deduplicate AMR samples and use dump file prefix for unique names

AMR samples with identical data but different names, previously used to generate uniquely named dump files, have been deleted. Instead, `AssertionConfig` is now used to set the dump file prefix, ensuring files are generated with unique names.

PiperOrigin-RevId: 662883541
This commit is contained in:
rohks 2024-08-14 05:33:31 -07:00 committed by Copybara-Service
parent 9d62845c45
commit 74cfd2ad79
13 changed files with 8 additions and 2 deletions

View File

@ -59,7 +59,10 @@ public final class AmrExtractorParameterizedTest {
public void extractingNarrowBandSamples_withSeeking() throws Exception {
ExtractorAsserts.assertBehavior(
createAmrExtractorFactory(/* withSeeking= */ true),
"media/amr/sample_nb_cbr.amr",
"media/amr/sample_nb.amr",
new ExtractorAsserts.AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/amr/sample_nb_cbr_seeking_enabled.amr")
.build(),
simulationConfig);
}
@ -67,7 +70,10 @@ public final class AmrExtractorParameterizedTest {
public void extractingWideBandSamples_withSeeking() throws Exception {
ExtractorAsserts.assertBehavior(
createAmrExtractorFactory(/* withSeeking= */ true),
"media/amr/sample_wb_cbr.amr",
"media/amr/sample_wb.amr",
new ExtractorAsserts.AssertionConfig.Builder()
.setDumpFilesPrefix("extractordumps/amr/sample_wb_cbr_seeking_enabled.amr")
.build(),
simulationConfig);
}