FileDocCategorySizeDatePackage
MediaFrameworkUnitTestRunner.javaAPI DocAndroid 5.1 API4883Thu Mar 12 22:22:30 GMT 2015com.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 voidaddCameraUnitTests(junit.framework.TestSuite suite)

        suite.addTestSuite(CameraUtilsDecoratorTest.class);
        suite.addTestSuite(CameraUtilsRuntimeExceptionTest.class);
        suite.addTestSuite(CameraUtilsUncheckedThrowTest.class);
        suite.addTestSuite(CameraUtilsBinderDecoratorTest.class);
        suite.addTestSuite(CameraUtilsTypeReferenceTest.class);
        suite.addTestSuite(CameraMetadataTest.class);
    
private voidaddImageReaderTests(junit.framework.TestSuite suite)

        suite.addTestSuite(ImageReaderTest.class);
    
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);
        suite.addTestSuite(MediaPlayerMetadataParserTest.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);
    
private voidaddMediaScannerUnitTests(junit.framework.TestSuite suite)

        suite.addTestSuite(MediaInserterTest.class);
    
public junit.framework.TestSuitegetAllTests()

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

        return MediaFrameworkUnitTestRunner.class.getClassLoader();