Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: runtime/observatory/tests/observatory_ui/mocks/objects/instance.dart

Issue 2291233002: Converted Observatory instance-view element (Closed)
Patch Set: Addressed comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20
20 const InstanceRefMock({this.id: 'instance-id', this.name: 'instance-name', 21 const InstanceRefMock({this.id: 'instance-id', this.name: 'instance-name',
21 this.kind: M.InstanceKind.vNull, this.clazz, 22 this.kind: M.InstanceKind.vNull, this.clazz,
22 this.valueAsString: 'null', 23 this.valueAsString: 'null',
23 this.valueAsStringIsTruncated, this.length, 24 this.valueAsStringIsTruncated, this.length,
24 this.typeClass, this.parameterizedClass, this.pattern, 25 this.typeClass, this.parameterizedClass, this.pattern,
25 this.closureFunction}); 26 this.closureFunction, this.closureContext});
26 } 27 }
27 28
28 class InstanceMock implements M.Instance { 29 class InstanceMock implements M.Instance {
29 final String id; 30 final String id;
30 final String name; 31 final String name;
31 final M.InstanceKind kind; 32 final M.InstanceKind kind;
32 final M.ClassRef clazz; 33 final M.ClassRef clazz;
33 final int size; 34 final int size;
34 final String valueAsString; 35 final String valueAsString;
35 final bool valueAsStringIsTruncated; 36 final bool valueAsStringIsTruncated;
36 final int length; 37 final int length;
37 final M.ClassRef typeClass; 38 final M.ClassRef typeClass;
38 final M.ClassRef parameterizedClass; 39 final M.ClassRef parameterizedClass;
39 final M.InstanceRef pattern; 40 final M.InstanceRef pattern;
40 final M.FunctionRef closureFunction; 41 final M.FunctionRef closureFunction;
42 final M.ContextRef closureContext;
41 final int offset; 43 final int offset;
42 final int count; 44 final int count;
43 final Iterable<dynamic> typedElements; 45 final Iterable<dynamic> typedElements;
44 final Iterable<M.BoundField> fields; 46 final Iterable<M.BoundField> fields;
47 final Iterable<M.NativeField> nativeFields;
45 final Iterable<M.Guarded<M.ObjectRef>> elements; 48 final Iterable<M.Guarded<M.ObjectRef>> elements;
46 final Iterable<M.MapAssociation> associations; 49 final Iterable<M.MapAssociation> associations;
47 final M.InstanceRef key; 50 final M.InstanceRef key;
48 final M.InstanceRef value; 51 final M.InstanceRef value;
49 final M.InstanceRef referent; 52 final M.InstanceRef referent;
53 final M.TypeArguments typeArguments;
54 final int parameterIndex;
55 final M.InstanceRef targetType;
56 final M.InstanceRef bound;
57 final M.Breakpoint activationBreakpoint;
58 final bool isCaseSensitive;
59 final bool isMultiLine;
60 final M.FunctionRef oneByteFunction;
61 final M.FunctionRef twoByteFunction;
62 final M.FunctionRef externalOneByteFunction;
63 final M.FunctionRef externalTwoByteFunction;
64 final M.InstanceRef oneByteBytecode;
65 final M.InstanceRef twoByteBytecode;
50 66
51 const InstanceMock({this.id: 'instance-id', this.name: 'instance-name', 67 const InstanceMock({this.id: 'instance-id', this.name: 'instance-name',
52 this.kind: M.InstanceKind.vNull, 68 this.kind: M.InstanceKind.vNull,
53 this.clazz: const ClassRefMock(), this.size: 0, 69 this.clazz: const ClassRefMock(), this.size: 0,
54 this.valueAsString: 'null', this.valueAsStringIsTruncated, 70 this.valueAsString: 'null', this.valueAsStringIsTruncated,
55 this.length, this.typeClass, this.parameterizedClass, 71 this.length, this.typeClass, this.parameterizedClass,
56 this.pattern, this.closureFunction, this.offset, 72 this.pattern, this.closureFunction, this.closureContext,
57 this.count, this.typedElements, this.fields, 73 this.offset, this.count, this.typedElements, this.fields,
58 this.elements, this.associations, this.key, this.value, 74 this.nativeFields, this.elements, this.associations,
59 this.referent}); 75 this.key, this.value, this.referent, this.typeArguments,
76 this.parameterIndex, this.targetType, this.bound,
77 this.activationBreakpoint, this.isCaseSensitive,
78 this.isMultiLine, this.oneByteFunction,
79 this.twoByteFunction, this.externalOneByteFunction,
80 this.externalTwoByteFunction, this.oneByteBytecode,
81 this.twoByteBytecode});
60 } 82 }
OLDNEW
« no previous file with comments | « runtime/observatory/observatory_sources.gypi ('k') | runtime/observatory/tests/service/contexts_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698