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;
public
class
ExoPlaybackExceptionTest
{
@Test
public
void
round
t
ripViaBundle_ofExoPlaybackExceptionTypeRemote_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofExoPlaybackExceptionTypeRemote_yieldsEqualInstance
()
{
ExoPlaybackException
before
=
ExoPlaybackException
.
createForRemote
(
/* message= */
"test"
);
ExoPlaybackException
after
=
ExoPlaybackException
.
CREATOR
.
fromBundle
(
before
.
toBundle
());
assertThat
(
areEqual
(
before
,
after
)).
isTrue
();
}
@Test
public
void
round
t
ripViaBundle_ofExoPlaybackExceptionTypeRenderer_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofExoPlaybackExceptionTypeRenderer_yieldsEqualInstance
()
{
ExoPlaybackException
before
=
ExoPlaybackException
.
createForRenderer
(
new
IllegalStateException
(
"ExoPlaybackExceptionTest"
),
...
...
@@ -51,7 +51,7 @@ public class ExoPlaybackExceptionTest {
@Test
public
void
round
t
ripViaBundle_ofExoPlaybackExceptionTypeRendererWithPrivateCause_yieldsRemoteExceptionWithSameMessage
()
{
round
T
ripViaBundle_ofExoPlaybackExceptionTypeRendererWithPrivateCause_yieldsRemoteExceptionWithSameMessage
()
{
ExoPlaybackException
before
=
ExoPlaybackException
.
createForRenderer
(
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 {
}
@Test
public
void
round
t
ripViaBundle_withoutPlaybackProperties_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_withoutPlaybackProperties_yieldsEqualInstance
()
{
MediaItem
mediaItem
=
new
MediaItem
.
Builder
()
.
setMediaId
(
"mediaId"
)
...
...
@@ -417,7 +417,7 @@ public class MediaItemTest {
}
@Test
public
void
round
t
ripViaBundle_withPlaybackProperties_dropsPlaybackProperties
()
{
public
void
round
T
ripViaBundle_withPlaybackProperties_dropsPlaybackProperties
()
{
MediaItem
mediaItem
=
new
MediaItem
.
Builder
().
setUri
(
URI_STRING
).
build
();
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 {
}
@Test
public
void
round
t
ripViaBundle_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_yieldsEqualInstance
()
{
MediaMetadata
mediaMetadata
=
new
MediaMetadata
.
Builder
().
setTitle
(
"title"
).
build
();
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;
public
class
PlaybackParametersTest
{
@Test
public
void
round
t
ripViaBundle_ofPlaybackParameters_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofPlaybackParameters_yieldsEqualInstance
()
{
PlaybackParameters
playbackParameters
=
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;
public
class
PositionInfoTest
{
@Test
public
void
round
t
ripViaBundle_ofPositionInfoWithoutObjectFields_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofPositionInfoWithoutObjectFields_yieldsEqualInstance
()
{
PositionInfo
positionInfo
=
new
PositionInfo
(
/* windowUid= */
null
,
...
...
@@ -43,7 +43,7 @@ public class PositionInfoTest {
}
@Test
public
void
round
t
ripViaBundle_ofPositionInfoWithWindowUid_yieldsNullWindowUid
()
{
public
void
round
T
ripViaBundle_ofPositionInfoWithWindowUid_yieldsNullWindowUid
()
{
PositionInfo
positionInfo
=
new
PositionInfo
(
/* windowUid= */
new
Object
(),
...
...
@@ -60,7 +60,7 @@ public class PositionInfoTest {
}
@Test
public
void
round
t
ripViaBundle_ofPositionInfoWithPeriodUid_yieldsNullPeriodUid
()
{
public
void
round
T
ripViaBundle_ofPositionInfoWithPeriodUid_yieldsNullPeriodUid
()
{
PositionInfo
positionInfo
=
new
PositionInfo
(
/* windowUid= */
null
,
...
...
library/common/src/test/java/com/google/android/exoplayer2/TimelineTest.java
View file @
66e4e47e
...
...
@@ -209,7 +209,7 @@ public class TimelineTest {
}
@Test
public
void
round
t
ripViaBundle_ofTimeline_yieldsEqualInstanceExceptIdsAndManifest
()
{
public
void
round
T
ripViaBundle_ofTimeline_yieldsEqualInstanceExceptIdsAndManifest
()
{
Timeline
timeline
=
new
FakeTimeline
(
new
TimelineWindowDefinition
(
...
...
@@ -244,7 +244,7 @@ public class TimelineTest {
}
@Test
public
void
round
t
ripViaBundle_ofTimeline_preservesWindowIndices
()
{
public
void
round
T
ripViaBundle_ofTimeline_preservesWindowIndices
()
{
int
windowCount
=
10
;
FakeTimeline
timeline
=
new
FakeTimeline
(
windowCount
);
...
...
@@ -285,12 +285,12 @@ public class TimelineTest {
}
@Test
public
void
round
t
ripViaBundle_ofEmptyTimeline_returnsEmptyTimeline
()
{
public
void
round
T
ripViaBundle_ofEmptyTimeline_returnsEmptyTimeline
()
{
TimelineAsserts
.
assertEmpty
(
Timeline
.
CREATOR
.
fromBundle
(
Timeline
.
EMPTY
.
toBundle
()));
}
@Test
public
void
round
t
ripViaBundle_ofWindow_yieldsEqualInstanceExceptUidAndManifest
()
{
public
void
round
T
ripViaBundle_ofWindow_yieldsEqualInstanceExceptUidAndManifest
()
{
Timeline
.
Window
window
=
new
Timeline
.
Window
();
window
.
uid
=
new
Object
();
window
.
mediaItem
=
new
MediaItem
.
Builder
().
setMediaId
(
"mediaId"
).
build
();
...
...
@@ -322,7 +322,7 @@ public class TimelineTest {
}
@Test
public
void
round
t
ripViaBundle_ofPeriod_yieldsEqualInstanceExceptIds
()
{
public
void
round
T
ripViaBundle_ofPeriod_yieldsEqualInstanceExceptIds
()
{
Timeline
.
Period
period
=
new
Timeline
.
Period
();
period
.
id
=
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;
public
class
AudioAttributesTest
{
@Test
public
void
round
t
ripViaBundle_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_yieldsEqualInstance
()
{
AudioAttributes
audioAttributes
=
new
AudioAttributes
.
Builder
()
.
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;
public
class
DeviceInfoTest
{
@Test
public
void
round
t
ripViaBundle_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_yieldsEqualInstance
()
{
DeviceInfo
deviceInfo
=
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 {
}
@Test
public
void
round
t
ripViaBundle_yieldsEqualFieldsExceptAdsId
()
{
public
void
round
T
ripViaBundle_yieldsEqualFieldsExceptAdsId
()
{
AdPlaybackState
originalState
=
state
.
withAdCount
(
/* adGroupIndex= */
0
,
/* adCount= */
1
)
...
...
@@ -176,7 +176,7 @@ public class AdPlaybackStateTest {
}
@Test
public
void
round
t
ripViaBundle_ofAdGroup_yieldsEqualInstance
()
{
public
void
round
T
ripViaBundle_ofAdGroup_yieldsEqualInstance
()
{
AdPlaybackState
.
AdGroup
adGroup
=
new
AdPlaybackState
.
AdGroup
()
.
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