/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
D | CombinedEvents002Test.java | 32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 96 List<ParsedEvent> receivedEvents = receiveEvents(); in runTest() 181 private List<ParsedEvent> receiveEvents() { in receiveEvents() 182 List<ParsedEvent> receivedEvents = new ArrayList<ParsedEvent>(); in receiveEvents() 186 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents() 210 parsedEvents = ParsedEvent.parseEventPacket(event); in receiveEvents() 234 private void checkEvents(List<ParsedEvent> receivedEvents, in checkEvents() 241 ParsedEvent parsedEvent = receivedEvents.get(i); in checkEvents() 270 private boolean checkMethodEntryEvent(ParsedEvent parsedEvent) { in checkMethodEntryEvent() 271 ParsedEvent.Event_METHOD_ENTRY methodEntryEvent = in checkMethodEntryEvent() [all …]
|
D | EventWithExceptionTest.java | 25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 83 ParsedEvent exceptionEvent = waitForEvent(JDWPConstants.EventKind.EXCEPTION, in testBreakpoint_BeforeException() 88 ((ParsedEvent.Event_EXCEPTION) exceptionEvent).getCatchLocation(); in testBreakpoint_BeforeException() 106 ParsedEvent breakpointEvent = waitForEvent(JDWPConstants.EventKind.BREAKPOINT, in testBreakpoint_BeforeException() 110 Location eventLocation = ((ParsedEvent.EventThreadLocation) breakpointEvent).getLocation(); in testBreakpoint_BeforeException() 142 ParsedEvent exceptionEvent = waitForEvent(JDWPConstants.EventKind.EXCEPTION, in testBreakpoint_UponException() 147 ((ParsedEvent.Event_EXCEPTION) exceptionEvent).getCatchLocation(); in testBreakpoint_UponException() 166 ParsedEvent breakpointEvent = waitForEvent(JDWPConstants.EventKind.BREAKPOINT, in testBreakpoint_UponException() 170 Location eventLocation = ((ParsedEvent.EventThreadLocation) breakpointEvent).getLocation(); in testBreakpoint_UponException() 232 ParsedEvent exceptionEvent = waitForEvent(JDWPConstants.EventKind.EXCEPTION, in runSingleStepTest() [all …]
|
D | ClassPrepareTest.java | 31 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 65 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testClassPrepareEvent() 72 , ((ParsedEvent.Event_CLASS_PREPARE)parsedEvents[0]).getSignature()); in testClassPrepareEvent() 103 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testClassPrepareEventWithoutSourceDebugExtension() 109 …assertEquals("Invalid signature of prepared class,", expectedClassSignature, ((ParsedEvent.Event_C… in testClassPrepareEventWithoutSourceDebugExtension() 171 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testClassPrepareEventWithSourceDebugExtension() 177 …assertEquals("Invalid signature of prepared class,", expectedClassSignature, ((ParsedEvent.Event_C… in testClassPrepareEventWithSourceDebugExtension()
|
D | CombinedEventsTestCase.java | 34 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 198 protected boolean checkEventLocation(ParsedEvent parsedEvent, Location expectedLocation) { in checkEventLocation() 204 eventLocation = ((ParsedEvent.Event_METHOD_ENTRY)parsedEvent).getLocation(); in checkEventLocation() 205 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation() 208 eventLocation = ((ParsedEvent.Event_SINGLE_STEP)parsedEvent).getLocation(); in checkEventLocation() 209 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation() 212 eventLocation = ((ParsedEvent.Event_BREAKPOINT)parsedEvent).getLocation(); in checkEventLocation() 213 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation() 216 eventLocation = ((ParsedEvent.Event_METHOD_EXIT)parsedEvent).getLocation(); in checkEventLocation() 217 eventThreadID = ((ParsedEvent.EventThread)parsedEvent).getThreadID(); in checkEventLocation() [all …]
|
D | BreakpointOnCatchTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread; 26 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_EXCEPTION; 63 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch() 84 parsedEvents = ParsedEvent.parseEventPacket(event); in testBreakpointOnCatch()
|
D | SingleStepWithPendingExceptionTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 69 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(eventPacket); in testSingleStepWithPendingException() 75 ((ParsedEvent.Event_EXCEPTION)parsedEvents[0]).getCatchLocation(); in testSingleStepWithPendingException() 101 parsedEvents = ParsedEvent.parseEventPacket(eventPacket); in testSingleStepWithPendingException() 108 ((ParsedEvent.Event_SINGLE_STEP)parsedEvents[0]).getLocation(); in testSingleStepWithPendingException()
|
D | MethodExitWithReturnValueTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 27 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread; 28 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_METHOD_EXIT; 29 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_METHOD_EXIT_WITH_RETURN_VALUE; 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in testMethodExitWithReturnValueException() 176 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in runMethodExitWithReturn()
|
D | FieldModificationTest.java | 30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 33 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread; 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldModifyEvent() 78 … TaggedObject modifiedField =((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject(); in testFieldModifyEvent()
|
D | FieldAccessTest.java | 30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 33 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread; 64 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testFieldAccessEvent() 78 TaggedObject accessedField =((ParsedEvent.Event_FIELD_ACCESS)parsedEvents[0]).getObject(); in testFieldAccessEvent()
|
D | ExceptionBaseTest.java | 26 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 38 protected ParsedEvent.Event_EXCEPTION receiveAndCheckExceptionEvent(int requestID) { in receiveAndCheckExceptionEvent() 42 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveAndCheckExceptionEvent() 55 ParsedEvent.Event_EXCEPTION exceptionEvent = (ParsedEvent.Event_EXCEPTION) parsedEvents[0]; in receiveAndCheckExceptionEvent()
|
D | MonitorWaitTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_MONITOR_WAIT; 116 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent() 117 Event_MONITOR_WAIT event = (ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]; in verifyEvent() 142 , ((ParsedEvent.Event_MONITOR_WAIT)parsedEvents[0]).getTimeout()); in verifyEvent()
|
D | SingleStepThroughReflectionTest.java | 28 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 29 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThreadLocation; 111 ParsedEvent parsedEvent = waitForSingleStepEvent(stepRequestID); in testSingleStepIntoThroughReflection() 142 private ParsedEvent waitForSingleStepEvent(int requestID) { in waitForSingleStepEvent() 145 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in waitForSingleStepEvent() 162 ParsedEvent parsedEvent = parsedEvents[0]; in waitForSingleStepEvent()
|
D | CombinedExceptionEventsTest.java | 23 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 117 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in runCombinedExceptionEventsTest() 124 ParsedEvent parsedEvent = parsedEvents[i]; in runCombinedExceptionEventsTest() 136 ParsedEvent.Event_EXCEPTION exceptionEvent = (ParsedEvent.Event_EXCEPTION) parsedEvent; in runCombinedExceptionEventsTest()
|
D | MonitorContendedEnterTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_MONITOR_CONTENDED_ENTER; 61 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent() 62 … Event_MONITOR_CONTENDED_ENTER event = (ParsedEvent.Event_MONITOR_CONTENDED_ENTER)parsedEvents[0]; in verifyEvent()
|
D | ExceptionWithLocationTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 73 protected void checkEvent(ParsedEvent event) { in checkEvent() 74 ParsedEvent.Event_EXCEPTION eventException = in checkEvent() 75 (ParsedEvent.Event_EXCEPTION) event; in checkEvent()
|
D | BreakpointTest.java | 30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 31 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread; 66 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testSetBreakpointEvent()
|
D | CombinedEvents003Test.java | 33 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 188 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in receiveAndCheckEvents() 280 long eventThreadID = ((ParsedEvent.EventThread)parsedEvents[i]).getThreadID(); in receiveAndCheckEvents() 289 … eventLocation = ((ParsedEvent.Event_METHOD_ENTRY)parsedEvents[i]).getLocation(); in receiveAndCheckEvents() 292 … eventLocation = ((ParsedEvent.Event_SINGLE_STEP)parsedEvents[i]).getLocation(); in receiveAndCheckEvents() 295 … eventLocation = ((ParsedEvent.Event_BREAKPOINT)parsedEvents[i]).getLocation(); in receiveAndCheckEvents() 298 … eventLocation = ((ParsedEvent.Event_METHOD_EXIT)parsedEvents[i]).getLocation(); in receiveAndCheckEvents() 358 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in checkVMDeathEvent()
|
D | MethodExitTest.java | 30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread; 66 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodExit()
|
D | MethodEntryTest.java | 30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.EventThread; 66 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testMethodEntry()
|
D | MonitorWaitedTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 25 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_MONITOR_WAITED; 116 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(receiveEvent); in verifyEvent() 117 Event_MONITOR_WAITED event = (ParsedEvent.Event_MONITOR_WAITED)parsedEvents[0]; in verifyEvent()
|
D | ThreadEndTest.java | 30 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 32 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.*; 69 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in testThreadEndEvent001()
|
D | FieldWithLocationTest.java | 24 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 91 protected void checkEvent(ParsedEvent event) { in checkEvent() 95 accessedField = ((ParsedEvent.Event_FIELD_ACCESS)event).getObject(); in checkEvent() 97 accessedField = ((ParsedEvent.Event_FIELD_MODIFICATION)event).getObject(); in checkEvent()
|
D | ExceptionUncaughtTest.java | 23 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 54 ParsedEvent.Event_EXCEPTION exceptionEvent = requestAndReceiveExceptionEvent(); in testExceptionUncaughtEvent_ExceptionObject() 92 ParsedEvent.Event_EXCEPTION exceptionEvent = requestAndReceiveExceptionEvent(); in testExceptionUncaughtEvent_ThrowLocation() 146 ParsedEvent.Event_EXCEPTION exceptionEvent = requestAndReceiveExceptionEvent(); in testExceptionUncaughtEvent_CatchLocation() 185 private ParsedEvent.Event_EXCEPTION requestAndReceiveExceptionEvent() { in requestAndReceiveExceptionEvent()
|
D | ClassPrepare002Test.java | 27 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 29 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent.Event_CLASS_PREPARE; 94 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(eventPacket); in testClassPrepareCausedByDebugger() 100 ParsedEvent parsedEvent = parsedEvents[0]; in testClassPrepareCausedByDebugger()
|
D | EventLocationEventTestCase.java | 26 import org.apache.harmony.jpda.tests.framework.jdwp.ParsedEvent; 42 protected abstract void checkEvent(ParsedEvent event); in checkEvent() 55 ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(event); in runEventWithLocationTest() 60 ParsedEvent parsedEvent = parsedEvents[0]; in runEventWithLocationTest()
|