mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Make HttpDataSourceTestEnv require API 19
PiperOrigin-RevId: 454945333
This commit is contained in:
parent
d1fbef8106
commit
4759472427
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 static com.google.android.exoplayer2.testutil.WebServerDispatcher.getRequestPath;
|
||||||
|
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
import androidx.annotation.RequiresApi;
|
||||||
import com.google.android.exoplayer2.upstream.HttpDataSource;
|
import com.google.android.exoplayer2.upstream.HttpDataSource;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -30,6 +31,7 @@ import org.junit.Rule;
|
||||||
import org.junit.rules.ExternalResource;
|
import org.junit.rules.ExternalResource;
|
||||||
|
|
||||||
/** A JUnit {@link Rule} that creates test resources for {@link HttpDataSource} contract tests. */
|
/** A JUnit {@link Rule} that creates test resources for {@link HttpDataSource} contract tests. */
|
||||||
|
@RequiresApi(19)
|
||||||
public class HttpDataSourceTestEnv extends ExternalResource {
|
public class HttpDataSourceTestEnv extends ExternalResource {
|
||||||
private static int seed = 0;
|
private static int seed = 0;
|
||||||
private static final WebServerDispatcher.Resource RANGE_SUPPORTED =
|
private static final WebServerDispatcher.Resource RANGE_SUPPORTED =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue