mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix ExoPlayerTest to use C.TIME_UNSET instead of C.POSITION_UNSET
This inconsistency was exposed by an upcoming change to deprecate
`POSITION_UNSET` in favour of `INDEX_UNSET` because position is an
ambiguous term between 'byte offset' and 'media position', as shown
here.
PiperOrigin-RevId: 492470241
(cherry picked from commit 2650654dd0)
This commit is contained in:
parent
5612f6924a
commit
f43cc38ce1
1 changed files with 3 additions and 3 deletions
|
|
@ -2524,7 +2524,7 @@ public final class ExoPlayerTest {
|
|||
.build()
|
||||
.start()
|
||||
.blockUntilEnded(TIMEOUT_MS);
|
||||
assertThat(target.positionMs).isEqualTo(C.POSITION_UNSET);
|
||||
assertThat(target.positionMs).isEqualTo(C.TIME_UNSET);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -2546,7 +2546,7 @@ public final class ExoPlayerTest {
|
|||
.build()
|
||||
.start()
|
||||
.blockUntilEnded(TIMEOUT_MS);
|
||||
assertThat(target.positionMs).isEqualTo(C.POSITION_UNSET);
|
||||
assertThat(target.positionMs).isEqualTo(C.TIME_UNSET);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -12292,7 +12292,7 @@ public final class ExoPlayerTest {
|
|||
|
||||
public PositionGrabbingMessageTarget() {
|
||||
mediaItemIndex = C.INDEX_UNSET;
|
||||
positionMs = C.POSITION_UNSET;
|
||||
positionMs = C.TIME_UNSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue