MediaFrameworkPerfTestRunner.java revision eb6d6ecf4ba7a3965ce6ab178dce48eb9416bfc7
1/* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.mediaframeworktest; 18 19import com.android.mediaframeworktest.performance.MediaPlayerPerformance; 20/*Video Editor performance Test cases*/ 21import com.android.mediaframeworktest.performance.VideoEditorPerformance; 22import junit.framework.TestSuite; 23 24import android.test.InstrumentationTestRunner; 25import android.test.InstrumentationTestSuite; 26 27 28/** 29 * Instrumentation Test Runner for all MediaPlayer tests. 30 * 31 * Running all tests: 32 * 33 * adb shell am instrument \ 34 * -w com.android.smstests.MediaPlayerInstrumentationTestRunner 35 */ 36 37public class MediaFrameworkPerfTestRunner extends InstrumentationTestRunner { 38 39 40 @Override 41 public TestSuite getAllTests() { 42 TestSuite suite = new InstrumentationTestSuite(this); 43 suite.addTestSuite(MediaPlayerPerformance.class); 44 /*Video Editor performance Test cases*/ 45 suite.addTestSuite(VideoEditorPerformance.class); 46 return suite; 47 } 48 49 @Override 50 public ClassLoader getLoader() { 51 return MediaFrameworkTestRunner.class.getClassLoader(); 52 } 53} 54 55