Commit 1cfeddc3 by christosts Committed by microkatz

Misc fix on DefaultMediaNotificationProviderTest

PiperOrigin-RevId: 479079184
(cherry picked from commit bf948db6)
parent a31a6c6c
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment