mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Misc fix on DefaultMediaNotificationProviderTest
PiperOrigin-RevId: 479079184
(cherry picked from commit bf948db669)
This commit is contained in:
parent
a31a6c6c1a
commit
1cfeddc369
1 changed files with 4 additions and 4 deletions
|
|
@ -69,10 +69,10 @@ public class DefaultMediaNotificationProviderTest {
|
||||||
|
|
||||||
List<CommandButton> mediaButtonsWhenPlaying =
|
List<CommandButton> mediaButtonsWhenPlaying =
|
||||||
defaultMediaNotificationProvider.getMediaButtons(
|
defaultMediaNotificationProvider.getMediaButtons(
|
||||||
commands, /* customLayout= */ ImmutableList.of(), /* playWhenReady= */ true);
|
commands, /* customLayout= */ ImmutableList.of(), /* showPauseButton= */ true);
|
||||||
List<CommandButton> mediaButtonWhenPaused =
|
List<CommandButton> mediaButtonWhenPaused =
|
||||||
defaultMediaNotificationProvider.getMediaButtons(
|
defaultMediaNotificationProvider.getMediaButtons(
|
||||||
commands, /* customLayout= */ ImmutableList.of(), /* playWhenReady= */ false);
|
commands, /* customLayout= */ ImmutableList.of(), /* showPauseButton= */ false);
|
||||||
|
|
||||||
assertThat(mediaButtonsWhenPlaying).hasSize(3);
|
assertThat(mediaButtonsWhenPlaying).hasSize(3);
|
||||||
assertThat(mediaButtonsWhenPlaying.get(1).playerCommand).isEqualTo(Player.COMMAND_PLAY_PAUSE);
|
assertThat(mediaButtonsWhenPlaying.get(1).playerCommand).isEqualTo(Player.COMMAND_PLAY_PAUSE);
|
||||||
|
|
@ -102,7 +102,7 @@ public class DefaultMediaNotificationProviderTest {
|
||||||
|
|
||||||
List<CommandButton> mediaButtons =
|
List<CommandButton> mediaButtons =
|
||||||
defaultMediaNotificationProvider.getMediaButtons(
|
defaultMediaNotificationProvider.getMediaButtons(
|
||||||
commands, ImmutableList.of(customCommandButton), /* playWhenReady= */ true);
|
commands, ImmutableList.of(customCommandButton), /* showPauseButton= */ true);
|
||||||
|
|
||||||
assertThat(mediaButtons).hasSize(4);
|
assertThat(mediaButtons).hasSize(4);
|
||||||
assertThat(mediaButtons.get(0).playerCommand)
|
assertThat(mediaButtons.get(0).playerCommand)
|
||||||
|
|
@ -128,7 +128,7 @@ public class DefaultMediaNotificationProviderTest {
|
||||||
|
|
||||||
List<CommandButton> mediaButtons =
|
List<CommandButton> mediaButtons =
|
||||||
defaultMediaNotificationProvider.getMediaButtons(
|
defaultMediaNotificationProvider.getMediaButtons(
|
||||||
commands, ImmutableList.of(customCommandButton), /* playWhenReady= */ true);
|
commands, ImmutableList.of(customCommandButton), /* showPauseButton= */ true);
|
||||||
|
|
||||||
assertThat(mediaButtons).containsExactly(customCommandButton);
|
assertThat(mediaButtons).containsExactly(customCommandButton);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue