Skip to content

Commit

Permalink
Make HttpDataSourceTestEnv require API 19
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 454945333
  • Loading branch information
marcbaechinger committed Jun 15, 2022
1 parent d1fbef8 commit 4759472
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
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;
Expand All @@ -30,6 +31,7 @@
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 =
Expand Down

0 comments on commit 4759472

Please sign in to comment.