mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Count down three playback states to match the assertion
PiperOrigin-RevId: 648629427
This commit is contained in:
parent
7fb6eee920
commit
ec3a58f8db
@ -240,7 +240,7 @@ public class MediaControllerCompatCallbackWithMediaSessionTest {
|
|||||||
@Test
|
@Test
|
||||||
public void sendError_toAllControllers_onPlaybackStateChangedToErrorStateAndWithCorrectErrorData()
|
public void sendError_toAllControllers_onPlaybackStateChangedToErrorStateAndWithCorrectErrorData()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
CountDownLatch latch = new CountDownLatch(2);
|
CountDownLatch latch = new CountDownLatch(3);
|
||||||
List<PlaybackStateCompat> playbackStates = new ArrayList<>();
|
List<PlaybackStateCompat> playbackStates = new ArrayList<>();
|
||||||
MediaControllerCompat.Callback callback =
|
MediaControllerCompat.Callback callback =
|
||||||
new MediaControllerCompat.Callback() {
|
new MediaControllerCompat.Callback() {
|
||||||
@ -301,7 +301,7 @@ public class MediaControllerCompatCallbackWithMediaSessionTest {
|
|||||||
public void
|
public void
|
||||||
sendError_toMediaNotificationController_onPlaybackStateChangedToErrorStateAndWithCorrectErrorData()
|
sendError_toMediaNotificationController_onPlaybackStateChangedToErrorStateAndWithCorrectErrorData()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
CountDownLatch latch = new CountDownLatch(2);
|
CountDownLatch latch = new CountDownLatch(3);
|
||||||
List<PlaybackStateCompat> playbackStates = new ArrayList<>();
|
List<PlaybackStateCompat> playbackStates = new ArrayList<>();
|
||||||
MediaControllerCompat.Callback callback =
|
MediaControllerCompat.Callback callback =
|
||||||
new MediaControllerCompat.Callback() {
|
new MediaControllerCompat.Callback() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user