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 EventRepositoryMock implements M.EventRepository { | 7 class EventRepositoryMock implements M.EventRepository { |
8 final _onEvent = new StreamController<M.Event>.broadcast(); | 8 final _onEvent = new StreamController<M.Event>.broadcast(); |
9 get onEvent => _onEvent.stream; | 9 get onEvent => _onEvent.stream; |
10 get onEventHasListener => _onEvent.hasListener; | 10 get onEventHasListener => _onEvent.hasListener; |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 final _onIsolateExit = new StreamController<M.IsolateExitEvent>.broadcast(); | 33 final _onIsolateExit = new StreamController<M.IsolateExitEvent>.broadcast(); |
34 get onIsolateExit => _onIsolateExit.stream; | 34 get onIsolateExit => _onIsolateExit.stream; |
35 get onIsolateExitHasListener => _onIsolateExit.hasListener; | 35 get onIsolateExitHasListener => _onIsolateExit.hasListener; |
36 | 36 |
37 final _onIsolateUpdate = | 37 final _onIsolateUpdate = |
38 new StreamController<M.IsolateUpdateEvent>.broadcast(); | 38 new StreamController<M.IsolateUpdateEvent>.broadcast(); |
39 get onIsolateUpdate => _onIsolateUpdate.stream; | 39 get onIsolateUpdate => _onIsolateUpdate.stream; |
40 get onIsolateUpdateHasListener => _onIsolateUpdate.hasListener; | 40 get onIsolateUpdateHasListener => _onIsolateUpdate.hasListener; |
41 | 41 |
42 final _onIsolateReload = new StreamController<M.IsolateReloadEvent>.broadcast(
); | 42 final _onIsolateReload = |
| 43 new StreamController<M.IsolateReloadEvent>.broadcast(); |
43 get onIsolateReload => _onIsolateReload.stream; | 44 get onIsolateReload => _onIsolateReload.stream; |
44 get onIsolateReloadHasListener => _onIsolateReload.hasListener; | 45 get onIsolateReloadHasListener => _onIsolateReload.hasListener; |
45 | 46 |
46 final _onServiceExtensionAdded = | 47 final _onServiceExtensionAdded = |
47 new StreamController<M.ServiceExtensionAddedEvent>.broadcast(); | 48 new StreamController<M.ServiceExtensionAddedEvent>.broadcast(); |
48 get onServiceExtensionAdded => _onServiceExtensionAdded.stream; | 49 get onServiceExtensionAdded => _onServiceExtensionAdded.stream; |
49 get onServiceExtensionAddedHasListener => | 50 get onServiceExtensionAddedHasListener => |
50 _onServiceExtensionAdded.hasListener; | 51 _onServiceExtensionAdded.hasListener; |
51 | 52 |
52 final _onDebugEvent = new StreamController<M.DebugEvent>.broadcast(); | 53 final _onDebugEvent = new StreamController<M.DebugEvent>.broadcast(); |
(...skipping 26 matching lines...) Expand all Loading... |
79 final _onResume = new StreamController<M.ResumeEvent>.broadcast(); | 80 final _onResume = new StreamController<M.ResumeEvent>.broadcast(); |
80 get onResume => _onResume.stream; | 81 get onResume => _onResume.stream; |
81 get onResumeHasListener => _onResume.hasListener; | 82 get onResumeHasListener => _onResume.hasListener; |
82 | 83 |
83 final _onBreakpointAdded = | 84 final _onBreakpointAdded = |
84 new StreamController<M.BreakpointAddedEvent>.broadcast(); | 85 new StreamController<M.BreakpointAddedEvent>.broadcast(); |
85 get onBreakpointAdded => _onBreakpointAdded.stream; | 86 get onBreakpointAdded => _onBreakpointAdded.stream; |
86 get onBreakpointAddedHasListener => _onBreakpointAdded.hasListener; | 87 get onBreakpointAddedHasListener => _onBreakpointAdded.hasListener; |
87 | 88 |
88 final _onBreakpointResolved = | 89 final _onBreakpointResolved = |
89 new StreamController<M.BreakpointResolvedEvent>.broadcast(); | 90 new StreamController<M.BreakpointResolvedEvent>.broadcast(); |
90 get onBreakpointResolved => _onBreakpointResolved.stream; | 91 get onBreakpointResolved => _onBreakpointResolved.stream; |
91 get onBreakpointResolvedHasListener => _onBreakpointResolved.hasListener; | 92 get onBreakpointResolvedHasListener => _onBreakpointResolved.hasListener; |
92 | 93 |
93 final _onBreakpointRemoved = | 94 final _onBreakpointRemoved = |
94 new StreamController<M.BreakpointRemovedEvent>.broadcast(); | 95 new StreamController<M.BreakpointRemovedEvent>.broadcast(); |
95 get onBreakpointRemoved => _onBreakpointRemoved.stream; | 96 get onBreakpointRemoved => _onBreakpointRemoved.stream; |
96 get onBreakpointRemovedHasListener => _onBreakpointRemoved.hasListener; | 97 get onBreakpointRemovedHasListener => _onBreakpointRemoved.hasListener; |
97 | 98 |
98 final _onInspect = new StreamController<M.InspectEvent>.broadcast(); | 99 final _onInspect = new StreamController<M.InspectEvent>.broadcast(); |
99 get onInspect => _onInspect.stream; | 100 get onInspect => _onInspect.stream; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 } | 167 } |
167 } else if (event is M.GCEvent) { | 168 } else if (event is M.GCEvent) { |
168 _onGCEvent.add(event); | 169 _onGCEvent.add(event); |
169 } else if (event is M.ExtensionEvent) { | 170 } else if (event is M.ExtensionEvent) { |
170 _onExtensionEvent.add(event); | 171 _onExtensionEvent.add(event); |
171 } else if (event is M.TimelineEventsEvent) { | 172 } else if (event is M.TimelineEventsEvent) { |
172 _onTimelineEvents.add(event); | 173 _onTimelineEvents.add(event); |
173 } | 174 } |
174 } | 175 } |
175 } | 176 } |
OLD | NEW |