blob: 7ed8317ccc5101f82dda87593065214d487d0a2a [file] [log] [blame]
Doris Liuffa62372013-01-31 19:03:48 -08001/*
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
17package com.android.camera;
18
19import com.android.camera.stress.ImageCapture;
20import com.android.camera.stress.SwitchPreview;
21import com.android.camera.stress.CameraLatency;
22import com.android.camera.stress.CameraStartUp;
23
24import junit.framework.Test;
25import 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
38public class StressTests extends TestSuite {
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}