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