Make HttpDataSourceTestEnv require API 19
PiperOrigin-RevId: 454945333 (cherry picked from commit 4759472427555d70c91af86e495cffbf0f0ac8f8)
This commit is contained in:
parent
ff582ec2a1
commit
d1e50de90f
@ -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…
x
Reference in New Issue
Block a user