Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
db454973
authored
Jul 01, 2021
by
christosts
Committed by
kim-vde
Jul 09, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Rename packages for HLS module
PiperOrigin-RevId: 382508442
parent
124a6aea
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
34 additions
and
6 deletions
library/hls/README.md
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/Aes128DataSourceTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/DefaultHlsExtractorFactoryTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/DefaultMediaSourceFactoryTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/FullSegmentEncryptionKeyCacheTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaPeriodTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaPlaylistSegmentIteratorTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaSourceTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsTrackMetadataEntryTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/WebvttExtractorTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/offline/DownloadHelperTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/offline/HlsDownloaderTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/DefaultHlsPlaylistTrackerTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylistParserTest.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylistParserTest.java
library/hls/README.md
View file @
db454973
...
...
@@ -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
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/Aes128DataSourceTest.java
View file @
db454973
...
...
@@ -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
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/DefaultHlsExtractorFactoryTest.java
View file @
db454973
...
...
@@ -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"
);
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/DefaultMediaSourceFactoryTest.java
View file @
db454973
...
...
@@ -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"
;
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/FullSegmentEncryptionKeyCacheTest.java
View file @
db454973
...
...
@@ -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"
);
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaPeriodTest.java
View file @
db454973
...
...
@@ -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
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaPlaylistSegmentIteratorTest.java
View file @
db454973
...
...
@@ -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
=
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsMediaSourceTest.java
View file @
db454973
...
...
@@ -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
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/HlsTrackMetadataEntryTest.java
View file @
db454973
...
...
@@ -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
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/WebvttExtractorTest.java
View file @
db454973
...
...
@@ -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
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/offline/DownloadHelperTest.java
View file @
db454973
...
...
@@ -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
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/offline/HlsDownloaderTest.java
View file @
db454973
...
...
@@ -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"
,
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/DefaultHlsPlaylistTrackerTest.java
View file @
db454973
...
...
@@ -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"
;
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/HlsMasterPlaylistParserTest.java
View file @
db454973
...
...
@@ -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"
;
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylistParserTest.java
View file @
db454973
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment