add check to ensure single track selection

This commit is contained in:
Brandon Davis 2018-10-11 12:57:23 -06:00
parent 57d90f30a8
commit 8a671c1cfe

View File

@ -1075,6 +1075,7 @@ public final class DefaultTrackSelectorTest {
periodId,
TIMELINE);
assertThat(result.selections.get(0).length()).isEqualTo(1);
assertThat(result.selections.get(0).getSelectedFormat()).isEqualTo(lowerBitrateFormat);
}
@ -1101,6 +1102,7 @@ public final class DefaultTrackSelectorTest {
periodId,
TIMELINE);
assertThat(result.selections.get(0).length()).isEqualTo(1);
assertThat(result.selections.get(0).getSelectedFormat()).isEqualTo(higherBitrateFormat);
}