• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 \
34  *    -e class com.android.camera.StressTests \
35  *    -w com.android.camera.tests/com.android.camera.stress.CameraStressTestRunner
36  */
37 
38 public class StressTests extends TestSuite {
suite()39     public static Test suite() {
40         TestSuite result = new TestSuite();
41         result.addTestSuite(SwitchPreview.class);
42         result.addTestSuite(ImageCapture.class);
43         result.addTestSuite(CameraLatency.class);
44         result.addTestSuite(CameraStartUp.class);
45         return result;
46     }
47 }
48