mirror of
https://github.com/androidx/media.git
synced 2025-05-09 16:40:55 +08:00
Remove failing test on 2.9.5
This commit is contained in:
parent
c38cd1cca9
commit
4d843da6b0
@ -589,29 +589,6 @@ public final class ConcatenatingMediaSourceTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testCustomCallbackIsCalledAfterRelease() throws IOException {
|
|
||||||
DummyMainThread dummyMainThread = new DummyMainThread();
|
|
||||||
ConditionVariable callbackCalledCondition = new ConditionVariable();
|
|
||||||
try {
|
|
||||||
dummyMainThread.runOnMainThread(
|
|
||||||
() -> {
|
|
||||||
SourceInfoRefreshListener listener = mock(SourceInfoRefreshListener.class);
|
|
||||||
mediaSource.addMediaSources(Arrays.asList(createMediaSources(2)));
|
|
||||||
mediaSource.prepareSource(listener, /* mediaTransferListener= */ null);
|
|
||||||
mediaSource.moveMediaSource(
|
|
||||||
/* currentIndex= */ 0,
|
|
||||||
/* newIndex= */ 1,
|
|
||||||
new Handler(),
|
|
||||||
callbackCalledCondition::open);
|
|
||||||
mediaSource.releaseSource(listener);
|
|
||||||
});
|
|
||||||
assertThat(callbackCalledCondition.block(MediaSourceTestRunner.TIMEOUT_MS)).isTrue();
|
|
||||||
} finally {
|
|
||||||
dummyMainThread.release();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testPeriodCreationWithAds() throws IOException, InterruptedException {
|
public void testPeriodCreationWithAds() throws IOException, InterruptedException {
|
||||||
// Create concatenated media source with ad child source.
|
// Create concatenated media source with ad child source.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user