From 4aa3a0482d8bf1eb3b7f08c6127a953295b3c93f Mon Sep 17 00:00:00 2001 From: kimvde Date: Fri, 18 Sep 2020 10:54:46 +0100 Subject: [PATCH] Add unit tests for Transformer PiperOrigin-RevId: 332416139 --- .../google/android/exoplayer2/MetadataRetrieverTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/MetadataRetrieverTest.java b/library/core/src/test/java/com/google/android/exoplayer2/MetadataRetrieverTest.java index 09b546e89e..e666ec979d 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/MetadataRetrieverTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/MetadataRetrieverTest.java @@ -31,11 +31,9 @@ import com.google.common.util.concurrent.ListenableFuture; import java.util.concurrent.ExecutionException; import org.junit.Test; import org.junit.runner.RunWith; -import org.robolectric.annotation.LooperMode; /** Tests for {@link MetadataRetriever}. */ @RunWith(AndroidJUnit4.class) -@LooperMode(LooperMode.Mode.PAUSED) public class MetadataRetrieverTest { @Test @@ -100,7 +98,9 @@ public class MetadataRetrieverTest { ListenableFuture trackGroupsFuture) throws InterruptedException, ExecutionException { while (!trackGroupsFuture.isDone()) { - // Simulate advancing SystemClock so that delayed messages sent to handlers are received. + // TODO: update once [Internal: b/168084145] is implemented. + // Advance SystemClock so that messages that are sent with a delay to the MetadataRetriever + // looper are received. SystemClock.setCurrentTimeMillis(SystemClock.uptimeMillis() + 100); Thread.sleep(/* millis= */ 100); }