/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | NativeStressTestParserTest.java | 26 private NativeStressTestParser mParser; field in NativeStressTestParserTest 34 mParser = new NativeStressTestParser(RUN_NAME); in setUp() 43 mParser.processNewLines(new String[] {}); in testParse_empty() 44 mParser.done(); in testParse_empty() 54 mParser.processNewLines(new String[] {"blah blah", "more blah"}); in testParse_garbage() 55 mParser.done(); in testParse_garbage() 65 mParser.processNewLines(new String[] {"==== Completed pass: 0"}); in testParse_oneIteration() 66 mParser.done(); in testParse_oneIteration() 76 mParser.processNewLines(new String[] {"====Completedpass:0succeeded", in testParse_whitespace() 78 mParser.done(); in testParse_whitespace() [all …]
|
D | NativeBenchmarkTestParserTest.java | 29 private NativeBenchmarkTestParser mParser; field in NativeBenchmarkTestParserTest 33 mParser = new NativeBenchmarkTestParser(RUN_NAME); in setUp() 39 mParser.processNewLines(new String[] {"Time per iteration min: 5 avg: 55 max: 35"}); in testParse_allInts() 40 mParser.done(); in testParse_allInts() 51 mParser.processNewLines(new String[] { in testParse_allFloats() 53 mParser.done(); in testParse_allFloats() 64 mParser.processNewLines(new String[] { in testParse_scientific() 66 mParser.done(); in testParse_scientific() 74 Assert.assertEquals(averageTime, mParser.getAvgOperationTime(), 0.0); in verifyAvgTime()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | LogcatUpdaterEventParserTest.java | 62 private LogcatUpdaterEventParser mParser = null; field in LogcatUpdaterEventParserTest 96 mParser = new LogcatUpdaterEventParser(mMockReceiver); in setUp() 107 UpdaterEventType.UPDATE_VERIFIER_COMPLETE, mParser.parseEventType(mappedLogLine)); in testParseEventTypeExactMatch() 118 assertEquals(UpdaterEventType.ERROR, mParser.parseEventType(log)); in testParseEventTypePartialMatch() 124 assertEquals(null, mParser.parseEventType(unmappedLogLine)); in testParseEventTypeUnknown() 126 assertEquals(null, mParser.parseEventType(unmappedLogLine)); in testParseEventTypeUnknown() 128 assertEquals(null, mParser.parseEventType(unmappedLogLine)); in testParseEventTypeUnknown() 136 assertEquals(UpdaterEventType.ERROR, mParser.parseEventType(error1)); in testParseEventTypeError() 141 mParser.registerEventTrigger( in testParseEventTypeMatchOrder() 145 mParser.registerEventTrigger( in testParseEventTypeMatchOrder() [all …]
|
D | HprofAllocSiteParserTest.java | 57 private HprofAllocSiteParser mParser; field in HprofAllocSiteParserTest 61 mParser = new HprofAllocSiteParser(); in setUp() 70 Map<String, String> results = mParser.parse(f); in testParse() 85 Map<String, String> results = mParser.parse(f); in testParse_invalidContent() 95 Map<String, String> results = mParser.parse(null); in testParse_noFile() 103 Map<String, String> results = mParser.parse(new File("thisdoesnotexistsatall")); in testParse_fileDoesNotExists()
|
D | ListInstrumentationParserTest.java | 50 private ListInstrumentationParser mParser; field in ListInstrumentationParserTest 54 mParser = new ListInstrumentationParser(); in setUp() 61 List<InstrumentationTarget> targets = mParser.getInstrumentationTargets(); in testEmptyParse() 75 mParser.processNewLines(pmListOutput); in testSimpleParse() 89 List<InstrumentationTarget> parsedTargets = mParser.getInstrumentationTargets(); in testSimpleParse()
|
D | JUnitXmlParserTest.java | 44 private JUnitXmlParser mParser; field in JUnitXmlParserTest 49 mParser = new JUnitXmlParser(mMockListener); in setUp() 56 mParser.parse(new ByteArrayInputStream(new byte[0])); in testEmptyParse() 83 mParser.parse(extractTestXml(TEST_PARSE_FILE)); in testParse() 108 mParser.parse(extractTestXml(TEST_PARSE_FILE2)); in testParseErrorAndSkipped()
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | TraceFormatParserTest.java | 35 private TraceFormatParser mParser; field in TraceFormatParserTest 47 mParser = new TraceFormatParser(); in setUp() 63 TraceFormatItem parsedItem = mParser.parse(formatLine); in testParseFormatLine() 82 TraceFormatItem parsedItem = mParser.parse(formatLine); in testNoParameters() 92 mParser.parse(null); in testNullInput() 103 mParser.parse(formatLine); in testEmptyInput() 114 mParser.parse(formatLine); in testMultiLineInput() 125 mParser.parse(formatLine); in testOneLineInvalidInput() 139 TraceFormatItem parsedItem = mParser.parse(formatLine); in testQuoteInParams() 155 TraceFormatItem parsedItem = mParser.parse(formatLine); in testCategorizeParameters() [all …]
|
D | AbstractSectionParserTest.java | 29 AbstractSectionParser mParser = null; field in AbstractSectionParserTest 34 mParser = new AbstractSectionParser() { in setUp() 80 mParser.addSectionParser(parser, String.format(linePattern, i)); in testSwitchParsers() 89 mParser.parse(lines); in testSwitchParsers()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | UiAutomatorRunner.java | 67 private InstrumentationResultParser mParser; field in UiAutomatorRunner 307 mParser = new InstrumentationResultParser(runName, listeners); in run() 311 cmdLine, mParser, mMaxTimeout, mMaxTimeToOutputResponse, TimeUnit.MILLISECONDS); in run() 316 mParser.handleTestRunFailed(e.toString()); in run() 321 mParser.handleTestRunFailed(String.format( in run() 329 mParser.handleTestRunFailed(e.toString()); in run() 334 mParser.handleTestRunFailed(e.toString()); in run() 344 if (mParser != null) { in cancel() 345 mParser.cancel(); in cancel()
|