Commit db454973 by christosts Committed by kim-vde

Rename packages for HLS module

PiperOrigin-RevId: 382508442
parent 124a6aea
......@@ -18,9 +18,9 @@ instances and pass them directly to the player. For advanced download use cases,
## Links ##
* [Developer Guide][].
* [Javadoc][]: Classes matching `com.google.android.exoplayer2.source.hls.*`
belong to this module.
* [Developer Guide][].
* [Javadoc][]: Classes matching `com.google.android.exoplayer2.source.hls.*` belong to
this module.
[Developer Guide]: https://exoplayer.dev/hls.html
[Javadoc]: https://exoplayer.dev/doc/reference/index.html
......@@ -29,9 +29,11 @@ import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link Aes128DataSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class Aes128DataSourceTest {
@Test
......
......@@ -40,9 +40,11 @@ import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultExtractorsFactory}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultHlsExtractorFactoryTest {
private static final Uri URI_WITH_JPEG_EXTENSION = Uri.parse("http://path/filename.jpg");
......
......@@ -27,9 +27,11 @@ import com.google.android.exoplayer2.source.MediaSource;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for creating HLS media sources with the {@link DefaultMediaSourceFactory}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultMediaSourceFactoryTest {
private static final String URI_MEDIA = "http://exoplayer.dev/video";
......
......@@ -23,9 +23,11 @@ import android.net.Uri;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link FullSegmentEncryptionKeyCache}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class FullSegmentEncryptionKeyCacheTest {
private final Uri firstUri = Uri.parse("https://www.google.com");
......
......@@ -44,9 +44,11 @@ import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsMediaPeriod}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class HlsMediaPeriodTest {
@Test
......
......@@ -32,9 +32,11 @@ import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsChunkSource.HlsMediaPlaylistSegmentIterator}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaPlaylistSegmentIteratorTest {
public static final String LOW_LATENCY_SEGMENTS_AND_PARTS =
......
......@@ -43,9 +43,11 @@ import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicReference;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsMediaSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaSourceTest {
// Tests backwards compatibility
......
......@@ -22,9 +22,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.source.hls.HlsTrackMetadataEntry.VariantInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsTrackMetadataEntry}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsTrackMetadataEntryTest {
@Test
......
......@@ -29,9 +29,11 @@ import java.io.EOFException;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link WebvttExtractor}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class WebvttExtractorTest {
@Test
......
......@@ -24,9 +24,11 @@ import com.google.android.exoplayer2.testutil.FakeDataSource;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test to verify creation of a HLS {@link DownloadHelper}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DownloadHelperTest {
@Test
......
......@@ -44,7 +44,7 @@ import com.google.android.exoplayer2.offline.Downloader;
import com.google.android.exoplayer2.offline.DownloaderFactory;
import com.google.android.exoplayer2.offline.StreamKey;
import com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist;
import com.google.android.exoplayer2.testutil.CacheAsserts.RequestSet;
import com.google.android.exoplayer2.testutil.CacheAsserts;
import com.google.android.exoplayer2.testutil.FakeDataSet;
import com.google.android.exoplayer2.testutil.FakeDataSource;
import com.google.android.exoplayer2.testutil.TestUtil;
......@@ -64,9 +64,11 @@ import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link HlsDownloader}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsDownloaderTest {
private SimpleCache cache;
......@@ -136,7 +138,7 @@ public class HlsDownloaderTest {
assertCachedData(
cache,
new RequestSet(fakeDataSet)
new CacheAsserts.RequestSet(fakeDataSet)
.subset(
MASTER_PLAYLIST_URI,
MEDIA_PLAYLIST_1_URI,
......@@ -194,7 +196,7 @@ public class HlsDownloaderTest {
assertCachedData(
cache,
new RequestSet(fakeDataSet)
new CacheAsserts.RequestSet(fakeDataSet)
.subset(
MEDIA_PLAYLIST_1_URI,
MEDIA_PLAYLIST_1_DIR + "fileSequence0.ts",
......
......@@ -39,9 +39,11 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultHlsPlaylistTracker}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultHlsPlaylistTrackerTest {
private static final String SAMPLE_M3U8_LIVE_MASTER = "media/m3u8/live_low_latency_master";
......
......@@ -35,9 +35,11 @@ import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsMasterPlaylist}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMasterPlaylistParserTest {
private static final String PLAYLIST_URI = "https://example.com/test.m3u8";
......
......@@ -36,9 +36,11 @@ import java.util.HashMap;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsMediaPlaylistParserTest}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaPlaylistParserTest {
@Test
......
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