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

Side by Side Diff: runtime/observatory/tests/observatory_ui/mocks/objects/objectpool.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 ObjectPoolRefMock implements M.ObjectPoolRef { 7 class ObjectPoolRefMock implements M.ObjectPoolRef {
8 final String id; 8 final String id;
9 final int length; 9 final int length;
10 10
11 const ObjectPoolRefMock({this.id: 'objectpool-id', this.length: 0}); 11 const ObjectPoolRefMock({this.id: 'objectpool-id', this.length: 0});
12 } 12 }
13 13
14 class ObjectPoolMock implements M.ObjectPool { 14 class ObjectPoolMock implements M.ObjectPool {
15 final String id; 15 final String id;
16 final M.ClassRef clazz; 16 final M.ClassRef clazz;
17 final String vmName; 17 final String vmName;
18 final int size; 18 final int size;
19 final int length; 19 final int length;
20 final Iterable<M.ObjectPoolEntry> entries; 20 final Iterable<M.ObjectPoolEntry> entries;
21 21
22 const ObjectPoolMock({this.id: 'objectpool-id', this.vmName: 'objpool-vmName', 22 const ObjectPoolMock(
23 this.clazz: const ClassRefMock(), this.size: 1, 23 {this.id: 'objectpool-id',
24 this.length: 0, this.entries: const []}); 24 this.vmName: 'objpool-vmName',
25 this.clazz: const ClassRefMock(),
26 this.size: 1,
27 this.length: 0,
28 this.entries: const []});
25 } 29 }
26 30
27 class ObjectPoolEntryMock implements M.ObjectPoolEntry { 31 class ObjectPoolEntryMock implements M.ObjectPoolEntry {
28 final int offset; 32 final int offset;
29 final M.ObjectPoolEntryKind kind; 33 final M.ObjectPoolEntryKind kind;
30 final M.ObjectRef asObject; 34 final M.ObjectRef asObject;
31 final int asInteger; 35 final int asInteger;
32 36
33 const ObjectPoolEntryMock({this.offset: 0, 37 const ObjectPoolEntryMock(
34 this.kind: M.ObjectPoolEntryKind.object, 38 {this.offset: 0,
35 this.asObject: const InstanceRefMock(), 39 this.kind: M.ObjectPoolEntryKind.object,
36 this.asInteger: null}); 40 this.asObject: const InstanceRefMock(),
41 this.asInteger: null});
37 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698