Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: runtime/observatory/tests/observatory_ui/mocks/objects/event.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
13 class IsolateStartEventMock implements M.IsolateStartEvent { 12 class IsolateStartEventMock implements M.IsolateStartEvent {
14 final DateTime timestamp; 13 final DateTime timestamp;
15 final M.IsolateRef isolate; 14 final M.IsolateRef isolate;
16 const IsolateStartEventMock({this.timestamp, this.isolate}); 15 const IsolateStartEventMock({this.timestamp, this.isolate});
17 } 16 }
18
19 class IsolateRunnableEventMock implements M.IsolateRunnableEvent { 17 class IsolateRunnableEventMock implements M.IsolateRunnableEvent {
20 final DateTime timestamp; 18 final DateTime timestamp;
21 final M.IsolateRef isolate; 19 final M.IsolateRef isolate;
22 const IsolateRunnableEventMock({this.timestamp, this.isolate}); 20 const IsolateRunnableEventMock({this.timestamp, this.isolate});
23 } 21 }
24
25 class IsolateExitEventMock implements M.IsolateExitEvent { 22 class IsolateExitEventMock implements M.IsolateExitEvent {
26 final DateTime timestamp; 23 final DateTime timestamp;
27 final M.IsolateRef isolate; 24 final M.IsolateRef isolate;
28 const IsolateExitEventMock({this.timestamp, this.isolate}); 25 const IsolateExitEventMock({this.timestamp, this.isolate});
29 } 26 }
30
31 class IsolateUpdateEventMock implements M.IsolateUpdateEvent { 27 class IsolateUpdateEventMock implements M.IsolateUpdateEvent {
32 final DateTime timestamp; 28 final DateTime timestamp;
33 final M.IsolateRef isolate; 29 final M.IsolateRef isolate;
34 const IsolateUpdateEventMock({this.timestamp, this.isolate}); 30 const IsolateUpdateEventMock({this.timestamp, this.isolate});
35 } 31 }
36
37 class IsolateRealodEventMock implements M.IsolateReloadEvent { 32 class IsolateRealodEventMock implements M.IsolateReloadEvent {
38 final DateTime timestamp; 33 final DateTime timestamp;
39 final M.IsolateRef isolate; 34 final M.IsolateRef isolate;
40 final M.Error error; 35 final M.Error error;
41 const IsolateRealodEventMock({this.timestamp, this.isolate, this.error}); 36 const IsolateRealodEventMock({this.timestamp, this.isolate, this.error});
42 } 37 }
43
44 class ServiceExtensionAddedEventMock implements M.ServiceExtensionAddedEvent { 38 class ServiceExtensionAddedEventMock implements M.ServiceExtensionAddedEvent {
45 final DateTime timestamp; 39 final DateTime timestamp;
46 final M.IsolateRef isolate; 40 final M.IsolateRef isolate;
47 final String extensionRPC; 41 final String extensionRPC;
48 const ServiceExtensionAddedEventMock( 42 const ServiceExtensionAddedEventMock({this.extensionRPC, this.isolate,
49 {this.extensionRPC, this.isolate, this.timestamp}); 43 this.timestamp});
50 } 44 }
51
52 class DebuggerSettingsUpdateEventMock implements M.PauseStartEvent { 45 class DebuggerSettingsUpdateEventMock implements M.PauseStartEvent {
53 final DateTime timestamp; 46 final DateTime timestamp;
54 final M.IsolateRef isolate; 47 final M.IsolateRef isolate;
55 const DebuggerSettingsUpdateEventMock({this.isolate, this.timestamp}); 48 const DebuggerSettingsUpdateEventMock({this.isolate, this.timestamp});
56 } 49 }
57
58 class PauseStartEventMock implements M.PauseStartEvent { 50 class PauseStartEventMock implements M.PauseStartEvent {
59 final DateTime timestamp; 51 final DateTime timestamp;
60 final M.IsolateRef isolate; 52 final M.IsolateRef isolate;
61 const PauseStartEventMock({this.isolate, this.timestamp}); 53 const PauseStartEventMock({this.isolate, this.timestamp});
62 } 54 }
63
64 class PauseExitEventMock implements M.PauseExitEvent { 55 class PauseExitEventMock implements M.PauseExitEvent {
65 final DateTime timestamp; 56 final DateTime timestamp;
66 final M.IsolateRef isolate; 57 final M.IsolateRef isolate;
67 const PauseExitEventMock({this.isolate, this.timestamp}); 58 const PauseExitEventMock({this.isolate, this.timestamp});
68 } 59 }
69
70 class PauseBreakpointEventMock implements M.PauseBreakpointEvent { 60 class PauseBreakpointEventMock implements M.PauseBreakpointEvent {
71 final DateTime timestamp; 61 final DateTime timestamp;
72 final M.IsolateRef isolate; 62 final M.IsolateRef isolate;
73 final M.Breakpoint breakpoint; 63 final M.Breakpoint breakpoint;
74 final List<M.Breakpoint> pauseBreakpoints; 64 final List<M.Breakpoint> pauseBreakpoints;
75 final M.Frame topFrame; 65 final M.Frame topFrame;
76 final bool atAsyncSuspension; 66 final bool atAsyncSuspension;
77 const PauseBreakpointEventMock( 67 const PauseBreakpointEventMock({this.timestamp, this.isolate, this.breakpoint,
78 {this.timestamp, 68 this.pauseBreakpoints, this.topFrame, this.atAsyncSuspension});
79 this.isolate,
80 this.breakpoint,
81 this.pauseBreakpoints,
82 this.topFrame,
83 this.atAsyncSuspension});
84 } 69 }
85
86 class PauseInterruptedEventMock implements M.PauseInterruptedEvent { 70 class PauseInterruptedEventMock implements M.PauseInterruptedEvent {
87 final DateTime timestamp; 71 final DateTime timestamp;
88 final M.IsolateRef isolate; 72 final M.IsolateRef isolate;
89 final M.Frame topFrame; 73 final M.Frame topFrame;
90 final bool atAsyncSuspension; 74 final bool atAsyncSuspension;
91 const PauseInterruptedEventMock( 75 const PauseInterruptedEventMock({this.timestamp, this.isolate, this.topFrame,
92 {this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension}); 76 this.atAsyncSuspension});
93 } 77 }
94
95 class PauseExceptionEventMock implements M.PauseExceptionEvent { 78 class PauseExceptionEventMock implements M.PauseExceptionEvent {
96 final DateTime timestamp; 79 final DateTime timestamp;
97 final M.IsolateRef isolate; 80 final M.IsolateRef isolate;
98 final M.Frame topFrame; 81 final M.Frame topFrame;
99 final M.InstanceRef exception; 82 final M.InstanceRef exception;
100 const PauseExceptionEventMock( 83 const PauseExceptionEventMock({this.timestamp, this.isolate, this.topFrame,
101 {this.timestamp, this.isolate, this.topFrame, this.exception}); 84 this.exception});
102 } 85 }
103
104 class ResumeEventMock implements M.ResumeEvent { 86 class ResumeEventMock implements M.ResumeEvent {
105 final DateTime timestamp; 87 final DateTime timestamp;
106 final M.IsolateRef isolate; 88 final M.IsolateRef isolate;
107 final M.Frame topFrame; 89 final M.Frame topFrame;
108 const ResumeEventMock({this.timestamp, this.isolate, this.topFrame}); 90 const ResumeEventMock({this.timestamp, this.isolate, this.topFrame});
109 } 91 }
110
111 class BreakpointAddedEventMock implements M.BreakpointAddedEvent { 92 class BreakpointAddedEventMock implements M.BreakpointAddedEvent {
112 final DateTime timestamp; 93 final DateTime timestamp;
113 final M.IsolateRef isolate; 94 final M.IsolateRef isolate;
114 final M.Breakpoint breakpoint; 95 final M.Breakpoint breakpoint;
115 const BreakpointAddedEventMock( 96 const BreakpointAddedEventMock({this.timestamp, this.isolate,
116 {this.timestamp, this.isolate, this.breakpoint}); 97 this.breakpoint});
117 } 98 }
118
119 class BreakpointResolvedEventMock implements M.BreakpointResolvedEvent { 99 class BreakpointResolvedEventMock implements M.BreakpointResolvedEvent {
120 final DateTime timestamp; 100 final DateTime timestamp;
121 final M.IsolateRef isolate; 101 final M.IsolateRef isolate;
122 final M.Breakpoint breakpoint; 102 final M.Breakpoint breakpoint;
123 const BreakpointResolvedEventMock( 103 const BreakpointResolvedEventMock({this.timestamp, this.isolate,
124 {this.timestamp, this.isolate, this.breakpoint}); 104 this.breakpoint});
125 } 105 }
126
127 class BreakpointRemovedEventMock implements M.BreakpointRemovedEvent { 106 class BreakpointRemovedEventMock implements M.BreakpointRemovedEvent {
128 final DateTime timestamp; 107 final DateTime timestamp;
129 final M.IsolateRef isolate; 108 final M.IsolateRef isolate;
130 final M.Breakpoint breakpoint; 109 final M.Breakpoint breakpoint;
131 const BreakpointRemovedEventMock( 110 const BreakpointRemovedEventMock({this.timestamp, this.isolate,
132 {this.timestamp, this.isolate, this.breakpoint}); 111 this.breakpoint});
133 } 112 }
134
135 class InspectEventMock implements M.InspectEvent { 113 class InspectEventMock implements M.InspectEvent {
136 final DateTime timestamp; 114 final DateTime timestamp;
137 final M.IsolateRef isolate; 115 final M.IsolateRef isolate;
138 final M.InstanceRef inspectee; 116 final M.InstanceRef inspectee;
139 const InspectEventMock({this.timestamp, this.isolate, this.inspectee}); 117 const InspectEventMock({this.timestamp, this.isolate, this.inspectee});
140 } 118 }
141
142 class NoneEventMock implements M.NoneEvent { 119 class NoneEventMock implements M.NoneEvent {
143 final DateTime timestamp; 120 final DateTime timestamp;
144 final M.IsolateRef isolate; 121 final M.IsolateRef isolate;
145 const NoneEventMock({this.timestamp, this.isolate}); 122 const NoneEventMock({this.timestamp, this.isolate});
146 } 123 }
147
148 class GCEventMock implements M.GCEvent { 124 class GCEventMock implements M.GCEvent {
149 final DateTime timestamp; 125 final DateTime timestamp;
150 final M.IsolateRef isolate; 126 final M.IsolateRef isolate;
151 const GCEventMock({this.timestamp, this.isolate}); 127 const GCEventMock({this.timestamp, this.isolate});
152 } 128 }
153
154 class ExtensionEventMock implements M.ExtensionEvent { 129 class ExtensionEventMock implements M.ExtensionEvent {
155 final DateTime timestamp; 130 final DateTime timestamp;
156 final M.IsolateRef isolate; 131 final M.IsolateRef isolate;
157 final String extensionKind; 132 final String extensionKind;
158 final M.ExtensionData extensionData; 133 final M.ExtensionData extensionData;
159 const ExtensionEventMock( 134 const ExtensionEventMock({this.timestamp, this.isolate, this.extensionKind,
160 {this.timestamp, this.isolate, this.extensionKind, this.extensionData}); 135 this.extensionData});
161 } 136 }
162
163 class TimelineEventsEventMock implements M.TimelineEventsEvent { 137 class TimelineEventsEventMock implements M.TimelineEventsEvent {
164 final DateTime timestamp; 138 final DateTime timestamp;
165 final M.IsolateRef isolate; 139 final M.IsolateRef isolate;
166 final List<M.TimelineEvent> timelineEvents; 140 final List<M.TimelineEvent> timelineEvents;
167 const TimelineEventsEventMock( 141 const TimelineEventsEventMock({this.timestamp, this.isolate,
168 {this.timestamp, this.isolate, this.timelineEvents}); 142 this.timelineEvents});
169 } 143 }
170
171 class ConnectionClockedEventMock implements M.ConnectionClosedEvent { 144 class ConnectionClockedEventMock implements M.ConnectionClosedEvent {
172 final DateTime timestamp; 145 final DateTime timestamp;
173 final String reason; 146 final String reason;
174 const ConnectionClockedEventMock({this.timestamp, this.reason}); 147 const ConnectionClockedEventMock({this.timestamp, this.reason});
175 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698