Make runUntilError take an ExoPlayer instance

PiperOrigin-RevId: 377267159
This commit is contained in:
aquilescanta 2021-06-03 13:20:32 +01:00 committed by bachinger
parent 016983ca9a
commit 4c8532bd74

View File

@ -193,7 +193,7 @@ public class TestPlayerRunHelper {
* @throws TimeoutException If the {@link RobolectricUtil#DEFAULT_TIMEOUT_MS default timeout} is
* exceeded.
*/
public static ExoPlaybackException runUntilError(Player player) throws TimeoutException {
public static ExoPlaybackException runUntilError(ExoPlayer player) throws TimeoutException {
verifyMainTestThread(player);
AtomicReference<ExoPlaybackException> receivedError = new AtomicReference<>();
Player.Listener listener =