| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 part of mocks; |
| 6 |
| 7 class InstanceRefMock implements M.InstanceRef { |
| 8 final String id; |
| 9 final String name; |
| 10 final M.InstanceKind kind; |
| 11 final M.ClassRef clazz; |
| 12 final String valueAsString; |
| 13 final bool valueAsStringIsTruncated; |
| 14 final int length; |
| 15 final M.ClassRef typeClass; |
| 16 final M.ClassRef parameterizedClass; |
| 17 final M.InstanceRef pattern; |
| 18 final M.FunctionRef closureFunction; |
| 19 |
| 20 const InstanceRefMock({this.id: 'instance-id', this.name: 'instance-name', |
| 21 this.kind: M.InstanceKind.vNull, this.clazz, |
| 22 this.valueAsString: 'null', |
| 23 this.valueAsStringIsTruncated, this.length, |
| 24 this.typeClass, this.parameterizedClass, this.pattern, |
| 25 this.closureFunction}); |
| 26 } |
| 27 |
| 28 class InstanceMock implements M.Instance { |
| 29 final String id; |
| 30 final String name; |
| 31 final M.InstanceKind kind; |
| 32 final M.ClassRef clazz; |
| 33 final int size; |
| 34 final String valueAsString; |
| 35 final bool valueAsStringIsTruncated; |
| 36 final int length; |
| 37 final M.ClassRef typeClass; |
| 38 final M.ClassRef parameterizedClass; |
| 39 final M.InstanceRef pattern; |
| 40 final M.FunctionRef closureFunction; |
| 41 final int offset; |
| 42 final int count; |
| 43 final Iterable<dynamic> typedElements; |
| 44 final Iterable<M.BoundField> fields; |
| 45 final Iterable<M.Guarded<M.ObjectRef>> elements; |
| 46 final Iterable<M.MapAssociation> associations; |
| 47 final M.InstanceRef key; |
| 48 final M.InstanceRef value; |
| 49 final M.InstanceRef referent; |
| 50 |
| 51 const InstanceMock({this.id: 'instance-id', this.name: 'instance-name', |
| 52 this.kind: M.InstanceKind.vNull, this.clazz, this.size, |
| 53 this.valueAsString: 'null', this.valueAsStringIsTruncated, |
| 54 this.length, this.typeClass, this.parameterizedClass, |
| 55 this.pattern, this.closureFunction, this.offset, |
| 56 this.count, this.typedElements, this.fields, |
| 57 this.elements, this.associations, this.key, this.value, |
| 58 this.referent}); |
| 59 } |
| OLD | NEW |