FileDocCategorySizeDatePackage
DownloadManagerTestRunner.javaAPI DocAndroid 5.1 API2238Thu Mar 12 22:22:12 GMT 2015com.android.frameworks.downloadmanagertests

DownloadManagerTestRunner

public class DownloadManagerTestRunner extends android.test.InstrumentationTestRunner
Instrumentation Test Runner for all download manager tests. To run the download manager tests: adb shell am instrument -e external_download_uri external_large_download_uri \ -w com.android.frameworks.downloadmanagertests/.DownloadManagerTestRunner

Fields Summary
private static final String
EXTERNAL_DOWNLOAD_URI_KEY
public String
externalDownloadUriValue
Constructors Summary
Methods Summary
public junit.framework.TestSuitegetAllTests()


    
       
        TestSuite suite = new InstrumentationTestSuite(this);
        suite.addTestSuite(DownloadManagerTestApp.class);
        return suite;
    
public java.lang.ClassLoadergetLoader()

        return DownloadManagerTestRunner.class.getClassLoader();
    
public voidonCreate(android.os.Bundle icicle)

        // Extract the extra params passed in from the bundle...
        String externalDownloadUri = (String) icicle.get(EXTERNAL_DOWNLOAD_URI_KEY);
        if (externalDownloadUri != null) {
            externalDownloadUriValue = externalDownloadUri;
        }
        // enable verbose wifi logging
        ((WifiManager)getContext().getSystemService(Context.WIFI_SERVICE))
            .enableVerboseLogging(1);
        super.onCreate(icicle);