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.functional.audio;
18
19// import android.content.Resources;
20import com.android.mediaframeworktest.MediaFrameworkTest;
21import com.android.mediaframeworktest.functional.TonesAutoTest;
22
23import android.content.Context;
24import android.test.ActivityInstrumentationTestCase;
25import android.test.suitebuilder.annotation.LargeTest;
26
27/**
28 * Junit / Instrumentation test case for the SIM tone generator
29 *
30 */
31public class SimTonesTest extends ActivityInstrumentationTestCase<MediaFrameworkTest> {
32    private String TAG = "SimTonesTest";
33
34    Context mContext;
35
36    public SimTonesTest() {
37        super("com.android.mediaframeworktest", MediaFrameworkTest.class);
38      }
39
40       protected void setUp() throws Exception {
41         super.setUp();
42     }
43
44   @LargeTest
45   public void testDtmfTones() throws Exception {
46       boolean result = TonesAutoTest.tonesDtmfTest();
47     assertTrue("DTMF Tones", result);
48   }
49
50   @LargeTest
51   public void testSupervisoryTones() throws Exception {
52       boolean result = TonesAutoTest.tonesSupervisoryTest();
53     assertTrue("Supervisory Tones", result);
54   }
55
56   @LargeTest
57   public void testProprietaryTones() throws Exception {
58       boolean result = TonesAutoTest.tonesProprietaryTest();
59     assertTrue("Proprietary Tones", result);
60   }
61
62   @LargeTest
63   public void testSimultaneousTones() throws Exception {
64       boolean result = TonesAutoTest.tonesSimultaneousTest();
65     assertTrue("Simultaneous Tones", result);
66   }
67
68   @LargeTest
69   public void testStressTones() throws Exception {
70       boolean result = TonesAutoTest.tonesStressTest();
71     assertTrue("Stress Tones", result);
72   }
73}
74