1 /* 2 * Copyright (C) 2014 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 17 package android.hardware.cts.helpers; 18 19 import junit.framework.Test; 20 import junit.framework.TestSuite; 21 22 import android.hardware.cts.helpers.sensoroperations.SensorOperationTest; 23 import android.hardware.cts.helpers.sensorverification.EventGapVerificationTest; 24 import android.hardware.cts.helpers.sensorverification.EventOrderingVerificationTest; 25 import android.hardware.cts.helpers.sensorverification.FrequencyVerificationTest; 26 import android.hardware.cts.helpers.sensorverification.InitialValueVerificationTest; 27 import android.hardware.cts.helpers.sensorverification.JitterVerificationTest; 28 import android.hardware.cts.helpers.sensorverification.MagnitudeVerificationTest; 29 import android.hardware.cts.helpers.sensorverification.MeanVerificationTest; 30 import android.hardware.cts.helpers.sensorverification.OffsetVerificationTest; 31 import android.hardware.cts.helpers.sensorverification.StandardDeviationVerificationTest; 32 import android.hardware.cts.helpers.sensorverification.TimestampClockSourceVerificationTest; 33 34 /** 35 * Unit test suite for the CTS sensor framework. 36 */ 37 public class FrameworkUnitTests extends TestSuite { 38 FrameworkUnitTests()39 public FrameworkUnitTests() { 40 super(); 41 42 // helpers 43 addTestSuite(SensorCtsHelperTest.class); 44 addTestSuite(SensorStatsTest.class); 45 46 // sensorverification 47 addTestSuite(EventGapVerificationTest.class); 48 addTestSuite(EventOrderingVerificationTest.class); 49 addTestSuite(FrequencyVerificationTest.class); 50 addTestSuite(InitialValueVerificationTest.class); 51 addTestSuite(JitterVerificationTest.class); 52 addTestSuite(MagnitudeVerificationTest.class); 53 addTestSuite(MeanVerificationTest.class); 54 addTestSuite(OffsetVerificationTest.class); 55 addTestSuite(StandardDeviationVerificationTest.class); 56 addTestSuite(TimestampClockSourceVerificationTest.class); 57 58 59 // sensorOperations 60 addTestSuite(SensorOperationTest.class); 61 } 62 suite()63 public static Test suite() { 64 return new FrameworkUnitTests(); 65 } 66 } 67