mirror of
https://github.com/samsonjs/media.git
synced 2026-04-13 12:35:48 +00:00
Make HttpDataSourceTestEnv require API 19
PiperOrigin-RevId: 454945333
(cherry picked from commit 4759472427)
This commit is contained in:
parent
ff582ec2a1
commit
d1e50de90f
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ package com.google.android.exoplayer2.testutil;
|
|||
import static com.google.android.exoplayer2.testutil.WebServerDispatcher.getRequestPath;
|
||||
|
||||
import android.net.Uri;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import com.google.android.exoplayer2.upstream.HttpDataSource;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import java.io.IOException;
|
||||
|
|
@ -30,6 +31,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)
|
||||
public class HttpDataSourceTestEnv extends ExternalResource {
|
||||
private static int seed = 0;
|
||||
private static final WebServerDispatcher.Resource RANGE_SUPPORTED =
|
||||
|
|
|
|||
Loading…
Reference in a new issue