OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file |
| 4 |
| 5 part of mocks; |
| 6 |
| 7 class VMUpdateEventMock extends M.VMUpdateEvent { |
| 8 final M.VMRef vm; |
| 9 final DateTime timestamp; |
| 10 VMUpdateEventMock({this.timestamp, this.vm}); |
| 11 } |
| 12 class IsolateStartEventMock implements M.IsolateStartEvent { |
| 13 final DateTime timestamp; |
| 14 final M.IsolateRef isolate; |
| 15 IsolateStartEventMock({this.timestamp, this.isolate}); |
| 16 } |
| 17 class IsolateRunnableEventMock implements M.IsolateRunnableEvent { |
| 18 final DateTime timestamp; |
| 19 final M.IsolateRef isolate; |
| 20 IsolateRunnableEventMock({this.timestamp, this.isolate}); |
| 21 } |
| 22 class IsolateExitEventMock implements M.IsolateExitEvent { |
| 23 final DateTime timestamp; |
| 24 final M.IsolateRef isolate; |
| 25 IsolateExitEventMock({this.timestamp, this.isolate}); |
| 26 } |
| 27 class IsolateUpdateEventMock implements M.IsolateUpdateEvent { |
| 28 final DateTime timestamp; |
| 29 final M.IsolateRef isolate; |
| 30 IsolateUpdateEventMock({this.timestamp, this.isolate}); |
| 31 } |
| 32 class IsolateRealodEventMock implements M.IsolateReloadEvent { |
| 33 final DateTime timestamp; |
| 34 final M.IsolateRef isolate; |
| 35 final M.Error error; |
| 36 IsolateRealodEventMock({this.timestamp, this.isolate, this.error}); |
| 37 } |
| 38 class ServiceExtensionAddedEventMock extends M.ServiceExtensionAddedEvent { |
| 39 final DateTime timestamp; |
| 40 final M.IsolateRef isolate; |
| 41 final String extensionRPC; |
| 42 ServiceExtensionAddedEventMock({this.extensionRPC, this.isolate, |
| 43 this.timestamp}); |
| 44 } |
| 45 class PauseStartEventMock extends M.PauseStartEvent { |
| 46 final DateTime timestamp; |
| 47 final M.IsolateRef isolate; |
| 48 PauseStartEventMock({this.isolate, this.timestamp}); |
| 49 } |
| 50 class PauseExitEventMock extends M.PauseExitEvent { |
| 51 final DateTime timestamp; |
| 52 final M.IsolateRef isolate; |
| 53 PauseExitEventMock({this.isolate, this.timestamp}); |
| 54 } |
| 55 class PauseBreakpointEventMock extends M.PauseBreakpointEvent { |
| 56 final DateTime timestamp; |
| 57 final M.IsolateRef isolate; |
| 58 final M.Breakpoint breakpoint; |
| 59 final List<M.Breakpoint> pauseBreakpoints; |
| 60 final M.Frame topFrame; |
| 61 final bool atAsyncSuspension; |
| 62 PauseBreakpointEventMock({this.timestamp, this.isolate, this.breakpoint, |
| 63 this.pauseBreakpoints, this.topFrame, |
| 64 this.atAsyncSuspension}); |
| 65 } |
| 66 class PauseInterruptedEventMock extends M.PauseInterruptedEvent { |
| 67 final DateTime timestamp; |
| 68 final M.IsolateRef isolate; |
| 69 final M.Frame topFrame; |
| 70 bool atAsyncSuspension; |
| 71 PauseInterruptedEventMock({this.timestamp, this.isolate, this.topFrame, |
| 72 this.atAsyncSuspension}); |
| 73 } |
| 74 class PauseExceptionEventMock extends M.PauseExceptionEvent { |
| 75 final DateTime timestamp; |
| 76 final M.IsolateRef isolate; |
| 77 final M.Frame topFrame; |
| 78 final M.InstanceRef exception; |
| 79 PauseExceptionEventMock({this.timestamp, this.isolate, this.topFrame, |
| 80 this.exception}); |
| 81 } |
| 82 class ResumeEventMock extends M.ResumeEvent { |
| 83 final DateTime timestamp; |
| 84 final M.IsolateRef isolate; |
| 85 ResumeEventMock({this.timestamp, this.isolate}); |
| 86 } |
| 87 class BreakpointAddedEventMock extends M.BreakpointAddedEvent { |
| 88 final DateTime timestamp; |
| 89 final M.IsolateRef isolate; |
| 90 final M.Breakpoint breakpoint; |
| 91 BreakpointAddedEventMock({this.timestamp, this.isolate, this.breakpoint}); |
| 92 } |
| 93 class BreakpointResolvedEventMock extends M.BreakpointResolvedEvent { |
| 94 final DateTime timestamp; |
| 95 final M.IsolateRef isolate; |
| 96 final M.Breakpoint breakpoint; |
| 97 BreakpointResolvedEventMock({this.timestamp, this.isolate, this.breakpoint}); |
| 98 } |
| 99 class BreakpointRemovedEventMock extends M.BreakpointRemovedEvent { |
| 100 final DateTime timestamp; |
| 101 final M.IsolateRef isolate; |
| 102 final M.Breakpoint breakpoint; |
| 103 BreakpointRemovedEventMock({this.timestamp, this.isolate, this.breakpoint}); |
| 104 } |
| 105 class InspectEventMock extends M.InspectEvent { |
| 106 final DateTime timestamp; |
| 107 final M.IsolateRef isolate; |
| 108 final M.InstanceRef inspectee; |
| 109 InspectEventMock({this.timestamp, this.isolate, this.inspectee}); |
| 110 } |
| 111 class NoneEventMock extends M.NoneEvent { |
| 112 final DateTime timestamp; |
| 113 final M.IsolateRef isolate; |
| 114 NoneEventMock({this.timestamp, this.isolate}); |
| 115 } |
| 116 class GCEventMock extends M.GCEvent { |
| 117 final DateTime timestamp; |
| 118 final M.IsolateRef isolate; |
| 119 GCEventMock({this.timestamp, this.isolate}); |
| 120 } |
| 121 class ExtensionEventMock extends M.ExtensionEvent { |
| 122 final DateTime timestamp; |
| 123 final M.IsolateRef isolate; |
| 124 final String extensionKind; |
| 125 final M.ExtensionData extensionData; |
| 126 ExtensionEventMock({this.timestamp, this.isolate, this.extensionKind, |
| 127 this.extensionData}); |
| 128 } |
| 129 class TimelineEventsEventMock extends M.TimelineEventsEvent { |
| 130 final DateTime timestamp; |
| 131 final M.IsolateRef isolate; |
| 132 final List<M.TimelineEvent> timelineEvents; |
| 133 TimelineEventsEventMock({this.timestamp, this.isolate, this.timelineEvents}); |
| 134 } |
| 135 class ConnectionClockedEventMock extends M.ConnectionClosedEvent { |
| 136 final DateTime timestamp; |
| 137 final String reason; |
| 138 ConnectionClockedEventMock({this.timestamp, this.reason}); |
| 139 } |
OLD | NEW |