MediaFrameworkTestRunner.java revision d24b8183b93e781080b2c16c487e60d51c12da31
1/* 2 * Copyright (C) 2008 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.functional.MediaPlayerApiTest; 20import com.android.mediaframeworktest.functional.SimTonesTest; 21import com.android.mediaframeworktest.functional.MediaMetadataTest; 22import com.android.mediaframeworktest.functional.CameraTest; 23import com.android.mediaframeworktest.functional.MediaRecorderTest; 24import com.android.mediaframeworktest.functional.MediaAudioTrackTest; 25 26import junit.framework.TestSuite; 27 28import android.test.InstrumentationTestRunner; 29import android.test.InstrumentationTestSuite; 30 31 32/** 33 * Instrumentation Test Runner for all MediaPlayer tests. 34 * 35 * Running all tests: 36 * 37 * adb shell am instrument \ 38 * -w com.android.smstests.MediaPlayerInstrumentationTestRunner 39 */ 40 41public class MediaFrameworkTestRunner extends InstrumentationTestRunner { 42 43 44 @Override 45 public TestSuite getAllTests() { 46 TestSuite suite = new InstrumentationTestSuite(this); 47 suite.addTestSuite(MediaPlayerApiTest.class); 48 suite.addTestSuite(SimTonesTest.class); 49 suite.addTestSuite(MediaMetadataTest.class); 50 suite.addTestSuite(CameraTest.class); 51 suite.addTestSuite(MediaRecorderTest.class); 52 suite.addTestSuite(MediaAudioTrackTest.class); 53 return suite; 54 } 55 56 @Override 57 public ClassLoader getLoader() { 58 return MediaFrameworkTestRunner.class.getClassLoader(); 59 } 60} 61 62