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 17 package android.core; 18 19 import com.android.internal.telephony.TelephonyTests; 20 21 import junit.framework.TestSuite; 22 23 import android.graphics.ColorStateListTest; 24 import android.location.LocationManagerProximityTest; 25 import android.location.LocationTest; 26 import android.test.AndroidTestRunnerTest; 27 import android.test.InstrumentationTestRunnerTest; 28 import android.util.*; 29 import android.view.FocusFinderTest; 30 import android.view.ViewGroupAttributesTest; 31 import android.webkit.*; 32 33 public class CoreTests extends TestSuite { 34 35 /** 36 * To run these tests: 37 * $ mmm java/tests && adb sync 38 * $ adb shell am instrument -w \ 39 * -e class android.core.CoreTests \ 40 * android.core/android.test.InstrumentationTestRunner 41 */ suite()42 public static TestSuite suite() { 43 TestSuite suite = new TestSuite(CoreTests.class.getName()); 44 45 // Re-enable StateListDrawableTest when we are running in the 46 // framework-test directory which allows access to package private 47 // access for MockView 48 // suite.addTestSuite(StateListDrawableTest.class); 49 suite.addTestSuite(DayOfMonthCursorTest.class); 50 suite.addTestSuite(MonthDisplayHelperTest.class); 51 suite.addTestSuite(StateSetTest.class); 52 suite.addTestSuite(ColorStateListTest.class); 53 suite.addTestSuite(FocusFinderTest.class); 54 suite.addTestSuite(ViewGroupAttributesTest.class); 55 suite.addTest(TelephonyTests.suite()); 56 suite.addTestSuite(FloatMathTest.class); 57 suite.addTest(JavaTests.suite()); 58 suite.addTestSuite(LocationTest.class); 59 suite.addTestSuite(LocationManagerProximityTest.class); 60 suite.addTestSuite(AndroidTestRunnerTest.class); 61 suite.addTestSuite(InstrumentationTestRunnerTest.class); 62 suite.addTestSuite(CookieTest.class); 63 64 return suite; 65 } 66 } 67