DefaultMediaClock implements MediaClock { @Override public PlaybackParameters getPlaybackParameters() { return rendererClock != null ? rendererClock.getPlaybackParameters() : standaloneClock.getPlaybackParameters(); } DefaultMediaClock(PlaybackParameterListener listener, Clock clock); void start(); void stop(); void resetPosition(long positionUs); void onRendererEnabled(Renderer renderer); void onRendererDisabled(Renderer renderer); long syncAndGetPositionUs(boolean isReadingAhead); @Override long getPositionUs(); @Override void setPlaybackParameters(PlaybackParameters playbackParameters); @Override PlaybackParameters getPlaybackParameters();  }
@Test public void standaloneGetPlaybackParameters_initializedWithDefaultPlaybackParameters() { assertThat(mediaClock.getPlaybackParameters()).isEqualTo(PlaybackParameters.DEFAULT); }