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
fc47c2fe
authored
Jun 02, 2021
by
kimvde
Committed by
bachinger
Jun 02, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add missing @DoNotInstrument annotations
PiperOrigin-RevId: 377006047
parent
1dddb8eb
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
48 additions
and
0 deletions
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/CastPlayerTest.java
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/CastTimelineTrackerTest.java
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/CastTrackSelectionTest.java
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/DefaultMediaItemConverterTest.java
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/DefaultMediaSourceFactoryTest.java
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/SsMediaPeriodTest.java
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSourceTest.java
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParserTest.java
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestTest.java
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/offline/DownloadHelperTest.java
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloaderTest.java
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/SefSlowMotionVideoSampleTransformerTest.java
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/SegmentSpeedProviderTest.java
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/TransformerBuilderTest.java
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/TransformerTest.java
robolectricutils/src/test/java/com/google/android/exoplayer2/robolectric/RobolectricUtilTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/AdditionalFailureInfoTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeAdaptiveDataSetTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeClockTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeDataSetTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeDataSourceContractTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeDataSourceTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/WebServerDispatcherTest.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/truth/SpannedSubjectTest.java
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/CastPlayerTest.java
View file @
fc47c2fe
...
@@ -84,9 +84,11 @@ import org.mockito.Captor;
...
@@ -84,9 +84,11 @@ import org.mockito.Captor;
import
org.mockito.InOrder
;
import
org.mockito.InOrder
;
import
org.mockito.Mock
;
import
org.mockito.Mock
;
import
org.mockito.Mockito
;
import
org.mockito.Mockito
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Tests for {@link CastPlayer}. */
/** Tests for {@link CastPlayer}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
CastPlayerTest
{
public
class
CastPlayerTest
{
private
CastPlayer
castPlayer
;
private
CastPlayer
castPlayer
;
...
...
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/CastTimelineTrackerTest.java
View file @
fc47c2fe
...
@@ -29,9 +29,11 @@ import java.util.Collections;
...
@@ -29,9 +29,11 @@ import java.util.Collections;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.mockito.Mockito
;
import
org.mockito.Mockito
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Tests for {@link CastTimelineTracker}. */
/** Tests for {@link CastTimelineTracker}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
CastTimelineTrackerTest
{
public
class
CastTimelineTrackerTest
{
private
static
final
long
DURATION_2_MS
=
2000
;
private
static
final
long
DURATION_2_MS
=
2000
;
...
...
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/CastTrackSelectionTest.java
View file @
fc47c2fe
...
@@ -23,9 +23,11 @@ import com.google.android.exoplayer2.Format;
...
@@ -23,9 +23,11 @@ import com.google.android.exoplayer2.Format;
import
com.google.android.exoplayer2.source.TrackGroup
;
import
com.google.android.exoplayer2.source.TrackGroup
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Test for {@link CastTrackSelection}. */
/** Test for {@link CastTrackSelection}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
CastTrackSelectionTest
{
public
class
CastTrackSelectionTest
{
private
static
final
TrackGroup
TRACK_GROUP
=
private
static
final
TrackGroup
TRACK_GROUP
=
...
...
extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/DefaultMediaItemConverterTest.java
View file @
fc47c2fe
...
@@ -27,9 +27,11 @@ import com.google.android.gms.cast.MediaQueueItem;
...
@@ -27,9 +27,11 @@ import com.google.android.gms.cast.MediaQueueItem;
import
java.util.Collections
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Test for {@link DefaultMediaItemConverter}. */
/** Test for {@link DefaultMediaItemConverter}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DefaultMediaItemConverterTest
{
public
class
DefaultMediaItemConverterTest
{
@Test
@Test
...
...
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/DefaultMediaSourceFactoryTest.java
View file @
fc47c2fe
...
@@ -27,11 +27,13 @@ import com.google.android.exoplayer2.source.MediaSource;
...
@@ -27,11 +27,13 @@ import com.google.android.exoplayer2.source.MediaSource;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/**
/**
* Unit test for creating SmoothStreaming media sources with the {@link DefaultMediaSourceFactory}.
* Unit test for creating SmoothStreaming media sources with the {@link DefaultMediaSourceFactory}.
*/
*/
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DefaultMediaSourceFactoryTest
{
public
class
DefaultMediaSourceFactoryTest
{
private
static
final
String
URI_MEDIA
=
"http://exoplayer.dev/video"
;
private
static
final
String
URI_MEDIA
=
"http://exoplayer.dev/video"
;
...
...
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/SsMediaPeriodTest.java
View file @
fc47c2fe
...
@@ -37,9 +37,11 @@ import com.google.android.exoplayer2.upstream.TransferListener;
...
@@ -37,9 +37,11 @@ import com.google.android.exoplayer2.upstream.TransferListener;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link SsMediaPeriod}. */
/** Unit tests for {@link SsMediaPeriod}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SsMediaPeriodTest
{
public
class
SsMediaPeriodTest
{
@Test
@Test
...
...
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/SsMediaSourceTest.java
View file @
fc47c2fe
...
@@ -25,9 +25,11 @@ import com.google.android.exoplayer2.upstream.FileDataSource;
...
@@ -25,9 +25,11 @@ import com.google.android.exoplayer2.upstream.FileDataSource;
import
java.util.Collections
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link SsMediaSource}. */
/** Unit tests for {@link SsMediaSource}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SsMediaSourceTest
{
public
class
SsMediaSourceTest
{
// Tests backwards compatibility
// Tests backwards compatibility
...
...
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParserTest.java
View file @
fc47c2fe
...
@@ -22,9 +22,11 @@ import com.google.android.exoplayer2.testutil.TestUtil;
...
@@ -22,9 +22,11 @@ import com.google.android.exoplayer2.testutil.TestUtil;
import
java.io.IOException
;
import
java.io.IOException
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link SsManifestParser}. */
/** Unit tests for {@link SsManifestParser}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
SsManifestParserTest
{
public
final
class
SsManifestParserTest
{
private
static
final
String
SAMPLE_ISMC_1
=
"media/smooth-streaming/sample_ismc_1"
;
private
static
final
String
SAMPLE_ISMC_1
=
"media/smooth-streaming/sample_ismc_1"
;
...
...
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestTest.java
View file @
fc47c2fe
...
@@ -31,9 +31,11 @@ import java.util.List;
...
@@ -31,9 +31,11 @@ import java.util.List;
import
java.util.Random
;
import
java.util.Random
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link SsManifest}. */
/** Unit tests for {@link SsManifest}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SsManifestTest
{
public
class
SsManifestTest
{
@Test
@Test
...
...
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/offline/DownloadHelperTest.java
View file @
fc47c2fe
...
@@ -24,9 +24,11 @@ import com.google.android.exoplayer2.testutil.FakeDataSource;
...
@@ -24,9 +24,11 @@ import com.google.android.exoplayer2.testutil.FakeDataSource;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test to verify creation of a SmoothStreaming {@link DownloadHelper}. */
/** Unit test to verify creation of a SmoothStreaming {@link DownloadHelper}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
DownloadHelperTest
{
public
final
class
DownloadHelperTest
{
@Test
@Test
...
...
library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloaderTest.java
View file @
fc47c2fe
...
@@ -32,9 +32,11 @@ import java.util.Collections;
...
@@ -32,9 +32,11 @@ import java.util.Collections;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.mockito.Mockito
;
import
org.mockito.Mockito
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link SsDownloader}. */
/** Unit tests for {@link SsDownloader}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
SsDownloaderTest
{
public
final
class
SsDownloaderTest
{
@Test
@Test
...
...
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/SefSlowMotionVideoSampleTransformerTest.java
View file @
fc47c2fe
...
@@ -31,9 +31,11 @@ import java.util.Arrays;
...
@@ -31,9 +31,11 @@ import java.util.Arrays;
import
java.util.List
;
import
java.util.List
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link SefSlowMotionVideoSampleTransformer}. */
/** Unit tests for {@link SefSlowMotionVideoSampleTransformer}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SefSlowMotionVideoSampleTransformerTest
{
public
class
SefSlowMotionVideoSampleTransformerTest
{
/**
/**
...
...
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/SegmentSpeedProviderTest.java
View file @
fc47c2fe
...
@@ -29,9 +29,11 @@ import com.google.common.collect.ImmutableList;
...
@@ -29,9 +29,11 @@ import com.google.common.collect.ImmutableList;
import
java.util.List
;
import
java.util.List
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link SegmentSpeedProvider}. */
/** Unit tests for {@link SegmentSpeedProvider}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SegmentSpeedProviderTest
{
public
class
SegmentSpeedProviderTest
{
private
static
final
SmtaMetadataEntry
SMTA_SPEED_8
=
private
static
final
SmtaMetadataEntry
SMTA_SPEED_8
=
...
...
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/TransformerBuilderTest.java
View file @
fc47c2fe
...
@@ -24,9 +24,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
...
@@ -24,9 +24,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
com.google.android.exoplayer2.util.MimeTypes
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link Transformer.Builder}. */
/** Unit test for {@link Transformer.Builder}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
TransformerBuilderTest
{
public
class
TransformerBuilderTest
{
@Test
@Test
...
...
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/TransformerTest.java
View file @
fc47c2fe
...
@@ -51,10 +51,12 @@ import org.junit.After;
...
@@ -51,10 +51,12 @@ import org.junit.After;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
import
org.robolectric.shadows.ShadowMediaCodec
;
import
org.robolectric.shadows.ShadowMediaCodec
;
/** Unit test for {@link Transformer}. */
/** Unit test for {@link Transformer}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
TransformerTest
{
public
final
class
TransformerTest
{
private
static
final
String
URI_PREFIX
=
"asset:///media/"
;
private
static
final
String
URI_PREFIX
=
"asset:///media/"
;
...
...
robolectricutils/src/test/java/com/google/android/exoplayer2/robolectric/RobolectricUtilTest.java
View file @
fc47c2fe
...
@@ -30,9 +30,11 @@ import com.google.common.base.Supplier;
...
@@ -30,9 +30,11 @@ import com.google.common.base.Supplier;
import
java.util.concurrent.TimeoutException
;
import
java.util.concurrent.TimeoutException
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link RobolectricUtil}. */
/** Unit test for {@link RobolectricUtil}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
RobolectricUtilTest
{
public
class
RobolectricUtilTest
{
@Test
@Test
public
void
createRobolectricConditionVariable_blockWithTimeout_timesOut
()
public
void
createRobolectricConditionVariable_blockWithTimeout_timesOut
()
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/AdditionalFailureInfoTest.java
View file @
fc47c2fe
...
@@ -29,9 +29,11 @@ import org.junit.rules.TestRule;
...
@@ -29,9 +29,11 @@ import org.junit.rules.TestRule;
import
org.junit.runner.Description
;
import
org.junit.runner.Description
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.model.Statement
;
import
org.junit.runners.model.Statement
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Tests for {@link AdditionalFailureInfo}. */
/** Tests for {@link AdditionalFailureInfo}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
AdditionalFailureInfoTest
{
public
final
class
AdditionalFailureInfoTest
{
private
final
ExpectedException
expectedException
=
new
ExpectedException
();
private
final
ExpectedException
expectedException
=
new
ExpectedException
();
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeAdaptiveDataSetTest.java
View file @
fc47c2fe
...
@@ -28,9 +28,11 @@ import java.util.List;
...
@@ -28,9 +28,11 @@ import java.util.List;
import
java.util.Random
;
import
java.util.Random
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link FakeAdaptiveDataSet}. */
/** Unit test for {@link FakeAdaptiveDataSet}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
FakeAdaptiveDataSetTest
{
public
final
class
FakeAdaptiveDataSetTest
{
private
static
final
Format
[]
TEST_FORMATS
=
{
private
static
final
Format
[]
TEST_FORMATS
=
{
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeClockTest.java
View file @
fc47c2fe
...
@@ -32,10 +32,12 @@ import java.util.ArrayList;
...
@@ -32,10 +32,12 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
import
org.robolectric.shadows.ShadowLooper
;
import
org.robolectric.shadows.ShadowLooper
;
/** Unit test for {@link FakeClock}. */
/** Unit test for {@link FakeClock}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
FakeClockTest
{
public
final
class
FakeClockTest
{
@Test
@Test
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeDataSetTest.java
View file @
fc47c2fe
...
@@ -24,9 +24,11 @@ import java.io.IOException;
...
@@ -24,9 +24,11 @@ import java.io.IOException;
import
java.util.List
;
import
java.util.List
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link FakeDataSet} */
/** Unit test for {@link FakeDataSet} */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
FakeDataSetTest
{
public
final
class
FakeDataSetTest
{
@Test
@Test
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeDataSourceContractTest.java
View file @
fc47c2fe
...
@@ -21,9 +21,11 @@ import com.google.android.exoplayer2.upstream.DataSource;
...
@@ -21,9 +21,11 @@ import com.google.android.exoplayer2.upstream.DataSource;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** {@link DataSource} contract tests for {@link FakeDataSource}. */
/** {@link DataSource} contract tests for {@link FakeDataSource}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
FakeDataSourceContractTest
extends
DataSourceContractTest
{
public
class
FakeDataSourceContractTest
extends
DataSourceContractTest
{
private
Uri
simpleUri
;
private
Uri
simpleUri
;
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeDataSourceTest.java
View file @
fc47c2fe
...
@@ -27,9 +27,11 @@ import java.util.Arrays;
...
@@ -27,9 +27,11 @@ import java.util.Arrays;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link FakeDataSource}. */
/** Unit test for {@link FakeDataSource}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
FakeDataSourceTest
{
public
final
class
FakeDataSourceTest
{
private
static
final
String
URI_STRING
=
"test://test.test"
;
private
static
final
String
URI_STRING
=
"test://test.test"
;
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/WebServerDispatcherTest.java
View file @
fc47c2fe
...
@@ -28,6 +28,7 @@ import okhttp3.mockwebserver.MockWebServer;
...
@@ -28,6 +28,7 @@ import okhttp3.mockwebserver.MockWebServer;
import
org.junit.Before
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Tests for {@link WebServerDispatcher}. */
/** Tests for {@link WebServerDispatcher}. */
// We use the OkHttp client library for these tests because it's generally nicer to use than Java's
// We use the OkHttp client library for these tests because it's generally nicer to use than Java's
...
@@ -51,6 +52,7 @@ import org.junit.runner.RunWith;
...
@@ -51,6 +52,7 @@ import org.junit.runner.RunWith;
// So instead we just don't test these cases that require passing header combinations that are
// So instead we just don't test these cases that require passing header combinations that are
// impossible with OkHttp.
// impossible with OkHttp.
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
WebServerDispatcherTest
{
public
class
WebServerDispatcherTest
{
private
static
int
seed
;
private
static
int
seed
;
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/truth/SpannedSubjectTest.java
View file @
fc47c2fe
...
@@ -47,9 +47,11 @@ import com.google.android.exoplayer2.util.Util;
...
@@ -47,9 +47,11 @@ import com.google.android.exoplayer2.util.Util;
import
com.google.common.truth.ExpectFailure
;
import
com.google.common.truth.ExpectFailure
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Tests for {@link SpannedSubject}. */
/** Tests for {@link SpannedSubject}. */
@RunWith
(
AndroidJUnit4
.
class
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SpannedSubjectTest
{
public
class
SpannedSubjectTest
{
private
static
final
String
TEXT_PREFIX
=
"string with "
;
private
static
final
String
TEXT_PREFIX
=
"string with "
;
...
...
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