mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Rename tests to reference playback speed instead of parameters
Player#setPlaybackParameters (and all derived methods) is deprecated in favour of Player#setPlaybackSpeed #exofixit PiperOrigin-RevId: 322568198
This commit is contained in:
parent
3ad1b95460
commit
d33ba74a1d
@ -934,7 +934,7 @@ public final class ExoPlayerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setPlaybackParametersBeforePreparationCompletesSucceeds() throws Exception {
|
||||
public void setPlaybackSpeedBeforePreparationCompletesSucceeds() throws Exception {
|
||||
// Test that no exception is thrown when playback parameters are updated between creating a
|
||||
// period and preparation of the period completing.
|
||||
final CountDownLatch createPeriodCalledCountDownLatch = new CountDownLatch(1);
|
||||
@ -3335,7 +3335,7 @@ public final class ExoPlayerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setPlaybackParametersConsecutivelyNotifiesListenerForEveryChangeOnceAndIsMasked()
|
||||
public void setPlaybackSpeedConsecutivelyNotifiesListenerForEveryChangeOnceAndIsMasked()
|
||||
throws Exception {
|
||||
List<Float> maskedPlaybackSpeeds = new ArrayList<>();
|
||||
Action getPlaybackSpeedAction =
|
||||
@ -3381,7 +3381,7 @@ public final class ExoPlayerTest {
|
||||
|
||||
@Test
|
||||
public void
|
||||
setUnsupportedPlaybackParametersConsecutivelyNotifiesListenerForEveryChangeOnceAndResetsOnceHandled()
|
||||
setUnsupportedPlaybackSpeedConsecutivelyNotifiesListenerForEveryChangeOnceAndResetsOnceHandled()
|
||||
throws Exception {
|
||||
Renderer renderer =
|
||||
new FakeMediaClockRenderer(C.TRACK_TYPE_AUDIO) {
|
||||
|
@ -96,7 +96,7 @@ public final class DefaultAudioSinkTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handlesBufferAfterReset_withPlaybackParameters() throws Exception {
|
||||
public void handlesBufferAfterReset_withPlaybackSpeed() throws Exception {
|
||||
defaultAudioSink.setPlaybackSpeed(/* playbackSpeed= */ 1.5f);
|
||||
configureDefaultAudioSink(CHANNEL_COUNT_STEREO);
|
||||
defaultAudioSink.handleBuffer(
|
||||
@ -124,7 +124,7 @@ public final class DefaultAudioSinkTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void handlesBufferAfterReset_withFormatChangeAndPlaybackParameters() throws Exception {
|
||||
public void handlesBufferAfterReset_withFormatChangeAndPlaybackSpeed() throws Exception {
|
||||
defaultAudioSink.setPlaybackSpeed(/* playbackSpeed= */ 1.5f);
|
||||
configureDefaultAudioSink(CHANNEL_COUNT_STEREO);
|
||||
defaultAudioSink.handleBuffer(
|
||||
|
Loading…
x
Reference in New Issue
Block a user