1 /* 2 * Copyright (C) 2009 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 com.android.camera; 18 19 import com.android.camera.stress.CameraLatency; 20 import com.android.camera.stress.CameraStartUp; 21 import com.android.camera.stress.ImageCapture; 22 import com.android.camera.stress.SwitchPreview; 23 24 import junit.framework.Test; 25 import junit.framework.TestSuite; 26 27 /** 28 * Instrumentation Test Runner for all Camera tests. 29 * 30 * Running all tests: 31 * 32 * adb shell am instrument \ 33 * -e class com.android.camera.StressTests \ 34 * -w com.google.android.camera.tests/com.android.camera.stress.CameraStressTestRunner 35 */ 36 37 public class StressTests extends TestSuite { suite()38 public static Test suite() { 39 TestSuite result = new TestSuite(); 40 result.addTestSuite(CameraLatency.class); 41 result.addTestSuite(CameraStartUp.class); 42 result.addTestSuite(ImageCapture.class); 43 // result.addTestSuite(SwitchPreview.class); 44 return result; 45 } 46 } 47