FileDocCategorySizeDatePackage
VariableSpeedTest.javaAPI DocAndroid 5.1 API1746Thu Mar 12 22:22:48 GMT 2015com.android.ex.variablespeed

VariableSpeedTest

public class VariableSpeedTest extends MediaPlayerProxyTestCase
Tests for the {@link VariableSpeed} class.

Fields Summary
private static final String
TAG
private ScheduledExecutorService
mExecutor
Constructors Summary
Methods Summary
public MediaPlayerProxycreateTestMediaPlayer()

        return VariableSpeed.createVariableSpeed(mExecutor);
    
protected voidtearDown()


    
         
        // I explicitly want to do super's tear-down first, because I need to get it to reset
        // the media player before I can be confident that I can shut down the executor service.
        super.tearDown();
        mExecutor.shutdown();
        if (!mExecutor.awaitTermination(10, TimeUnit.SECONDS)) {
            Log.e(TAG, "Couldn't shut down Executor during test, check your cleanup code!");
        }
        mExecutor = null;