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
85b6a516
authored
Jun 02, 2021
by
olly
Committed by
bachinger
Jun 02, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add DoNotInstrument annotations to DASH and UI tests
PiperOrigin-RevId: 377048460
parent
5700401e
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
38 additions
and
0 deletions
library/dash/src/test/java/com/google/android/exoplayer2/e2etest/DashPlaybackTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DashMediaPeriodTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DashMediaSourceTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DashUtilTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DefaultDashChunkSourceTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DefaultMediaSourceFactoryTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/EventSampleStreamTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/DashManifestParserTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/DashManifestTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/RangedUriTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/SegmentBaseTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/UrlTemplateTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DashDownloaderTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DownloadHelperTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DownloadManagerDashTest.java
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DownloadServiceDashTest.java
library/ui/src/test/java/com/google/android/exoplayer2/ui/HtmlUtilsTest.java
library/ui/src/test/java/com/google/android/exoplayer2/ui/SpannedToHtmlConverterTest.java
library/ui/src/test/java/com/google/android/exoplayer2/ui/SubtitleViewUtilsTest.java
library/dash/src/test/java/com/google/android/exoplayer2/e2etest/DashPlaybackTest.java
View file @
85b6a516
...
...
@@ -36,11 +36,13 @@ import org.junit.Rule;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.Config
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** End-to-end tests using DASH samples. */
// TODO(b/143232359): Remove once https://issuetracker.google.com/143232359 is resolved.
@Config
(
sdk
=
29
)
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
DashPlaybackTest
{
@Rule
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DashMediaPeriodTest.java
View file @
85b6a516
...
...
@@ -44,9 +44,11 @@ import java.io.InputStream;
import
java.util.List
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link DashMediaPeriod}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
DashMediaPeriodTest
{
@Test
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DashMediaSourceTest.java
View file @
85b6a516
...
...
@@ -45,11 +45,13 @@ import java.util.concurrent.atomic.AtomicReference;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.LooperMode
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
import
org.robolectric.shadows.ShadowLooper
;
/** Unit test for {@link DashMediaSource}. */
@RunWith
(
AndroidJUnit4
.
class
)
@LooperMode
(
PAUSED
)
@DoNotInstrument
public
final
class
DashMediaSourceTest
{
private
static
final
String
SAMPLE_MPD_LIVE_WITHOUT_LIVE_CONFIGURATION
=
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DashUtilTest.java
View file @
85b6a516
...
...
@@ -32,9 +32,11 @@ import java.util.Arrays;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link DashUtil}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
DashUtilTest
{
@Test
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DefaultDashChunkSourceTest.java
View file @
85b6a516
...
...
@@ -36,9 +36,11 @@ import com.google.android.exoplayer2.upstream.LoaderErrorThrower;
import
com.google.common.collect.ImmutableList
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link DefaultDashChunkSource}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DefaultDashChunkSourceTest
{
private
static
final
String
SAMPLE_MPD_LIVE_WITH_OFFSET_INSIDE_WINDOW
=
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/DefaultMediaSourceFactoryTest.java
View file @
85b6a516
...
...
@@ -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 DASH media sources with the {@link DefaultMediaSourceFactory}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DefaultMediaSourceFactoryTest
{
private
static
final
String
URI_MEDIA
=
"http://exoplayer.dev/video"
;
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/EventSampleStreamTest.java
View file @
85b6a516
...
...
@@ -30,9 +30,11 @@ import com.google.android.exoplayer2.util.MimeTypes;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link EventSampleStream}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
EventSampleStreamTest
{
private
static
final
String
SCHEME_ID
=
"urn:test"
;
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/DashManifestParserTest.java
View file @
85b6a516
...
...
@@ -35,11 +35,13 @@ import java.util.Collections;
import
java.util.List
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
import
org.xmlpull.v1.XmlPullParser
;
import
org.xmlpull.v1.XmlPullParserFactory
;
/** Unit tests for {@link DashManifestParser}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DashManifestParserTest
{
private
static
final
String
SAMPLE_MPD_LIVE
=
"media/mpd/sample_mpd_live"
;
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/DashManifestTest.java
View file @
85b6a516
...
...
@@ -29,9 +29,11 @@ import java.util.List;
import
java.util.Random
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link DashManifest}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DashManifestTest
{
private
static
final
UtcTimingElement
UTC_TIMING
=
new
UtcTimingElement
(
""
,
""
);
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/RangedUriTest.java
View file @
85b6a516
...
...
@@ -21,9 +21,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import
com.google.android.exoplayer2.C
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link RangedUri}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
RangedUriTest
{
private
static
final
String
BASE_URI
=
"http://www.test.com/"
;
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/SegmentBaseTest.java
View file @
85b6a516
...
...
@@ -21,9 +21,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import
com.google.android.exoplayer2.C
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link SegmentBase}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
SegmentBaseTest
{
@Test
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/UrlTemplateTest.java
View file @
85b6a516
...
...
@@ -21,9 +21,11 @@ import static org.junit.Assert.fail;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit test for {@link UrlTemplate}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
UrlTemplateTest
{
@Test
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DashDownloaderTest.java
View file @
85b6a516
...
...
@@ -57,9 +57,11 @@ import org.junit.Test;
import
org.junit.runner.RunWith
;
import
org.mockito.Mockito
;
import
org.mockito.MockitoAnnotations
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link DashDownloader}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DashDownloaderTest
{
private
SimpleCache
cache
;
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DownloadHelperTest.java
View file @
85b6a516
...
...
@@ -25,9 +25,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 DASH {@link DownloadHelper}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
final
class
DownloadHelperTest
{
@Test
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DownloadManagerDashTest.java
View file @
85b6a516
...
...
@@ -55,10 +55,12 @@ import org.junit.Ignore;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.mockito.MockitoAnnotations
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
import
org.robolectric.shadows.ShadowLog
;
/** Tests {@link DownloadManager}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DownloadManagerDashTest
{
private
static
final
int
ASSERT_TRUE_TIMEOUT_MS
=
5000
;
...
...
library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/DownloadServiceDashTest.java
View file @
85b6a516
...
...
@@ -57,9 +57,11 @@ import org.junit.Before;
import
org.junit.Ignore
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Unit tests for {@link DownloadService}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
DownloadServiceDashTest
{
private
SimpleCache
cache
;
...
...
library/ui/src/test/java/com/google/android/exoplayer2/ui/HtmlUtilsTest.java
View file @
85b6a516
...
...
@@ -21,9 +21,11 @@ import android.graphics.Color;
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 HtmlUtils}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
HtmlUtilsTest
{
@Test
...
...
library/ui/src/test/java/com/google/android/exoplayer2/ui/SpannedToHtmlConverterTest.java
View file @
85b6a516
...
...
@@ -39,9 +39,11 @@ import com.google.android.exoplayer2.text.span.TextEmphasisSpan;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.Config
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Tests for {@link SpannedToHtmlConverter}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SpannedToHtmlConverterTest
{
private
final
float
displayDensity
;
...
...
library/ui/src/test/java/com/google/android/exoplayer2/ui/SubtitleViewUtilsTest.java
View file @
85b6a516
...
...
@@ -34,9 +34,11 @@ import com.google.android.exoplayer2.text.span.TextAnnotation;
import
com.google.android.exoplayer2.text.span.TextEmphasisSpan
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.robolectric.annotation.internal.DoNotInstrument
;
/** Tests for {@link SubtitleView}. */
@RunWith
(
AndroidJUnit4
.
class
)
@DoNotInstrument
public
class
SubtitleViewUtilsTest
{
private
static
final
Cue
CUE
=
buildCue
();
...
...
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