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
66e4e47e
authored
Apr 16, 2021
by
jaewan
Committed by
Oliver Woodman
Apr 16, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix typo
PiperOrigin-RevId: 368789636
parent
b0260f7c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
library/common/src/test/java/com/google/android/exoplayer2/ExoPlaybackExceptionTest.java
library/common/src/test/java/com/google/android/exoplayer2/MediaItemTest.java
library/common/src/test/java/com/google/android/exoplayer2/MediaMetadataTest.java
library/common/src/test/java/com/google/android/exoplayer2/PlaybackParametersTest.java
library/common/src/test/java/com/google/android/exoplayer2/PositionInfoTest.java
library/common/src/test/java/com/google/android/exoplayer2/TimelineTest.java
library/common/src/test/java/com/google/android/exoplayer2/audio/AudioAttributesTest.java
library/common/src/test/java/com/google/android/exoplayer2/device/DeviceInfoTest.java
library/common/src/test/java/com/google/android/exoplayer2/source/ads/AdPlaybackStateTest.java
library/common/src/test/java/com/google/android/exoplayer2/ExoPlaybackExceptionTest.java
View file @
66e4e47e
...
@@ -28,14 +28,14 @@ import org.junit.runner.RunWith;
...
@@ -28,14 +28,14 @@ import org.junit.runner.RunWith;
public
class
ExoPlaybackExceptionTest
{
public
class
ExoPlaybackExceptionTest
{
@Test
@Test
public
void
round
t
ripViaBundle_ofExoPlaybackExceptionTypeRemote_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofExoPlaybackExceptionTypeRemote_yieldsEqualInstance
()
{
ExoPlaybackException
before
=
ExoPlaybackException
.
createForRemote
(
/* message= */
"test"
);
ExoPlaybackException
before
=
ExoPlaybackException
.
createForRemote
(
/* message= */
"test"
);
ExoPlaybackException
after
=
ExoPlaybackException
.
CREATOR
.
fromBundle
(
before
.
toBundle
());
ExoPlaybackException
after
=
ExoPlaybackException
.
CREATOR
.
fromBundle
(
before
.
toBundle
());
assertThat
(
areEqual
(
before
,
after
)).
isTrue
();
assertThat
(
areEqual
(
before
,
after
)).
isTrue
();
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofExoPlaybackExceptionTypeRenderer_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofExoPlaybackExceptionTypeRenderer_yieldsEqualInstance
()
{
ExoPlaybackException
before
=
ExoPlaybackException
before
=
ExoPlaybackException
.
createForRenderer
(
ExoPlaybackException
.
createForRenderer
(
new
IllegalStateException
(
"ExoPlaybackExceptionTest"
),
new
IllegalStateException
(
"ExoPlaybackExceptionTest"
),
...
@@ -51,7 +51,7 @@ public class ExoPlaybackExceptionTest {
...
@@ -51,7 +51,7 @@ public class ExoPlaybackExceptionTest {
@Test
@Test
public
void
public
void
round
t
ripViaBundle_ofExoPlaybackExceptionTypeRendererWithPrivateCause_yieldsRemoteExceptionWithSameMessage
()
{
round
T
ripViaBundle_ofExoPlaybackExceptionTypeRendererWithPrivateCause_yieldsRemoteExceptionWithSameMessage
()
{
ExoPlaybackException
before
=
ExoPlaybackException
before
=
ExoPlaybackException
.
createForRenderer
(
ExoPlaybackException
.
createForRenderer
(
new
Exception
(
/* message= */
"anonymous exception that class loader cannot know"
)
{});
new
Exception
(
/* message= */
"anonymous exception that class loader cannot know"
)
{});
...
...
library/common/src/test/java/com/google/android/exoplayer2/MediaItemTest.java
View file @
66e4e47e
...
@@ -395,7 +395,7 @@ public class MediaItemTest {
...
@@ -395,7 +395,7 @@ public class MediaItemTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_withoutPlaybackProperties_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_withoutPlaybackProperties_yieldsEqualInstance
()
{
MediaItem
mediaItem
=
MediaItem
mediaItem
=
new
MediaItem
.
Builder
()
new
MediaItem
.
Builder
()
.
setMediaId
(
"mediaId"
)
.
setMediaId
(
"mediaId"
)
...
@@ -417,7 +417,7 @@ public class MediaItemTest {
...
@@ -417,7 +417,7 @@ public class MediaItemTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_withPlaybackProperties_dropsPlaybackProperties
()
{
public
void
round
T
ripViaBundle_withPlaybackProperties_dropsPlaybackProperties
()
{
MediaItem
mediaItem
=
new
MediaItem
.
Builder
().
setUri
(
URI_STRING
).
build
();
MediaItem
mediaItem
=
new
MediaItem
.
Builder
().
setUri
(
URI_STRING
).
build
();
assertThat
(
mediaItem
.
playbackProperties
).
isNotNull
();
assertThat
(
mediaItem
.
playbackProperties
).
isNotNull
();
...
...
library/common/src/test/java/com/google/android/exoplayer2/MediaMetadataTest.java
View file @
66e4e47e
...
@@ -44,7 +44,7 @@ public class MediaMetadataTest {
...
@@ -44,7 +44,7 @@ public class MediaMetadataTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_yieldsEqualInstance
()
{
MediaMetadata
mediaMetadata
=
new
MediaMetadata
.
Builder
().
setTitle
(
"title"
).
build
();
MediaMetadata
mediaMetadata
=
new
MediaMetadata
.
Builder
().
setTitle
(
"title"
).
build
();
assertThat
(
MediaMetadata
.
CREATOR
.
fromBundle
(
mediaMetadata
.
toBundle
())).
isEqualTo
(
mediaMetadata
);
assertThat
(
MediaMetadata
.
CREATOR
.
fromBundle
(
mediaMetadata
.
toBundle
())).
isEqualTo
(
mediaMetadata
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/PlaybackParametersTest.java
View file @
66e4e47e
...
@@ -26,7 +26,7 @@ import org.junit.runner.RunWith;
...
@@ -26,7 +26,7 @@ import org.junit.runner.RunWith;
public
class
PlaybackParametersTest
{
public
class
PlaybackParametersTest
{
@Test
@Test
public
void
round
t
ripViaBundle_ofPlaybackParameters_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofPlaybackParameters_yieldsEqualInstance
()
{
PlaybackParameters
playbackParameters
=
PlaybackParameters
playbackParameters
=
new
PlaybackParameters
(
/* speed= */
2.9f
,
/* pitch= */
1.2f
);
new
PlaybackParameters
(
/* speed= */
2.9f
,
/* pitch= */
1.2f
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/PositionInfoTest.java
View file @
66e4e47e
...
@@ -27,7 +27,7 @@ import org.junit.runner.RunWith;
...
@@ -27,7 +27,7 @@ import org.junit.runner.RunWith;
public
class
PositionInfoTest
{
public
class
PositionInfoTest
{
@Test
@Test
public
void
round
t
ripViaBundle_ofPositionInfoWithoutObjectFields_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofPositionInfoWithoutObjectFields_yieldsEqualInstance
()
{
PositionInfo
positionInfo
=
PositionInfo
positionInfo
=
new
PositionInfo
(
new
PositionInfo
(
/* windowUid= */
null
,
/* windowUid= */
null
,
...
@@ -43,7 +43,7 @@ public class PositionInfoTest {
...
@@ -43,7 +43,7 @@ public class PositionInfoTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofPositionInfoWithWindowUid_yieldsNullWindowUid
()
{
public
void
round
T
ripViaBundle_ofPositionInfoWithWindowUid_yieldsNullWindowUid
()
{
PositionInfo
positionInfo
=
PositionInfo
positionInfo
=
new
PositionInfo
(
new
PositionInfo
(
/* windowUid= */
new
Object
(),
/* windowUid= */
new
Object
(),
...
@@ -60,7 +60,7 @@ public class PositionInfoTest {
...
@@ -60,7 +60,7 @@ public class PositionInfoTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofPositionInfoWithPeriodUid_yieldsNullPeriodUid
()
{
public
void
round
T
ripViaBundle_ofPositionInfoWithPeriodUid_yieldsNullPeriodUid
()
{
PositionInfo
positionInfo
=
PositionInfo
positionInfo
=
new
PositionInfo
(
new
PositionInfo
(
/* windowUid= */
null
,
/* windowUid= */
null
,
...
...
library/common/src/test/java/com/google/android/exoplayer2/TimelineTest.java
View file @
66e4e47e
...
@@ -209,7 +209,7 @@ public class TimelineTest {
...
@@ -209,7 +209,7 @@ public class TimelineTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofTimeline_yieldsEqualInstanceExceptIdsAndManifest
()
{
public
void
round
T
ripViaBundle_ofTimeline_yieldsEqualInstanceExceptIdsAndManifest
()
{
Timeline
timeline
=
Timeline
timeline
=
new
FakeTimeline
(
new
FakeTimeline
(
new
TimelineWindowDefinition
(
new
TimelineWindowDefinition
(
...
@@ -244,7 +244,7 @@ public class TimelineTest {
...
@@ -244,7 +244,7 @@ public class TimelineTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofTimeline_preservesWindowIndices
()
{
public
void
round
T
ripViaBundle_ofTimeline_preservesWindowIndices
()
{
int
windowCount
=
10
;
int
windowCount
=
10
;
FakeTimeline
timeline
=
new
FakeTimeline
(
windowCount
);
FakeTimeline
timeline
=
new
FakeTimeline
(
windowCount
);
...
@@ -285,12 +285,12 @@ public class TimelineTest {
...
@@ -285,12 +285,12 @@ public class TimelineTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofEmptyTimeline_returnsEmptyTimeline
()
{
public
void
round
T
ripViaBundle_ofEmptyTimeline_returnsEmptyTimeline
()
{
TimelineAsserts
.
assertEmpty
(
Timeline
.
CREATOR
.
fromBundle
(
Timeline
.
EMPTY
.
toBundle
()));
TimelineAsserts
.
assertEmpty
(
Timeline
.
CREATOR
.
fromBundle
(
Timeline
.
EMPTY
.
toBundle
()));
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofWindow_yieldsEqualInstanceExceptUidAndManifest
()
{
public
void
round
T
ripViaBundle_ofWindow_yieldsEqualInstanceExceptUidAndManifest
()
{
Timeline
.
Window
window
=
new
Timeline
.
Window
();
Timeline
.
Window
window
=
new
Timeline
.
Window
();
window
.
uid
=
new
Object
();
window
.
uid
=
new
Object
();
window
.
mediaItem
=
new
MediaItem
.
Builder
().
setMediaId
(
"mediaId"
).
build
();
window
.
mediaItem
=
new
MediaItem
.
Builder
().
setMediaId
(
"mediaId"
).
build
();
...
@@ -322,7 +322,7 @@ public class TimelineTest {
...
@@ -322,7 +322,7 @@ public class TimelineTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofPeriod_yieldsEqualInstanceExceptIds
()
{
public
void
round
T
ripViaBundle_ofPeriod_yieldsEqualInstanceExceptIds
()
{
Timeline
.
Period
period
=
new
Timeline
.
Period
();
Timeline
.
Period
period
=
new
Timeline
.
Period
();
period
.
id
=
new
Object
();
period
.
id
=
new
Object
();
period
.
uid
=
new
Object
();
period
.
uid
=
new
Object
();
...
...
library/common/src/test/java/com/google/android/exoplayer2/audio/AudioAttributesTest.java
View file @
66e4e47e
...
@@ -27,7 +27,7 @@ import org.junit.runner.RunWith;
...
@@ -27,7 +27,7 @@ import org.junit.runner.RunWith;
public
class
AudioAttributesTest
{
public
class
AudioAttributesTest
{
@Test
@Test
public
void
round
t
ripViaBundle_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_yieldsEqualInstance
()
{
AudioAttributes
audioAttributes
=
AudioAttributes
audioAttributes
=
new
AudioAttributes
.
Builder
()
new
AudioAttributes
.
Builder
()
.
setContentType
(
C
.
CONTENT_TYPE_SONIFICATION
)
.
setContentType
(
C
.
CONTENT_TYPE_SONIFICATION
)
...
...
library/common/src/test/java/com/google/android/exoplayer2/device/DeviceInfoTest.java
View file @
66e4e47e
...
@@ -26,7 +26,7 @@ import org.junit.runner.RunWith;
...
@@ -26,7 +26,7 @@ import org.junit.runner.RunWith;
public
class
DeviceInfoTest
{
public
class
DeviceInfoTest
{
@Test
@Test
public
void
round
t
ripViaBundle_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_yieldsEqualInstance
()
{
DeviceInfo
deviceInfo
=
DeviceInfo
deviceInfo
=
new
DeviceInfo
(
DeviceInfo
.
PLAYBACK_TYPE_REMOTE
,
/* minVolume= */
1
,
/* maxVolume= */
9
);
new
DeviceInfo
(
DeviceInfo
.
PLAYBACK_TYPE_REMOTE
,
/* minVolume= */
1
,
/* maxVolume= */
9
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/source/ads/AdPlaybackStateTest.java
View file @
66e4e47e
...
@@ -150,7 +150,7 @@ public class AdPlaybackStateTest {
...
@@ -150,7 +150,7 @@ public class AdPlaybackStateTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_yieldsEqualFieldsExceptAdsId
()
{
public
void
round
T
ripViaBundle_yieldsEqualFieldsExceptAdsId
()
{
AdPlaybackState
originalState
=
AdPlaybackState
originalState
=
state
state
.
withAdCount
(
/* adGroupIndex= */
0
,
/* adCount= */
1
)
.
withAdCount
(
/* adGroupIndex= */
0
,
/* adCount= */
1
)
...
@@ -176,7 +176,7 @@ public class AdPlaybackStateTest {
...
@@ -176,7 +176,7 @@ public class AdPlaybackStateTest {
}
}
@Test
@Test
public
void
round
t
ripViaBundle_ofAdGroup_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofAdGroup_yieldsEqualInstance
()
{
AdPlaybackState
.
AdGroup
adGroup
=
AdPlaybackState
.
AdGroup
adGroup
=
new
AdPlaybackState
.
AdGroup
()
new
AdPlaybackState
.
AdGroup
()
.
withAdCount
(
2
)
.
withAdCount
(
2
)
...
...
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