mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Make HttpDataSourceTestEnv require API 19
PiperOrigin-RevId: 454945333 (cherry picked from commit 7f89531c5b0c894946c2ca4bf54cfc66e3d4507b)
This commit is contained in:
parent
e3e92b2448
commit
676f766e39
@ -19,6 +19,7 @@ package androidx.media3.test.utils;
|
||||
import static androidx.media3.test.utils.WebServerDispatcher.getRequestPath;
|
||||
|
||||
import android.net.Uri;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import androidx.media3.common.util.UnstableApi;
|
||||
import androidx.media3.datasource.HttpDataSource;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
@ -31,6 +32,7 @@ import org.junit.Rule;
|
||||
import org.junit.rules.ExternalResource;
|
||||
|
||||
/** A JUnit {@link Rule} that creates test resources for {@link HttpDataSource} contract tests. */
|
||||
@RequiresApi(19)
|
||||
@UnstableApi
|
||||
public class HttpDataSourceTestEnv extends ExternalResource {
|
||||
private static int seed = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user