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
This commit is contained in:
parent
5f6fde4d2a
commit
2f8cf947c7
@ -2514,7 +2514,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
|
||||
@ -2536,7 +2536,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
|
||||
@ -12282,7 +12282,7 @@ public final class ExoPlayerTest {
|
||||
|
||||
public PositionGrabbingMessageTarget() {
|
||||
mediaItemIndex = C.INDEX_UNSET;
|
||||
positionMs = C.POSITION_UNSET;
|
||||
positionMs = C.TIME_UNSET;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user