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 const VMUpdateEventMock({this.vm}); | 9 final DateTime timestamp; |
10 const VMUpdateEventMock({this.timestamp, this.vm}); | |
10 } | 11 } |
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 } | |
12 class IsolateUpdateEventMock implements M.IsolateUpdateEvent { | 27 class IsolateUpdateEventMock implements M.IsolateUpdateEvent { |
13 final DateTime timestamp; | 28 final DateTime timestamp; |
14 final M.IsolateRef isolate; | 29 final M.IsolateRef isolate; |
15 const IsolateUpdateEventMock({this.timestamp, this.isolate}); | 30 const IsolateUpdateEventMock({this.timestamp, this.isolate}); |
16 } | 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, this.breakpoint} ); | |
91 } | |
92 class BreakpointResolvedEventMock implements M.BreakpointResolvedEvent { | |
93 final DateTime timestamp; | |
94 final M.IsolateRef isolate; | |
95 final M.Breakpoint breakpoint; | |
96 const BreakpointResolvedEventMock({this.timestamp, this.isolate, this.breakpoi nt}); | |
rmacnak
2016/07/23 00:23:50
long line
cbernaschina
2016/07/23 00:40:55
Done.
| |
97 } | |
98 class BreakpointRemovedEventMock implements M.BreakpointRemovedEvent { | |
99 final DateTime timestamp; | |
100 final M.IsolateRef isolate; | |
101 final M.Breakpoint breakpoint; | |
102 const BreakpointRemovedEventMock({this.timestamp, this.isolate, this.breakpoin t}); | |
rmacnak
2016/07/23 00:23:50
long line
cbernaschina
2016/07/23 00:40:55
Done.
| |
103 } | |
104 class InspectEventMock implements M.InspectEvent { | |
105 final DateTime timestamp; | |
106 final M.IsolateRef isolate; | |
107 final M.InstanceRef inspectee; | |
108 const InspectEventMock({this.timestamp, this.isolate, this.inspectee}); | |
109 } | |
110 class NoneEventMock implements M.NoneEvent { | |
111 final DateTime timestamp; | |
112 final M.IsolateRef isolate; | |
113 const NoneEventMock({this.timestamp, this.isolate}); | |
114 } | |
115 class GCEventMock implements M.GCEvent { | |
116 final DateTime timestamp; | |
117 final M.IsolateRef isolate; | |
118 const GCEventMock({this.timestamp, this.isolate}); | |
119 } | |
120 class ExtensionEventMock implements M.ExtensionEvent { | |
121 final DateTime timestamp; | |
122 final M.IsolateRef isolate; | |
123 final String extensionKind; | |
124 final M.ExtensionData extensionData; | |
125 const ExtensionEventMock({this.timestamp, this.isolate, this.extensionKind, | |
126 this.extensionData}); | |
127 } | |
128 class TimelineEventsEventMock implements M.TimelineEventsEvent { | |
129 final DateTime timestamp; | |
130 final M.IsolateRef isolate; | |
131 final List<M.TimelineEvent> timelineEvents; | |
132 const TimelineEventsEventMock({this.timestamp, this.isolate, this.timelineEven ts}); | |
rmacnak
2016/07/23 00:23:50
long line
cbernaschina
2016/07/23 00:40:55
Done.
| |
133 } | |
134 class ConnectionClockedEventMock implements M.ConnectionClosedEvent { | |
135 final DateTime timestamp; | |
136 final String reason; | |
137 const ConnectionClockedEventMock({this.timestamp, this.reason}); | |
138 } | |
OLD | NEW |