Commit 75338530 by olly Committed by Oliver Woodman

Simplify disabling renderers in ExoPlayerTest

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=191901120
parent 03a36ce6
...@@ -726,13 +726,7 @@ public final class ExoPlayerTest { ...@@ -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 { ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment