mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Don't expect onMetadataChanged
and onPlaybackStateChanged
in order
PiperOrigin-RevId: 743472646
This commit is contained in:
parent
769aca2e32
commit
96222478cd
@ -1409,9 +1409,7 @@ public class MediaControllerCompatCallbackWithMediaSessionTest {
|
|||||||
assertThat(controllerCompat.getPlaybackState().getPosition()).isEqualTo(testPosition);
|
assertThat(controllerCompat.getPlaybackState().getPosition()).isEqualTo(testPosition);
|
||||||
assertThat(playbackStateRef.get().getActiveQueueItemId()).isEqualTo(testItemIndex);
|
assertThat(playbackStateRef.get().getActiveQueueItemId()).isEqualTo(testItemIndex);
|
||||||
assertThat(controllerCompat.getPlaybackState().getActiveQueueItemId()).isEqualTo(testItemIndex);
|
assertThat(controllerCompat.getPlaybackState().getActiveQueueItemId()).isEqualTo(testItemIndex);
|
||||||
assertThat(callbackOrder)
|
assertThat(callbackOrder).containsExactly("onMetadataChanged", "onPlaybackStateChanged");
|
||||||
.containsExactly("onMetadataChanged", "onPlaybackStateChanged")
|
|
||||||
.inOrder();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user