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