1 /* 2 * Copyright (C) 2020 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 package com.android.mediaframeworktest; 17 18 import android.os.Bundle; 19 import android.test.InstrumentationTestRunner; 20 import android.test.InstrumentationTestSuite; 21 22 import com.android.mediaframeworktest.template.AudioTestHarnessTemplateAndroidTest; 23 24 import junit.framework.TestSuite; 25 26 /** 27 * Runner class for Audio Test Harness. 28 * 29 * This will add all test methods defined in AudioTestHarnessTemplateAndroidTest class to the test 30 * suite and execute them. 31 */ 32 public class AudioTestHarnessTemplateRunner extends InstrumentationTestRunner { 33 34 @Override getAllTests()35 public TestSuite getAllTests() { 36 TestSuite suite = new InstrumentationTestSuite(this); 37 suite.addTestSuite(AudioTestHarnessTemplateAndroidTest.class); 38 return suite; 39 } 40 41 @Override getLoader()42 public ClassLoader getLoader() { 43 return AudioTestHarnessTemplateRunner.class.getClassLoader(); 44 } 45 46 @Override onCreate(Bundle icicle)47 public void onCreate(Bundle icicle) { 48 super.onCreate(icicle); 49 } 50 51 } 52