Misc fix on DefaultMediaNotificationProviderTest

PiperOrigin-RevId: 479079184
(cherry picked from commit bf948db669)
This commit is contained in:
christosts 2022-10-05 17:22:40 +00:00 committed by microkatz
parent a31a6c6c1a
commit 1cfeddc369

View file

@ -69,10 +69,10 @@ public class DefaultMediaNotificationProviderTest {
List<CommandButton> mediaButtonsWhenPlaying =
defaultMediaNotificationProvider.getMediaButtons(
commands, /* customLayout= */ ImmutableList.of(), /* playWhenReady= */ true);
commands, /* customLayout= */ ImmutableList.of(), /* showPauseButton= */ true);
List<CommandButton> mediaButtonWhenPaused =
defaultMediaNotificationProvider.getMediaButtons(
commands, /* customLayout= */ ImmutableList.of(), /* playWhenReady= */ false);
commands, /* customLayout= */ ImmutableList.of(), /* showPauseButton= */ false);
assertThat(mediaButtonsWhenPlaying).hasSize(3);
assertThat(mediaButtonsWhenPlaying.get(1).playerCommand).isEqualTo(Player.COMMAND_PLAY_PAUSE);
@ -102,7 +102,7 @@ public class DefaultMediaNotificationProviderTest {
List<CommandButton> mediaButtons =
defaultMediaNotificationProvider.getMediaButtons(
commands, ImmutableList.of(customCommandButton), /* playWhenReady= */ true);
commands, ImmutableList.of(customCommandButton), /* showPauseButton= */ true);
assertThat(mediaButtons).hasSize(4);
assertThat(mediaButtons.get(0).playerCommand)
@ -128,7 +128,7 @@ public class DefaultMediaNotificationProviderTest {
List<CommandButton> mediaButtons =
defaultMediaNotificationProvider.getMediaButtons(
commands, ImmutableList.of(customCommandButton), /* playWhenReady= */ true);
commands, ImmutableList.of(customCommandButton), /* showPauseButton= */ true);
assertThat(mediaButtons).containsExactly(customCommandButton);
}