Simplify disabling renderers in ExoPlayerTest

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=191901120
This commit is contained in:
olly 2018-04-06 09:54:02 -07:00 committed by Oliver Woodman
parent 03a36ce6ba
commit 75338530ef

View File

@ -726,13 +726,7 @@ public final class ExoPlayerTest {
new ActionSchedule.Builder("testChangeTrackSelection") new ActionSchedule.Builder("testChangeTrackSelection")
.pause() .pause()
.waitForPlaybackState(Player.STATE_READY) .waitForPlaybackState(Player.STATE_READY)
.executeRunnable( .disableRenderer(0)
new Runnable() {
@Override
public void run() {
trackSelector.setRendererDisabled(0, true);
}
})
.play() .play()
.build(); .build();
@ -773,13 +767,7 @@ public final class ExoPlayerTest {
new ActionSchedule.Builder("testReuseTrackSelection") new ActionSchedule.Builder("testReuseTrackSelection")
.pause() .pause()
.waitForPlaybackState(Player.STATE_READY) .waitForPlaybackState(Player.STATE_READY)
.executeRunnable( .disableRenderer(0)
new Runnable() {
@Override
public void run() {
trackSelector.setRendererDisabled(0, true);
}
})
.play() .play()
.build(); .build();