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 implements M.VMUpdateEvent { | |
8 final M.VMRef vm; | |
9 final DateTime timestamp; | |
10 const VMUpdateEventMock({this.timestamp, this.vm}); | |
11 } | |
12 class IsolateStartEventMock implements M.IsolateStartEvent { | |
13 final DateTime timestamp; | |
14 final M.IsolateRef isolate; | |
15 const IsolateStartEventMock({this.timestamp, this.isolate}); | |
16 } | |
17 class IsolateRunnableEventMock implements M.IsolateRunnableEvent { | |
18 final DateTime timestamp; | |
19 final M.IsolateRef isolate; | |
20 const IsolateRunnableEventMock({this.timestamp, this.isolate}); | |
21 } | |
22 class IsolateExitEventMock implements M.IsolateExitEvent { | |
23 final DateTime timestamp; | |
24 final M.IsolateRef isolate; | |
25 const IsolateExitEventMock({this.timestamp, this.isolate}); | |
26 } | |
27 class IsolateUpdateEventMock implements M.IsolateUpdateEvent { | |
28 final DateTime timestamp; | |
29 final M.IsolateRef isolate; | |
30 const 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 const IsolateRealodEventMock({this.timestamp, this.isolate, this.error}); | |
37 } | |
38 class ServiceExtensionAddedEventMock implements M.ServiceExtensionAddedEvent { | |
39 final DateTime timestamp; | |
40 final M.IsolateRef isolate; | |
41 final String extensionRPC; | |
42 const ServiceExtensionAddedEventMock({this.extensionRPC, this.isolate, | |
43 this.timestamp}); | |
44 } | |
45 class PauseStartEventMock implements M.PauseStartEvent { | |
46 final DateTime timestamp; | |
47 final M.IsolateRef isolate; | |
48 const PauseStartEventMock({this.isolate, this.timestamp}); | |
49 } | |
50 class PauseExitEventMock implements M.PauseExitEvent { | |
51 final DateTime timestamp; | |
52 final M.IsolateRef isolate; | |
53 const PauseExitEventMock({this.isolate, this.timestamp}); | |
54 } | |
55 class PauseBreakpointEventMock implements 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 const PauseBreakpointEventMock({this.timestamp, this.isolate, this.breakpoint, | |
63 this.pauseBreakpoints, this.topFrame, this.atAsyncSuspension}); | |
64 } | |
65 class PauseInterruptedEventMock implements M.PauseInterruptedEvent { | |
66 final DateTime timestamp; | |
67 final M.IsolateRef isolate; | |
68 final M.Frame topFrame; | |
69 final bool atAsyncSuspension; | |
70 const PauseInterruptedEventMock({this.timestamp, this.isolate, this.topFrame, | |
71 this.atAsyncSuspension}); | |
72 } | |
73 class PauseExceptionEventMock implements M.PauseExceptionEvent { | |
74 final DateTime timestamp; | |
75 final M.IsolateRef isolate; | |
76 final M.Frame topFrame; | |
77 final M.InstanceRef exception; | |
78 const PauseExceptionEventMock({this.timestamp, this.isolate, this.topFrame, | |
79 this.exception}); | |
80 } | |
81 class ResumeEventMock implements M.ResumeEvent { | |
82 final DateTime timestamp; | |
83 final M.IsolateRef isolate; | |
84 const ResumeEventMock({this.timestamp, this.isolate}); | |
85 } | |
86 class BreakpointAddedEventMock implements M.BreakpointAddedEvent { | |
87 final DateTime timestamp; | |
88 final M.IsolateRef isolate; | |
89 final M.Breakpoint breakpoint; | |
90 const BreakpointAddedEventMock({this.timestamp, this.isolate, | |
91 this.breakpoint}); | |
92 } | |
93 class BreakpointResolvedEventMock implements M.BreakpointResolvedEvent { | |
94 final DateTime timestamp; | |
95 final M.IsolateRef isolate; | |
96 final M.Breakpoint breakpoint; | |
97 const BreakpointResolvedEventMock({this.timestamp, this.isolate, | |
98 this.breakpoint}); | |
99 } | |
100 class BreakpointRemovedEventMock implements M.BreakpointRemovedEvent { | |
101 final DateTime timestamp; | |
102 final M.IsolateRef isolate; | |
103 final M.Breakpoint breakpoint; | |
104 const BreakpointRemovedEventMock({this.timestamp, this.isolate, | |
105 this.breakpoint}); | |
106 } | |
107 class InspectEventMock implements M.InspectEvent { | |
108 final DateTime timestamp; | |
109 final M.IsolateRef isolate; | |
110 final M.InstanceRef inspectee; | |
111 const InspectEventMock({this.timestamp, this.isolate, this.inspectee}); | |
112 } | |
113 class NoneEventMock implements M.NoneEvent { | |
114 final DateTime timestamp; | |
115 final M.IsolateRef isolate; | |
116 const NoneEventMock({this.timestamp, this.isolate}); | |
117 } | |
118 class GCEventMock implements M.GCEvent { | |
119 final DateTime timestamp; | |
120 final M.IsolateRef isolate; | |
121 const GCEventMock({this.timestamp, this.isolate}); | |
122 } | |
123 class ExtensionEventMock implements M.ExtensionEvent { | |
124 final DateTime timestamp; | |
125 final M.IsolateRef isolate; | |
126 final String extensionKind; | |
127 final M.ExtensionData extensionData; | |
128 const ExtensionEventMock({this.timestamp, this.isolate, this.extensionKind, | |
129 this.extensionData}); | |
130 } | |
131 class TimelineEventsEventMock implements M.TimelineEventsEvent { | |
132 final DateTime timestamp; | |
133 final M.IsolateRef isolate; | |
134 final List<M.TimelineEvent> timelineEvents; | |
135 const TimelineEventsEventMock({this.timestamp, this.isolate, | |
136 this.timelineEvents}); | |
137 } | |
138 class ConnectionClockedEventMock implements M.ConnectionClosedEvent { | |
139 final DateTime timestamp; | |
140 final String reason; | |
141 const ConnectionClockedEventMock({this.timestamp, this.reason}); | |
142 } | |
OLD | NEW |