| Index: runtime/observatory/lib/src/mocks/objects/event.dart
|
| diff --git a/runtime/observatory/lib/src/mocks/objects/event.dart b/runtime/observatory/lib/src/mocks/objects/event.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..63d9648de1ecb4699f3cf50d3c3df55c75f6ade7
|
| --- /dev/null
|
| +++ b/runtime/observatory/lib/src/mocks/objects/event.dart
|
| @@ -0,0 +1,139 @@
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file
|
| +
|
| +part of mocks;
|
| +
|
| +class VMUpdateEventMock extends M.VMUpdateEvent {
|
| + final M.VMRef vm;
|
| + final DateTime timestamp;
|
| + VMUpdateEventMock({this.timestamp, this.vm});
|
| +}
|
| +class IsolateStartEventMock implements M.IsolateStartEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + IsolateStartEventMock({this.timestamp, this.isolate});
|
| +}
|
| +class IsolateRunnableEventMock implements M.IsolateRunnableEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + IsolateRunnableEventMock({this.timestamp, this.isolate});
|
| +}
|
| +class IsolateExitEventMock implements M.IsolateExitEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + IsolateExitEventMock({this.timestamp, this.isolate});
|
| +}
|
| +class IsolateUpdateEventMock implements M.IsolateUpdateEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + IsolateUpdateEventMock({this.timestamp, this.isolate});
|
| +}
|
| +class IsolateRealodEventMock implements M.IsolateReloadEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.Error error;
|
| + IsolateRealodEventMock({this.timestamp, this.isolate, this.error});
|
| +}
|
| +class ServiceExtensionAddedEventMock extends M.ServiceExtensionAddedEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final String extensionRPC;
|
| + ServiceExtensionAddedEventMock({this.extensionRPC, this.isolate,
|
| + this.timestamp});
|
| +}
|
| +class PauseStartEventMock extends M.PauseStartEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + PauseStartEventMock({this.isolate, this.timestamp});
|
| +}
|
| +class PauseExitEventMock extends M.PauseExitEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + PauseExitEventMock({this.isolate, this.timestamp});
|
| +}
|
| +class PauseBreakpointEventMock extends M.PauseBreakpointEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.Breakpoint breakpoint;
|
| + final List<M.Breakpoint> pauseBreakpoints;
|
| + final M.Frame topFrame;
|
| + final bool atAsyncSuspension;
|
| + PauseBreakpointEventMock({this.timestamp, this.isolate, this.breakpoint,
|
| + this.pauseBreakpoints, this.topFrame,
|
| + this.atAsyncSuspension});
|
| +}
|
| +class PauseInterruptedEventMock extends M.PauseInterruptedEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.Frame topFrame;
|
| + bool atAsyncSuspension;
|
| + PauseInterruptedEventMock({this.timestamp, this.isolate, this.topFrame,
|
| + this.atAsyncSuspension});
|
| +}
|
| +class PauseExceptionEventMock extends M.PauseExceptionEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.Frame topFrame;
|
| + final M.InstanceRef exception;
|
| + PauseExceptionEventMock({this.timestamp, this.isolate, this.topFrame,
|
| + this.exception});
|
| +}
|
| +class ResumeEventMock extends M.ResumeEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + ResumeEventMock({this.timestamp, this.isolate});
|
| +}
|
| +class BreakpointAddedEventMock extends M.BreakpointAddedEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.Breakpoint breakpoint;
|
| + BreakpointAddedEventMock({this.timestamp, this.isolate, this.breakpoint});
|
| +}
|
| +class BreakpointResolvedEventMock extends M.BreakpointResolvedEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.Breakpoint breakpoint;
|
| + BreakpointResolvedEventMock({this.timestamp, this.isolate, this.breakpoint});
|
| +}
|
| +class BreakpointRemovedEventMock extends M.BreakpointRemovedEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.Breakpoint breakpoint;
|
| + BreakpointRemovedEventMock({this.timestamp, this.isolate, this.breakpoint});
|
| +}
|
| +class InspectEventMock extends M.InspectEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final M.InstanceRef inspectee;
|
| + InspectEventMock({this.timestamp, this.isolate, this.inspectee});
|
| +}
|
| +class NoneEventMock extends M.NoneEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + NoneEventMock({this.timestamp, this.isolate});
|
| +}
|
| +class GCEventMock extends M.GCEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + GCEventMock({this.timestamp, this.isolate});
|
| +}
|
| +class ExtensionEventMock extends M.ExtensionEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final String extensionKind;
|
| + final M.ExtensionData extensionData;
|
| + ExtensionEventMock({this.timestamp, this.isolate, this.extensionKind,
|
| + this.extensionData});
|
| +}
|
| +class TimelineEventsEventMock extends M.TimelineEventsEvent {
|
| + final DateTime timestamp;
|
| + final M.IsolateRef isolate;
|
| + final List<M.TimelineEvent> timelineEvents;
|
| + TimelineEventsEventMock({this.timestamp, this.isolate, this.timelineEvents});
|
| +}
|
| +class ConnectionClockedEventMock extends M.ConnectionClosedEvent {
|
| + final DateTime timestamp;
|
| + final String reason;
|
| + ConnectionClockedEventMock({this.timestamp, this.reason});
|
| +}
|
|
|