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