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