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:
ibaker 2020-07-22 15:13:00 +01:00 committed by Oliver Woodman
parent 3ad1b95460
commit d33ba74a1d
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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(