Commit d1e50de9 by bachinger Committed by Marc Baechinger

Make HttpDataSourceTestEnv require API 19

PiperOrigin-RevId: 454945333
(cherry picked from commit 47594724)
parent ff582ec2
...@@ -19,6 +19,7 @@ package com.google.android.exoplayer2.testutil; ...@@ -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; ...@@ -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 =
......
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