Commit 302b5f2b by olly Committed by Oliver Woodman

Remove unnecessary use of Robolectric LEGACY looper mode

CacheDataSourceTest2 works fine in PAUSED mode as well.

PiperOrigin-RevId: 322150471
parent 7c995a3c
...@@ -18,7 +18,6 @@ package com.google.android.exoplayer2.upstream.cache; ...@@ -18,7 +18,6 @@ package com.google.android.exoplayer2.upstream.cache;
import static com.google.common.truth.Truth.assertThat; import static com.google.common.truth.Truth.assertThat;
import static java.util.Arrays.copyOf; import static java.util.Arrays.copyOf;
import static java.util.Arrays.copyOfRange; import static java.util.Arrays.copyOfRange;
import static org.robolectric.annotation.LooperMode.Mode.LEGACY;
import android.content.Context; import android.content.Context;
import android.net.Uri; import android.net.Uri;
...@@ -40,10 +39,8 @@ import java.io.IOException; ...@@ -40,10 +39,8 @@ import java.io.IOException;
import java.util.Random; import java.util.Random;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.LooperMode;
/** Additional tests for {@link CacheDataSource}. */ /** Additional tests for {@link CacheDataSource}. */
@LooperMode(LEGACY)
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
public final class CacheDataSourceTest2 { public final class CacheDataSourceTest2 {
......
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