Code example for InstrumentationTestSuite

Methods: addTestSuite

0
    public static boolean mGetNativeHeapDump = false;
    public static boolean mGetProcmem = false;
 
    @Override 
    public TestSuite getAllTests() {
        TestSuite suite = new InstrumentationTestSuite(this);
        suite.addTestSuite(MediaPlayerPerformance.class);
        /* Video Editor performance Test cases */ 
        suite.addTestSuite(VideoEditorPerformance.class);
        return suite;
    } 
 
    @Override 
    public ClassLoader getLoader() {
        return MediaFrameworkTestRunner.class.getClassLoader();
    } 
 
    @Override 
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        String get_heap_dump = (String) icicle.get("get_heap_dump");