/aosp12/art/test/800-smali/src/ |
H A D | Main.java | 28 private static class TestCase { class in Main 56 private List<TestCase> testCases; 60 testCases = new LinkedList<TestCase>(); in Main() 63 testCases.add(new TestCase("PackedSwitch key INT_MAX", "PackedSwitch", in Main() 65 testCases.add(new TestCase("PackedSwitch key overflow", "b_24399945", in Main() 69 testCases.add(new TestCase("FloatBadArgReg", "FloatBadArgReg", "getInt", in Main() 111 testCases.add(new TestCase("b/22080519", "B22080519", "run", null, in Main() 151 testCases.add(new TestCase("b/21869691", "B21869691A", "run", null, in Main() 153 testCases.add(new TestCase("b/26143249", "B26143249", "run", null, in Main() 213 for (TestCase tc : testCases) { in runTests() [all …]
|
/aosp12/frameworks/base/test-runner/src/android/test/suitebuilder/ |
H A D | TestGrouping.java | 22 import junit.framework.TestCase; 49 private final SortedSet<Class<? extends TestCase>> testCaseClasses; 70 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests() 139 List<Class<? extends TestCase>> testClasses = new ArrayList<Class<? extends TestCase>>(); in selectTestClasses() 142 testClasses.add((Class<? extends TestCase>) testClass); in selectTestClasses() 164 public int compare(Class<? extends TestCase> class1, in compare() 165 Class<? extends TestCase> class2) { in compare() 181 public int compare(Class<? extends TestCase> class1, in compare() 182 Class<? extends TestCase> class2) { in compare() 191 return TestCase.class.isAssignableFrom((Class<?>) aClass) in apply() [all …]
|
H A D | TestMethod.java | 19 import junit.framework.TestCase; 38 private final Class<? extends TestCase> enclosingClass; 40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() 44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() 50 public TestMethod(TestCase testCase) { in TestMethod() 71 public Class<? extends TestCase> getEnclosingClass() { in getEnclosingClass() 75 public TestCase createTest() in createTest() 81 private TestCase instantiateTest(Class testCaseClass, String testName) in instantiateTest() 91 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest() 97 return ((Constructor<? extends TestCase>) constructor) in instantiateTest()
|
/aosp12/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ExportTestProvider.java | 32 import junit.framework.TestCase; 100 TestCase.assertTrue(uri != null); in queryEntities() 105 TestCase.assertEquals(1, selectionArgs.length); in queryEntities() 107 TestCase.assertTrue(id >= 0); in queryEntities() 108 TestCase.assertTrue(id < mContactEntryList.size()); in queryEntities() 118 TestCase.assertNull(selection); 119 TestCase.assertNull(selectionArgs); 120 TestCase.assertNull(sortOrder); 158 TestCase.assertEquals(Data.CONTACT_ID, columnName); 164 TestCase.assertEquals(0, columnIndex); [all …]
|
H A D | LineVerifierElem.java | 23 import junit.framework.TestCase; 58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found"); in verify() 65 TestCase.fail("Multiple \"END:VCARD\" line found"); in verify() 74 TestCase.fail("Multiple VERSION line + found"); in verify() 82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify() 84 TestCase.fail("Property other than END came after END property: " + line); in verify() 91 TestCase.fail("Unexpected line: " + line); in verify() 102 TestCase.fail("Expected line(s) not found:" + buffer.toString()); in verify()
|
H A D | ImportTestProvider.java | 27 import junit.framework.TestCase; 62 TestCase.fail("There is no operation."); in applyBatch() 83 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_NAME)); in applyBatch() 84 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_TYPE)); in applyBatch() 88 TestCase.fail("Unregistered MimeType " + mimeType); in applyBatch() 118 TestCase.fail("ContentValues for MimeType " + mimeType in applyBatch() 130 TestCase.assertTrue(contentValuesCollection.remove(expectedContentValues)); in applyBatch() 145 TestCase.fail(builder.toString()); in applyBatch() 148 TestCase.fail("Unexpected Uri has come: " + uri); in applyBatch() 170 TestCase.fail(failMsg); in verify() [all …]
|
/aosp12/frameworks/base/test-runner/tests/src/android/test/ |
H A D | AndroidTestRunnerTest.java | 23 import junit.framework.TestCase; 36 public class AndroidTestRunnerTest extends TestCase { 107 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInSuite() 123 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInNestedSuite() 143 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuiteProvider() 155 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuite() 166 for (TestCase testCase : testCases) { in testRunSingleTestMethod() 230 public static class OneTestTestCase extends TestCase { 235 public static class TwoTestTestCase extends TestCase { 269 if (test instanceof TestCase) { in startTest() [all …]
|
H A D | TestCaseUtilTest.java | 22 import junit.framework.TestCase; 27 public class TestCaseUtilTest extends TestCase { 48 TestCase testCase = new OneTestTestCaseWithSuite(); in testGetTests_ForTestCaseWithSuiteMethod() 77 public static class OneTestTestCase extends TestCase { 82 public static class OneTestTestCaseWithSuite extends TestCase { 84 TestCase testCase = new OneTestTestCase(); in suite()
|
/aosp12/art/test/1965-get-set-local-primitive-no-tables/src/art/ |
H A D | Test1965.java | 90 public static class TestCase { 93 public TestCase(Method target) { 176 final TestCase[] MAIN_TEST_CASES = new TestCase[] { 177 new TestCase(getMethod("IntMethod")), new TestCase(getMethod("LongMethod")), 178 new TestCase(getMethod("FloatMethod")), new TestCase(getMethod("DoubleMethod")), 179 new TestCase(getMethod("ObjectMethod")), new TestCase(getMethod("NullObjectMethod")), 196 for (TestCase t : MAIN_TEST_CASES) { 203 new TestCase(getMethod("BooleanMethod")) 205 new TestCase(getMethod("ByteMethod")) 208 new TestCase(getMethod("CharMethod")) [all …]
|
/aosp12/art/test/1966-get-set-local-objects-no-table/src/art/ |
H A D | Test1966.java | 135 public static class TestCase { 138 public TestCase(Method target) { 209 final TestCase[] MAIN_TEST_CASES = new TestCase[] { 210 new TestCase(getMethod("ObjectMethod")), 211 new TestCase(getMethod("CastInterfaceMethod")), 212 new TestCase(getMethod("CastExactMethod")), 213 new TestCase(getMethod("InterfaceMethod")), 214 new TestCase(getMethod("ExactClassMethod")), 215 new TestCase(getMethod("PrimitiveMethod")), 216 new TestCase(getMethod("NullMethod")), [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
H A D | FloatingRotationButtonPositionCalculatorTest.kt | 16 internal class FloatingRotationButtonPositionCalculatorTest(private val testCase: TestCase) 34 internal class TestCase( 50 fun getParams(): Collection<TestCase> = 52 TestCase( 62 TestCase( 72 TestCase( 82 TestCase( 92 TestCase( 102 TestCase( 112 TestCase(
|
/aosp12/art/test/1912-get-set-local-primitive/src/art/ |
H A D | Test1912.java | 143 public static class TestCase { 146 public TestCase(Method target) { 226 final TestCase[] MAIN_TEST_CASES = new TestCase[] { 227 new TestCase(getMethod("IntMethod")), new TestCase(getMethod("LongMethod")), 228 new TestCase(getMethod("FloatMethod")), new TestCase(getMethod("DoubleMethod")), 229 new TestCase(getMethod("ObjectMethod")), new TestCase(getMethod("NullObjectMethod")), 246 for (TestCase t : MAIN_TEST_CASES) { 253 new TestCase(getMethod("BooleanMethod")) 255 new TestCase(getMethod("ByteMethod")) 258 new TestCase(getMethod("CharMethod")) [all …]
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
H A D | slice.mod.py | 18 TestCase = collections.namedtuple("TestCase", [ variable 24 TestCase( 33 TestCase( 42 TestCase( 51 TestCase( 60 TestCase( 69 TestCase( 78 TestCase( 87 TestCase(
|
H A D | topk_v2.mod.py | 18 TestCase = collections.namedtuple("TestCase", [ variable 24 TestCase( 32 TestCase( 40 TestCase( 48 TestCase( 56 TestCase( 64 TestCase(
|
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A D | MacAddressTest.java | 45 static class TestCase { class in MacAddressTest 51 TestCase(String macAddress, String ouiString, int addressType, boolean isLocallyAssigned) { in TestCase() method in MacAddressTest.TestCase 81 TestCase[] tests = { in testMacAddress() 82 new TestCase("ff:ff:ff:ff:ff:ff", "ff:ff:ff", TYPE_BROADCAST, LOCALLY_ASSIGNED), in testMacAddress() 83 new TestCase("d2:c4:22:4d:32:a8", "d2:c4:22", TYPE_UNICAST, LOCALLY_ASSIGNED), in testMacAddress() 84 new TestCase("33:33:aa:bb:cc:dd", "33:33:aa", TYPE_MULTICAST, LOCALLY_ASSIGNED), in testMacAddress() 85 new TestCase("06:00:00:00:00:00", "06:00:00", TYPE_UNICAST, LOCALLY_ASSIGNED), in testMacAddress() 86 new TestCase("07:00:d3:56:8a:c4", "07:00:d3", TYPE_MULTICAST, LOCALLY_ASSIGNED), in testMacAddress() 87 new TestCase("00:01:44:55:66:77", "00:01:44", TYPE_UNICAST, GLOBALLY_UNIQUE), in testMacAddress() 88 new TestCase("08:00:22:33:44:55", "08:00:22", TYPE_UNICAST, GLOBALLY_UNIQUE), in testMacAddress() [all …]
|
/aosp12/art/test/1914-get-local-instance/src/art/ |
H A D | Test1914.java | 90 public static class TestCase { 94 public TestCase(Method target) { 97 public TestCase(Object thiz, Method target) { 192 final TestCase[] MAIN_TEST_CASES = new TestCase[] { 193 new TestCase(null, getMethod(Test1914.class, "StaticMethod")), 194 new TestCase(null, getMethod(Test1914.class, "NativeStaticMethod")), 195 new TestCase(new TargetClass("InstanceMethodObject"), 197 new TestCase(new TargetClass("NativeInstanceMethodObject"), 199 new TestCase(getProxyObject(Foo.class), 203 for (TestCase t: MAIN_TEST_CASES) {
|
/aosp12/frameworks/base/test-runner/src/android/test/ |
H A D | AndroidTestRunner.java | 24 import junit.framework.TestCase; 45 private List<TestCase> mTestCases; 57 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() 71 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true); in setTest() 99 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() 115 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() 118 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod() 135 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod() 168 public List<TestCase> getTestCases() { in getTestCases() 192 for (TestCase testCase : mTestCases) { in runTest()
|
H A D | TestCaseUtil.java | 21 import junit.framework.TestCase; 58 if (test instanceof TestCase && in getTests() 59 ((TestCase)test).getName() == null) { in getTests() 114 if (test instanceof TestCase) { in getTestName() 115 TestCase testCase = (TestCase) test; in getTestName()
|
/aosp12/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
H A D | AssignableFromTest.java | 19 import junit.framework.TestCase; 23 public class AssignableFromTest extends TestCase { 52 private TestMethod testMethodFor(Class<? extends TestCase> aClass) in testMethodFor() 58 private class Animal extends TestCase { 76 private class Pencil extends TestCase implements WritingInstrument { 81 private class Pen extends TestCase implements WritingInstrument {
|
H A D | TestPredicatesTest.java | 20 import junit.framework.TestCase; 28 public class TestPredicatesTest extends TestCase { 44 private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) in hasExampleAnnotation() 57 static class ClassWithAnnotation extends TestCase { 67 static class ClassWithoutAnnotation extends TestCase {
|
/aosp12/art/test/1913-get-set-local-objects/src/art/ |
H A D | Test1913.java | 173 public static class TestCase { 176 public TestCase(Method target) { 256 final TestCase[] MAIN_TEST_CASES = new TestCase[] { 257 new TestCase(getMethod("ObjectMethod")), new TestCase(getMethod("InterfaceMethod")), 258 new TestCase(getMethod("SpecificClassMethod")), new TestCase(getMethod("PrimitiveMethod")), 259 new TestCase(getMethod("NullObjectMethod")), 260 new TestCase(getMethod("NullInterfaceMethod")), 261 new TestCase(getMethod("NullSpecificClassMethod")), 274 for (TestCase t : MAIN_TEST_CASES) {
|
/aosp12/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
H A D | TestCaseCollector.java | 19 import junit.framework.TestCase; 34 private List<TestCase> mTestCases; 39 mTestCases = new ArrayList<TestCase>(); in TestCaseCollector() 101 public List<TestCase> getTestCases() { in getTestCases() 110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod()
|
/aosp12/system/chre/test/common/ |
H A D | run_tests.cc | 27 using pw::unit_test::TestCase; 44 void TestCaseStart(const TestCase &test_case) override { in TestCaseStart() 48 void TestCaseEnd(const TestCase &test_case, TestResult result) override { in TestCaseEnd() 59 void TestCaseExpect(const TestCase &test_case, in TestCaseExpect() 68 void TestCaseDisabled(const TestCase &test_case) override { in TestCaseDisabled()
|
/aosp12/frameworks/base/test-base/src/junit/framework/ |
H A D | TestSuite.java | 62 if (test instanceof TestCase) in createTest() 63 ((TestCase) test).setName(name); in createTest() 94 return new TestCase("warning") { in warning() 161 public TestSuite(Class<? extends TestCase> theClass, String name) { 183 if (TestCase.class.isAssignableFrom(each)) 184 return new TestSuite(each.asSubclass(TestCase.class)); 193 public TestSuite(Class<? extends TestCase>[] classes, String name) { 208 public void addTestSuite(Class<? extends TestCase> testClass) {
|
/aosp12/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
H A D | SmokeTestRunner.java | 25 import junit.framework.TestCase; 50 final TestCase setupTest = new ProcessErrorsTest() { in getAllTests() 59 final TestCase postBootTest = new ProcessErrorsTest() { in getAllTests() 69 final TestCase appTest = new ProcessErrorsTest() { in getAllTests() 88 final TestCase asyncErrorTest = new ProcessErrorsTest() { in getAllTests()
|