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