/system/extras/tests/sdcard/ |
sdcard_perf_test.cpp | 44 #include "testcase.h" 103 using android_test::TestCase; 149 void printHeader(int argc, char **argv, const TestCase& testCase) 193 printf("# Fadvise: %s\n", testCase.fadviseAsStr()); 203 // @param[out] testCase Structure built from the cmd line args. 204 void parseCmdLine(int argc, char **argv, TestCase *testCase)\ 223 testCase->setDataSize(atoi(optarg) * 1024); 226 testCase->setChunkSize(atoi(optarg) * 1024) [all...] |
/cts/suite/audio_quality/test/ |
AudioHardwareTest.cpp | 39 TaskCase* testCase = new TaskCase(); 40 ASSERT_TRUE(testCase != NULL); 41 android::sp<AudioHardware> playback = AudioHardware::createAudioHw(false, true, testCase); 43 android::sp<AudioHardware> recording = AudioHardware::createAudioHw(false, false, testCase); 45 delete testCase;
|
ModelBuilderTest.cpp | 29 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); 30 ASSERT_TRUE(testCase != NULL); 31 //TODO verify TestCase 32 delete testCase; 37 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); 38 ASSERT_TRUE(testCase != NULL); 39 //TODO verify TestCase 40 delete testCase; 47 //TODO verify TestCase
|
/external/webkit/Tools/Scripts/webkitperl/VCSUtils_unittest/ |
fixChangeLogPatchThenSetChangeLogDateAndReviewer.pl | 80 foreach my $testCase (@testCaseHashRefs) { 81 my $testNameStart = "setChangeLogDateAndReviewer(fixChangeLogPatch()): $testCase->{testName}: comparing"; 83 my $patch = $testCase->{patch}; 84 my $reviewer = $testCase->{reviewer}; 85 my $epochTime = $testCase->{epochTime}; 89 my $expectedReturn = $testCase->{expectedReturn};
|
parseDiffHeader.pl | 107 foreach my $testCase (@testCaseHashRefs) { 108 my $testNameStart = "parseDiffHeader(): $testCase->{diffName}: comparing"; 111 open($fileHandle, "<", \$testCase->{inputText}); 115 my $expectedReturn = $testCase->{expectedReturn}; 120 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
|
prepareParsedPatch.pl | 127 foreach my $testCase (@testCases) { 128 my $testName = $testCase->{testName}; 129 my @diffHashRefs = @{$testCase->{diffHashRefsInput}}; 130 my $expected = $testCase->{expected};
|
setChangeLogDateAndReviewer.pl | 117 foreach my $testCase (@testCaseHashRefs) { 118 my $testNameStart = "setChangeLogDateAndReviewer(): $testCase->{testName}: comparing"; 120 my $patch = $testCase->{patch}; 121 my $reviewer = $testCase->{reviewer}; 122 my $epochTime = $testCase->{epochTime}; 125 my $expectedReturn = $testCase->{expectedReturn};
|
parseSvnDiffHeader.pl | 206 foreach my $testCase (@testCaseHashRefs) { 207 my $testNameStart = "parseSvnDiffHeader(): $testCase->{diffName}: comparing"; 210 open($fileHandle, "<", \$testCase->{inputText}); 214 my $expectedReturn = $testCase->{expectedReturn}; 219 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
|
parseSvnPropertyValue.pl | 219 foreach my $testCase (@testCaseHashRefs) { 220 my $testNameStart = "parseSvnPropertyValue(): $testCase->{diffName}: comparing"; 223 open($fileHandle, "<", \$testCase->{inputText}); 227 my $expectedReturn = $testCase->{expectedReturn}; 232 is($gotNextLine, $testCase->{expectedNextLine}, "$testNameStart next read line.");
|
/cts/suite/audio_quality/lib/src/audio/ |
AudioHardware.cpp | 73 TaskCase* testCase) 89 if (testCase != NULL) { 91 hw = new AudioRemotePlayback(testCase->getRemoteAudio()); 93 hw = new AudioRemoteRecording(testCase->getRemoteAudio()); 105 bool AudioHardware::startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase) 107 if (testCase == NULL) { // default implementation only handles local buffer. 110 android::sp<Buffer> buffer = testCase->findBuffer(id);
|
/cts/suite/audio_quality/lib/include/audio/ |
AudioHardware.h | 58 TaskCase* testCase = NULL); 67 * Convenience API to pass buffer ID. The buffer can be either present in testCase 68 * or in remote device (when testCase is NULL) 70 virtual bool startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase = NULL);
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TestSuite.java | 43 Map<String, TestCase> mChildTestCaseMap = new LinkedHashMap<String, TestCase>(); 81 TestCase testCase = getTestCase(testClassName); 82 return testCase.findTest(testName, insertIfMissing); 98 * Gets all the child {@link TestCase}s 100 public Collection<TestCase> getTestCases() { 120 * Get the child {@link TestCase} with given name, creating if necessary. 124 private TestCase getTestCase(String testCaseName) { 125 TestCase testCase = mChildTestCaseMap.get(testCaseName) [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 | 7 import junit.framework.TestCase; 19 * <p>TestRunner expects the name of a TestCase class as argument. 59 * Runs a suite extracted from a TestCase subclass. 61 static public void run(Class<? extends TestCase> testClass) { 153 String testCase= ""; 161 testCase= extractClassName(args[++i]); 165 testCase= arg.substring(0, lastIndex); 170 testCase= args[i]; 173 if (testCase.equals("")) 174 throw new Exception("Usage: TestRunner [-wait] testCaseName, where name is the name of the TestCase class") [all...] |
/external/icu4c/test/intltest/ |
ssearch.h | 51 virtual int32_t monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern, 54 virtual int32_t bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
|
uts46test.cpp | 236 struct TestCase { 244 static const TestCase testCases[]={ 561 const TestCase &testCase=testCases[i]; 562 UnicodeString input(ctou(testCase.s)); 563 UnicodeString expected(ctou(testCase.u)); 572 (int)i, testCase.o, testCase.s) 577 uint32_t uniErrors=testCase.errors&~ 581 char mode=testCase.o[0] [all...] |
/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());
|
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/ |
TestListParser.java | 37 TestCase currentCase = null; 96 private TestCase handleCase(TestSuite suite, String caseName) { 97 TestCase testCase = new TestCase(caseName); 98 suite.addCase(testCase); 99 return testCase; 102 private void handleTest(TestCase testCase, String test, int timeout) { 103 testCase.addTest(test, timeout) [all...] |
TestSuite.java | 31 private final List<TestCase> mCases = new ArrayList<TestCase>(); 57 public void addCase(TestCase testCase) { 58 mCases.add(testCase); 61 public Collection<TestCase> getCases() {
|
/frameworks/base/test-runner/src/android/test/ |
AndroidTestRunner.java | 25 import junit.framework.TestCase; 39 private List<TestCase> mTestCases; 52 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); 53 mTestCases = Lists.newArrayList(testCase); 65 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true); 93 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { 109 private TestCase newSingleTestMethod(Class testClass, String testMethodName, 112 TestCase testCase = (TestCase) constructor.newInstance(args) [all...] |
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/testrunner/ |
TestCaseCollector.java | 19 import junit.framework.TestCase; 34 private List<TestCase> mTestCases; 39 mTestCases = new ArrayList<TestCase>(); 102 public List<TestCase> getTestCases() { 111 TestCase testCase = (TestCase) clazz.newInstance(); 112 testCase.setName(method); 113 mTestCases.add(testCase);
|
/external/icu4c/test/iotest/ |
iotest.cpp | 199 const DataMap *testCase; 226 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 241 tempStr=testCase->getString("format", errorCode); 243 tempStr=testCase->getString("result", errorCode); 245 tempStr=testCase->getString("argument", errorCode); 255 switch (testCase->getString("argumentType", errorCode)[0]) { 293 log_err("Unknown type %c for test %d\n", testCase->getString("argumentType", errorCode)[0], i); 365 const DataMap *testCase; 392 for(i=0; testData->nextCase(testCase, errorCode); ++i) { 406 tempStr=testCase->getString("format", errorCode) [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/ |
TestSuiteAdapter.java | 59 TestCase testCase = new TestCase(in, out); 60 currentRule.addTestCase(testCase);
|
/external/webkit/Tools/TestWebKitAPI/ |
Test.h | 43 Register(const std::string& testSuite, const std::string& testCase) 45 TestsController::shared().registerCreateTestFunction(testSuite + "/" + testCase, Register::create);
|