HomeSort by relevance Sort by last modified time
    Searched refs:testCase (Results 1 - 25 of 56) sorted by null

1 2 3

  /system/extras/tests/sdcard/
sdcard_perf_test.cpp 43 #include "testcase.h"
102 using android_test::TestCase;
146 void printHeader(int argc, char **argv, const TestCase& testCase)
190 printf("# Fadvise: %s\n", testCase.fadviseAsStr());
200 // @param[out] testCase Structure built from the cmd line args.
201 void parseCmdLine(int argc, char **argv, TestCase *testCase)\
220 testCase->setDataSize(atoi(optarg) * 1024);
223 testCase->setChunkSize(atoi(optarg) * 1024)
    [all...]
  /frameworks/base/test-runner/tests/src/android/test/
TestCaseUtilTest.java 20 import junit.framework.TestCase;
25 public class TestCaseUtilTest extends TestCase {
38 TestCase testCase = new OneTestTestCaseWithSuite();
40 List<String> testCaseNames = TestCaseUtil.getTestCaseNames(testCase, false);
65 public static class OneTestTestCase extends TestCase {
70 public static class OneTestTestCaseWithSuite extends TestCase {
72 TestCase testCase = new OneTestTestCase();
73 testCase.setName("testOne")
    [all...]
AndroidTestRunnerTest.java 24 import junit.framework.TestCase;
37 public class AndroidTestRunnerTest extends TestCase {
53 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
63 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
107 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
108 for (TestCase testCase : testCases) {
109 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext());
123 List<TestCase> testCases = mAndroidTestRunner.getTestCases();
124 for (TestCase testCase : testCases)
    [all...]
  /external/junit/src/junit/textui/
TestRunner.java 19 * TestRunner expects the name of a TestCase class as argument.
59 * Runs a suite extracted from a TestCase subclass.
158 String testCase= "";
166 testCase= extractClassName(args[++i]);
170 testCase= arg.substring(0, lastIndex);
175 testCase= args[i];
178 if (testCase.equals(""))
179 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class");
183 return runSingleMethod(testCase, method, wait);
184 Test suite= getTest(testCase);
    [all...]
  /dalvik/libcore/dom/src/test/java/org/w3c/domts/
DOMErrorMonitor.java 57 public void assertLowerSeverity(DOMTestCase testCase, String id, int severity) {
62 testCase.fail(id + error.getMessage());
  /external/icu4c/test/intltest/
ssearch.h 50 virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
53 virtual int32_t bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
ssearch.cpp 169 const UXMLElement *testCase;
172 while((testCase = root->nextChildElement(tc)) != NULL) {
174 if (testCase->getTagName().compare("test-case") != 0) {
178 const UnicodeString *id = testCase->getAttribute("id");
192 const UnicodeString *strength = testCase->getAttribute("strength");
213 const UnicodeString *norm = testCase->getAttribute("norm");
223 const UnicodeString *alt = testCase->getAttribute("alternate_handling");
231 const UnicodeString *locale = testCase->getAttribute("locale");
246 n = testCase->getChildElement("pattern");
256 n = testCase->getChildElement("pre")
    [all...]
  /frameworks/base/core/tests/coretests/src/android/pim/vcard/
LineVerifier.java 21 import junit.framework.TestCase;
26 private final TestCase mTestCase;
31 public LineVerifier(TestCase testCase, int vcardType) {
32 mTestCase = testCase;
LineVerifierElem.java 21 import junit.framework.TestCase;
27 private final TestCase mTestCase;
31 public LineVerifierElem(TestCase testCase, int vcardType) {
32 mTestCase = testCase;
  /dalvik/libcore/luni/src/test/java/com/google/coretests/
CoreTestResult.java 22 import junit.framework.TestCase;
92 * Checks whether the given TestCase method has the given annotation.
95 boolean hasAnnotation(TestCase test, Class clazz) {
110 if (test instanceof TestCase) {
111 TestCase testCase = (TestCase)test;
114 boolean invert = hasAnnotation(testCase, KnownFailure.class) &&
118 boolean isolate = hasAnnotation(testCase, SideEffect.class) &&
123 testCase, this, p, invert, isolate)
    [all...]
CoreTestSuite.java 25 import junit.framework.TestCase;
145 private TestCase fVictim;
153 * be a TestCase or TestSuite). The CoreTestSuite will be a flattened and
157 public CoreTestSuite(Test suite, int flags, int step, TestCase victim) {
168 * Adds the given ordinary JUnit Test (which may be a TestCase or TestSuite)
185 } else if (test instanceof TestCase) {
186 TestCase testCase = (TestCase)test;
189 boolean isAndroidOnly = hasAnnotation(testCase, AndroidOnly.class)
    [all...]
StatTestRunner.java 33 * TestRunner expects the name of a TestCase class as argument.
81 * Runs a suite extracted from a TestCase subclass.
182 String testCase= "";
201 testCase= extractClassName(args[++i]);
205 testCase= args[i];
208 if (testCase.equals(""))
209 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class");
212 Test suite= getTest(testCase);
  /dalvik/dx/src/junit/textui/
TestRunner.java 14 * TestRunner expects the name of a TestCase class as argument.
54 * Runs a suite extracted from a TestCase subclass.
153 String testCase= "";
160 testCase= extractClassName(args[++i]);
164 testCase= args[i];
167 if (testCase.equals(""))
168 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class");
171 Test suite= getTest(testCase);
  /dalvik/libcore/luni/src/test/java/junit/textui/
TestRunner.java 14 * TestRunner expects the name of a TestCase class as argument.
54 * Runs a suite extracted from a TestCase subclass.
153 String testCase= "";
160 testCase= extractClassName(args[++i]);
164 testCase= args[i];
167 if (testCase.equals(""))
168 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class");
171 Test suite= getTest(testCase);
  /frameworks/base/test-runner/src/junit/textui/
TestRunner.java 14 * TestRunner expects the name of a TestCase class as argument.
54 * Runs a suite extracted from a TestCase subclass.
153 String testCase= "";
160 testCase= extractClassName(args[++i]);
164 testCase= args[i];
167 if (testCase.equals(""))
168 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class");
171 Test suite= getTest(testCase);
  /frameworks/base/test-runner/src/android/test/
AndroidTestRunner.java 25 import junit.framework.TestCase;
38 private List<TestCase> mTestCases;
51 TestCase testCase = buildSingleTestMethod(testClass, testMethodName);
52 mTestCases = Lists.newArrayList(testCase);
64 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true);
92 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) {
94 TestCase testCase = (TestCase) testClass.newInstance()
    [all...]
TestBrowserControllerImpl.java 23 import junit.framework.TestCase;
68 } else if (TestCase.class.isAssignableFrom(test.getClass())) {
69 TestCase testCase = (TestCase) test;
70 testName = testCase.getClass().getName();
72 String testMethodName = testCase.getName();
  /external/icu4c/test/iotest/
iotest.cpp 191 const DataMap *testCase;
218 for(i=0; testData->nextCase(testCase, errorCode); ++i) {
233 tempStr=testCase->getString("format", errorCode);
235 tempStr=testCase->getString("result", errorCode);
237 tempStr=testCase->getString("argument", errorCode);
247 switch (testCase->getString("argumentType", errorCode)[0]) {
285 log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i);
359 const DataMap *testCase;
386 for(i=0; testData->nextCase(testCase, errorCode); ++i) {
400 tempStr=testCase->getString("format", errorCode)
    [all...]
  /cts/tools/host/test/com/android/cts/
TestSessionBuilderTests.java 93 + " <TestCase name=\"" + caseName + "\"" + " priority=\"mandatory\">\n"
98 + " </TestCase>\n"
128 TestCase testCase = testSuite.getTestCases().iterator().next();
129 assertEquals(caseName, testCase.getName());
130 assertEquals("mandatory", testCase.getPriority());
132 Test test = testCase.getTests().iterator().next();
187 + " <TestCase name=\"" + caseName + "\"" + " priority=\"mandatory\">\n"
192 + " </TestCase>\n"
273 + " <TestCase name=\"" + caseName + "\"" + " priority=\"mandatory\">\n
    [all...]
  /external/icu4c/test/letest/
gendata.cpp 145 const UXMLElement *testCase;
148 while((testCase = root->nextChildElement(tc)) != NULL) {
149 if (testCase->getTagName().compare(test_case) == 0) {
150 char *id = getCString(testCase->getAttribute(id_attr));
151 char *script = getCString(testCase->getAttribute(script_attr));
152 char *lang = getCString(testCase->getAttribute(lang_attr));
187 while((element = testCase->nextChildElement(ec)) != NULL) {
xmlreader.cpp 163 const UXMLElement *testCase;
166 while((testCase = root->nextChildElement(tc)) != NULL) {
167 if (testCase->getTagName().compare(test_case) == 0) {
168 char *id = getCString(testCase->getAttribute(id_attr));
169 char *script = getCString(testCase->getAttribute(script_attr));
170 char *lang = getCString(testCase->getAttribute(lang_attr));
199 while((element = testCase->nextChildElement(ec)) != NULL) {
  /cts/tools/host/src/com/android/cts/
HostUnitTestRunner.java 27 import junit.framework.TestCase;
38 private TestCase mTestCase;
80 public TestCase loadTestCase(final String jarPath,
94 if ((testMethodName != null) && TestCase.class.isAssignableFrom(testClass)) {
131 private TestCase buildTestMethod(Class testClass,
134 TestCase testCase = (TestCase) testClass.newInstance();
135 testCase.setName(testMethodName);
136 return testCase;
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/js1_2/Array/
slice.js 96 var testCase = new TestCase(SECTION, testname, true, passed);
98 testCase.reason = reason;
99 return testCase;
  /external/webkit/JavaScriptCore/tests/mozilla/js1_2/String/
slice.js 96 var testCase = new TestCase(SECTION, testname, true, passed);
98 testCase.reason = reason;
99 return testCase;
  /frameworks/base/test-runner/src/android/test/suitebuilder/
TestMethod.java 19 import junit.framework.TestCase;
27 * Represents a test to be run. Can be constructed without instantiating the TestCase or even
34 private final Class<? extends TestCase> enclosingClass;
36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) {
40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) {
46 public TestMethod(TestCase testCase) {
47 this(testCase.getName(), testCase.getClass());
67 public Class<? extends TestCase> getEnclosingClass()
    [all...]

Completed in 875 milliseconds

1 2 3