FileDocCategorySizeDatePackage
MediaFrameworkUnitTestRunner.javaAPI DocAndroid 1.5 API4045Wed May 06 22:42:00 BST 2009com.android.mediaframeworktest

MediaFrameworkUnitTestRunner

public class MediaFrameworkUnitTestRunner extends android.test.InstrumentationTestRunner
Instrumentation Test Runner for all media framework unit tests. Make sure that MediaFrameworkUnitTestRunner has been added to AndroidManifest.xml file, and then "make -j4 mediaframeworktest; adb sync" to build and upload mediaframeworktest to the phone or emulator. Example on running all unit tests for a single class: adb shell am instrument -e class \ com.android.mediaframeworktest.unit.MediaMetadataRetrieverUnitTest \ -w com.android.mediaframeworktest/.MediaFrameworkUnitTestRunner Example on running all unit tests for the media framework: adb shell am instrument \ -w com.android.mediaframeworktest/.MediaFrameworkUnitTestRunner

Fields Summary
Constructors Summary
Methods Summary
private voidaddMediaMetadataRetrieverStateUnitTests(junit.framework.TestSuite suite)

        suite.addTestSuite(MediaMetadataRetrieverTest.class);
    
private voidaddMediaPlayerStateUnitTests(junit.framework.TestSuite suite)

        suite.addTestSuite(MediaPlayerGetDurationStateUnitTest.class);
        suite.addTestSuite(MediaPlayerSeekToStateUnitTest.class);
        suite.addTestSuite(MediaPlayerGetCurrentPositionStateUnitTest.class);
        suite.addTestSuite(MediaPlayerGetVideoWidthStateUnitTest.class);
        suite.addTestSuite(MediaPlayerGetVideoHeightStateUnitTest.class);
        suite.addTestSuite(MediaPlayerIsPlayingStateUnitTest.class);
        suite.addTestSuite(MediaPlayerResetStateUnitTest.class);
        suite.addTestSuite(MediaPlayerPauseStateUnitTest.class);
        suite.addTestSuite(MediaPlayerStartStateUnitTest.class);
        suite.addTestSuite(MediaPlayerStopStateUnitTest.class);
        suite.addTestSuite(MediaPlayerSetLoopingStateUnitTest.class);
        suite.addTestSuite(MediaPlayerSetAudioStreamTypeStateUnitTest.class);
        suite.addTestSuite(MediaPlayerSetVolumeStateUnitTest.class);
    
private voidaddMediaRecorderStateUnitTests(junit.framework.TestSuite suite)

        suite.addTestSuite(MediaRecorderPrepareStateUnitTest.class);
        suite.addTestSuite(MediaRecorderResetStateUnitTest.class);
        suite.addTestSuite(MediaRecorderSetAudioEncoderStateUnitTest.class);
        suite.addTestSuite(MediaRecorderSetAudioSourceStateUnitTest.class);
        suite.addTestSuite(MediaRecorderSetOutputFileStateUnitTest.class);
        suite.addTestSuite(MediaRecorderSetOutputFormatStateUnitTest.class);
        suite.addTestSuite(MediaRecorderStartStateUnitTest.class);
        suite.addTestSuite(MediaRecorderStopStateUnitTest.class);
    
public junit.framework.TestSuitegetAllTests()

        TestSuite suite = new InstrumentationTestSuite(this);
        addMediaMetadataRetrieverStateUnitTests(suite);
        addMediaRecorderStateUnitTests(suite);
        addMediaPlayerStateUnitTests(suite);
        return suite;
    
public java.lang.ClassLoadergetLoader()

        return MediaFrameworkUnitTestRunner.class.getClassLoader();