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 InstanceRefMock implements M.InstanceRef { | 7 class InstanceRefMock implements M.InstanceRef { |
8 final String id; | 8 final String id; |
9 final String name; | 9 final String name; |
10 final M.InstanceKind kind; | 10 final M.InstanceKind kind; |
(...skipping 11 matching lines...) Expand all Loading... |
22 this.kind: M.InstanceKind.vNull, this.clazz, | 22 this.kind: M.InstanceKind.vNull, this.clazz, |
23 this.valueAsString: 'null', | 23 this.valueAsString: 'null', |
24 this.valueAsStringIsTruncated, this.length, | 24 this.valueAsStringIsTruncated, this.length, |
25 this.typeClass, this.parameterizedClass, this.pattern, | 25 this.typeClass, this.parameterizedClass, this.pattern, |
26 this.closureFunction, this.closureContext}); | 26 this.closureFunction, this.closureContext}); |
27 } | 27 } |
28 | 28 |
29 class InstanceMock implements M.Instance { | 29 class InstanceMock implements M.Instance { |
30 final String id; | 30 final String id; |
31 final String name; | 31 final String name; |
| 32 final String vmName; |
32 final M.InstanceKind kind; | 33 final M.InstanceKind kind; |
33 final M.ClassRef clazz; | 34 final M.ClassRef clazz; |
34 final int size; | 35 final int size; |
35 final String valueAsString; | 36 final String valueAsString; |
36 final bool valueAsStringIsTruncated; | 37 final bool valueAsStringIsTruncated; |
37 final int length; | 38 final int length; |
38 final M.ClassRef typeClass; | 39 final M.ClassRef typeClass; |
39 final M.ClassRef parameterizedClass; | 40 final M.ClassRef parameterizedClass; |
40 final M.InstanceRef pattern; | 41 final M.InstanceRef pattern; |
41 final M.FunctionRef closureFunction; | 42 final M.FunctionRef closureFunction; |
(...skipping 16 matching lines...) Expand all Loading... |
58 final bool isCaseSensitive; | 59 final bool isCaseSensitive; |
59 final bool isMultiLine; | 60 final bool isMultiLine; |
60 final M.FunctionRef oneByteFunction; | 61 final M.FunctionRef oneByteFunction; |
61 final M.FunctionRef twoByteFunction; | 62 final M.FunctionRef twoByteFunction; |
62 final M.FunctionRef externalOneByteFunction; | 63 final M.FunctionRef externalOneByteFunction; |
63 final M.FunctionRef externalTwoByteFunction; | 64 final M.FunctionRef externalTwoByteFunction; |
64 final M.InstanceRef oneByteBytecode; | 65 final M.InstanceRef oneByteBytecode; |
65 final M.InstanceRef twoByteBytecode; | 66 final M.InstanceRef twoByteBytecode; |
66 | 67 |
67 const InstanceMock({this.id: 'instance-id', this.name: 'instance-name', | 68 const InstanceMock({this.id: 'instance-id', this.name: 'instance-name', |
| 69 this.vmName: 'instance-vmName', |
68 this.kind: M.InstanceKind.vNull, | 70 this.kind: M.InstanceKind.vNull, |
69 this.clazz: const ClassRefMock(), this.size: 0, | 71 this.clazz: const ClassRefMock(), this.size: 0, |
70 this.valueAsString: 'null', this.valueAsStringIsTruncated, | 72 this.valueAsString: 'null', this.valueAsStringIsTruncated, |
71 this.length, this.typeClass, this.parameterizedClass, | 73 this.length, this.typeClass, this.parameterizedClass, |
72 this.pattern, this.closureFunction, this.closureContext, | 74 this.pattern, this.closureFunction, this.closureContext, |
73 this.offset, this.count, this.typedElements, this.fields, | 75 this.offset, this.count, this.typedElements, this.fields, |
74 this.nativeFields, this.elements, this.associations, | 76 this.nativeFields, this.elements, this.associations, |
75 this.key, this.value, this.referent, this.typeArguments, | 77 this.key, this.value, this.referent, this.typeArguments, |
76 this.parameterIndex, this.targetType, this.bound, | 78 this.parameterIndex, this.targetType, this.bound, |
77 this.activationBreakpoint, this.isCaseSensitive, | 79 this.activationBreakpoint, this.isCaseSensitive, |
78 this.isMultiLine, this.oneByteFunction, | 80 this.isMultiLine, this.oneByteFunction, |
79 this.twoByteFunction, this.externalOneByteFunction, | 81 this.twoByteFunction, this.externalOneByteFunction, |
80 this.externalTwoByteFunction, this.oneByteBytecode, | 82 this.externalTwoByteFunction, this.oneByteBytecode, |
81 this.twoByteBytecode}); | 83 this.twoByteBytecode}); |
82 } | 84 } |
OLD | NEW |