blob: bacb7e26e829c3c5dc511c4ed72de3b4c930b230 [file] [log] [blame]
The Android Open Source Project792a2202009-03-03 19:32:30 -08001/*
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.music.tests;
18
19import android.test.InstrumentationTestRunner;
20import android.test.InstrumentationTestSuite;
21import com.android.music.tests.functional.TestSongs;
22import com.android.music.tests.functional.TestPlaylist;
23
24import junit.framework.TestSuite;
25
26
27/**
28 * Instrumentation Test Runner for all Music Player tests.
29 *
30 * Precondition: Opened keyboard and wipe the userdata
31 *
32 * Running all tests:
33 *
34 * adb shell am instrument \
35 * -w com.android.music.tests/.MusicPlayerFunctionalTestRunner
36 */
37
38public class MusicPlayerFunctionalTestRunner extends InstrumentationTestRunner {
39
40
41 @Override
42 public TestSuite getAllTests() {
43 TestSuite suite = new InstrumentationTestSuite(this);
44 suite.addTestSuite(TestSongs.class);
45 suite.addTestSuite(TestPlaylist.class);
Yu Shan Emily Lauc19ee792009-08-28 10:44:14 -070046 suite.addTestSuite(MusicPlayerStability.class);
The Android Open Source Project792a2202009-03-03 19:32:30 -080047 return suite;
48 }
49
50 @Override
51 public ClassLoader getLoader() {
52 return MusicPlayerFunctionalTestRunner.class.getClassLoader();
53 }
54}
55
56
57