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