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; |
11 final M.ClassRef clazz; | 11 final M.ClassRef clazz; |
12 final String valueAsString; | 12 final String valueAsString; |
13 final bool valueAsStringIsTruncated; | 13 final bool valueAsStringIsTruncated; |
14 final int length; | 14 final int length; |
15 final M.ClassRef typeClass; | 15 final M.ClassRef typeClass; |
16 final M.ClassRef parameterizedClass; | 16 final M.ClassRef parameterizedClass; |
17 final M.InstanceRef pattern; | 17 final M.InstanceRef pattern; |
18 final M.FunctionRef closureFunction; | 18 final M.FunctionRef closureFunction; |
19 final M.ContextRef closureContext; | 19 final M.ContextRef closureContext; |
20 | 20 |
21 const InstanceRefMock( | 21 const InstanceRefMock({this.id: 'instance-id', this.name: 'instance-name', |
22 {this.id: 'instance-id', | 22 this.kind: M.InstanceKind.vNull, this.clazz, |
23 this.name: 'instance-name', | 23 this.valueAsString: 'null', |
24 this.kind: M.InstanceKind.vNull, | 24 this.valueAsStringIsTruncated, this.length, |
25 this.clazz, | 25 this.typeClass, this.parameterizedClass, this.pattern, |
26 this.valueAsString: 'null', | 26 this.closureFunction, this.closureContext}); |
27 this.valueAsStringIsTruncated, | |
28 this.length, | |
29 this.typeClass, | |
30 this.parameterizedClass, | |
31 this.pattern, | |
32 this.closureFunction, | |
33 this.closureContext}); | |
34 } | 27 } |
35 | 28 |
36 class InstanceMock implements M.Instance { | 29 class InstanceMock implements M.Instance { |
37 final String id; | 30 final String id; |
38 final String name; | 31 final String name; |
39 final String vmName; | 32 final String vmName; |
40 final M.InstanceKind kind; | 33 final M.InstanceKind kind; |
41 final M.ClassRef clazz; | 34 final M.ClassRef clazz; |
42 final int size; | 35 final int size; |
43 final String valueAsString; | 36 final String valueAsString; |
(...skipping 21 matching lines...) Expand all Loading... |
65 final M.Breakpoint activationBreakpoint; | 58 final M.Breakpoint activationBreakpoint; |
66 final bool isCaseSensitive; | 59 final bool isCaseSensitive; |
67 final bool isMultiLine; | 60 final bool isMultiLine; |
68 final M.FunctionRef oneByteFunction; | 61 final M.FunctionRef oneByteFunction; |
69 final M.FunctionRef twoByteFunction; | 62 final M.FunctionRef twoByteFunction; |
70 final M.FunctionRef externalOneByteFunction; | 63 final M.FunctionRef externalOneByteFunction; |
71 final M.FunctionRef externalTwoByteFunction; | 64 final M.FunctionRef externalTwoByteFunction; |
72 final M.InstanceRef oneByteBytecode; | 65 final M.InstanceRef oneByteBytecode; |
73 final M.InstanceRef twoByteBytecode; | 66 final M.InstanceRef twoByteBytecode; |
74 | 67 |
75 const InstanceMock( | 68 const InstanceMock({this.id: 'instance-id', this.name: 'instance-name', |
76 {this.id: 'instance-id', | 69 this.vmName: 'instance-vmName', |
77 this.name: 'instance-name', | 70 this.kind: M.InstanceKind.vNull, |
78 this.vmName: 'instance-vmName', | 71 this.clazz: const ClassRefMock(), this.size: 0, |
79 this.kind: M.InstanceKind.vNull, | 72 this.valueAsString: 'null', this.valueAsStringIsTruncated, |
80 this.clazz: const ClassRefMock(), | 73 this.length, this.typeClass, this.parameterizedClass, |
81 this.size: 0, | 74 this.pattern, this.closureFunction, this.closureContext, |
82 this.valueAsString: 'null', | 75 this.offset, this.count, this.typedElements, this.fields, |
83 this.valueAsStringIsTruncated, | 76 this.nativeFields, this.elements, this.associations, |
84 this.length, | 77 this.key, this.value, this.referent, this.typeArguments, |
85 this.typeClass, | 78 this.parameterIndex, this.targetType, this.bound, |
86 this.parameterizedClass, | 79 this.activationBreakpoint, this.isCaseSensitive, |
87 this.pattern, | 80 this.isMultiLine, this.oneByteFunction, |
88 this.closureFunction, | 81 this.twoByteFunction, this.externalOneByteFunction, |
89 this.closureContext, | 82 this.externalTwoByteFunction, this.oneByteBytecode, |
90 this.offset, | 83 this.twoByteBytecode}); |
91 this.count, | |
92 this.typedElements, | |
93 this.fields, | |
94 this.nativeFields, | |
95 this.elements, | |
96 this.associations, | |
97 this.key, | |
98 this.value, | |
99 this.referent, | |
100 this.typeArguments, | |
101 this.parameterIndex, | |
102 this.targetType, | |
103 this.bound, | |
104 this.activationBreakpoint, | |
105 this.isCaseSensitive, | |
106 this.isMultiLine, | |
107 this.oneByteFunction, | |
108 this.twoByteFunction, | |
109 this.externalOneByteFunction, | |
110 this.externalTwoByteFunction, | |
111 this.oneByteBytecode, | |
112 this.twoByteBytecode}); | |
113 } | 84 } |
OLD | NEW |