| Index: runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
|
| diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
|
| index 42209d65e4bcb247251483b065074c28701c2ce4..bcb465e79f4126584db557ec5cb96510055fd26b 100644
|
| --- a/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
|
| +++ b/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
|
| @@ -13,6 +13,7 @@ class ClassRefMock implements M.ClassRef {
|
| class ClassMock implements M.Class {
|
| final String id;
|
| final String name;
|
| + final String vmName;
|
| final M.ClassRef clazz;
|
| final int size;
|
| final M.ErrorRef error;
|
| @@ -24,11 +25,21 @@ class ClassMock implements M.Class {
|
| final M.ClassRef superclass;
|
| final M.InstanceRef superType;
|
| final Iterable<M.InstanceRef> interfaces;
|
| + final Iterable<M.FieldRef> fields;
|
| + final Iterable<M.FunctionRef> functions;
|
| final M.InstanceRef mixin;
|
| final Iterable<M.ClassRef> subclasses;
|
| - const ClassMock({this.id: 'c-id', this.name: 'c-name', this.clazz, this.size,
|
| - this.error, this.isAbstract: false, this.isConst: false,
|
| - this.isPatch: false, this.library, this.location, this.superclass,
|
| - this.superType, this.interfaces: const [], this.mixin,
|
| - this.subclasses: const []});
|
| + final M.Allocations newSpace;
|
| + final M.Allocations oldSpace;
|
| + final bool hasAllocations;
|
| + bool get hasNoAllocations => !hasAllocations;
|
| + final bool traceAllocations;
|
| + const ClassMock({this.id: 'c-id', this.name: 'c-name', this.vmName: 'c-name',
|
| + this.clazz, this.size, this.error, this.isAbstract: false,
|
| + this.isConst: false, this.isPatch: false, this.library,
|
| + this.location, this.superclass, this.superType,
|
| + this.interfaces: const [], this.fields: const [],
|
| + this.functions: const [], this.mixin,
|
| + this.subclasses: const [], this.hasAllocations: false,
|
| + this.newSpace, this.oldSpace, this.traceAllocations: false});
|
| }
|
|
|