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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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 FunctionRefMock implements M.FunctionRef { 7 class FunctionRefMock implements M.FunctionRef {
8 final String id; 8 final String id;
9 final String name; 9 final String name;
10 final M.ObjectRef dartOwner; 10 final M.ObjectRef dartOwner;
11 final bool isStatic; 11 final bool isStatic;
12 final bool isConst; 12 final bool isConst;
13 final M.FunctionKind kind; 13 final M.FunctionKind kind;
14 14
15 const FunctionRefMock({this.id, this.name, this.dartOwner, 15 const FunctionRefMock(
16 this.isStatic : false, this.isConst : false, this.kind}); 16 {this.id,
17 this.name,
18 this.dartOwner,
19 this.isStatic: false,
20 this.isConst: false,
21 this.kind});
17 } 22 }
18 23
19 class FunctionMock implements M.Function { 24 class FunctionMock implements M.Function {
20 final String id; 25 final String id;
21 final String name; 26 final String name;
22 final M.ClassRef clazz; 27 final M.ClassRef clazz;
23 final int size; 28 final int size;
24 final M.ObjectRef dartOwner; 29 final M.ObjectRef dartOwner;
25 final bool isStatic; 30 final bool isStatic;
26 final bool isConst; 31 final bool isConst;
27 final M.FunctionKind kind; 32 final M.FunctionKind kind;
28 final M.SourceLocation location; 33 final M.SourceLocation location;
29 final M.CodeRef code; 34 final M.CodeRef code;
30 final M.CodeRef unoptimizedCode; 35 final M.CodeRef unoptimizedCode;
31 final M.FieldRef field; 36 final M.FieldRef field;
32 final int usageCounter; 37 final int usageCounter;
33 final M.InstanceRef icDataArray; 38 final M.InstanceRef icDataArray;
34 final int deoptimizations; 39 final int deoptimizations;
35 final bool isOptimizable; 40 final bool isOptimizable;
36 final bool isInlinable; 41 final bool isInlinable;
37 final bool hasIntrinsic; 42 final bool hasIntrinsic;
38 final bool isRecognized; 43 final bool isRecognized;
39 final bool isNative; 44 final bool isNative;
40 final String vmName; 45 final String vmName;
41 const FunctionMock({this.id, this.name, this.clazz, this.size, this.dartOwner, 46 const FunctionMock({
42 this.isStatic : false, this.isConst : false, this.kind, this.location, 47 this.id,
43 this.code, this.unoptimizedCode, this.field, this.usageCounter: 0, 48 this.name,
44 this.icDataArray: const InstanceRefMock(), this.deoptimizations: 0, 49 this.clazz,
45 this.isOptimizable: false, this.isInlinable: false, 50 this.size,
46 this.hasIntrinsic: false, this.isRecognized: false, this.isNative: false, 51 this.dartOwner,
47 this.vmName: 'function-vm-name',}); 52 this.isStatic: false,
53 this.isConst: false,
54 this.kind,
55 this.location,
56 this.code,
57 this.unoptimizedCode,
58 this.field,
59 this.usageCounter: 0,
60 this.icDataArray: const InstanceRefMock(),
61 this.deoptimizations: 0,
62 this.isOptimizable: false,
63 this.isInlinable: false,
64 this.hasIntrinsic: false,
65 this.isRecognized: false,
66 this.isNative: false,
67 this.vmName: 'function-vm-name',
68 });
48 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698