MediaFrameworkTestRunner.java revision 8f5fcab05f1d6f644a9c30f012b8ff302f24a118
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
17package com.android.mediaframeworktest;
18
19import com.android.mediaframeworktest.functional.CameraTest;
20import com.android.mediaframeworktest.functional.MediaAudioTrackTest;
21import com.android.mediaframeworktest.functional.MediaMetadataTest;
22import com.android.mediaframeworktest.functional.MediaMimeTest;
23import com.android.mediaframeworktest.functional.MediaPlayerApiTest;
24import com.android.mediaframeworktest.functional.MediaRecorderTest;
25import com.android.mediaframeworktest.functional.SimTonesTest;
26import com.android.mediaframeworktest.functional.MediaPlayerInvokeTest;
27
28import junit.framework.TestSuite;
29
30import android.test.InstrumentationTestRunner;
31import android.test.InstrumentationTestSuite;
32
33
34/**
35 * Instrumentation Test Runner for all MediaPlayer tests.
36 *
37 * Running all tests:
38 *
39 * adb shell am instrument \
40 *   -w com.android.smstests.MediaPlayerInstrumentationTestRunner
41 */
42
43public class MediaFrameworkTestRunner extends InstrumentationTestRunner {
44
45
46    @Override
47    public TestSuite getAllTests() {
48        TestSuite suite = new InstrumentationTestSuite(this);
49        suite.addTestSuite(MediaPlayerApiTest.class);
50        suite.addTestSuite(SimTonesTest.class);
51        suite.addTestSuite(MediaMetadataTest.class);
52        suite.addTestSuite(CameraTest.class);
53        suite.addTestSuite(MediaRecorderTest.class);
54        suite.addTestSuite(MediaAudioTrackTest.class);
55        suite.addTestSuite(MediaMimeTest.class);
56        suite.addTestSuite(MediaPlayerInvokeTest.class);
57        return suite;
58    }
59
60    @Override
61    public ClassLoader getLoader() {
62        return MediaFrameworkTestRunner.class.getClassLoader();
63    }
64}
65