From 4c8532bd74f3291e265e2657663a8af24713d774 Mon Sep 17 00:00:00 2001 From: aquilescanta Date: Thu, 3 Jun 2021 13:20:32 +0100 Subject: [PATCH] Make runUntilError take an ExoPlayer instance PiperOrigin-RevId: 377267159 --- .../android/exoplayer2/robolectric/TestPlayerRunHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.java b/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.java index 918d2330f9..9e0e891f8b 100644 --- a/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.java +++ b/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/TestPlayerRunHelper.java @@ -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 receivedError = new AtomicReference<>(); Player.Listener listener =