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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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( 22 const ObjectPoolMock({this.id: 'objectpool-id', this.vmName: 'objpool-vmName',
23 {this.id: 'objectpool-id', 23 this.clazz: const ClassRefMock(), this.size: 1,
24 this.vmName: 'objpool-vmName', 24 this.length: 0, this.entries: const []});
25 this.clazz: const ClassRefMock(),
26 this.size: 1,
27 this.length: 0,
28 this.entries: const []});
29 } 25 }
30 26
31 class ObjectPoolEntryMock implements M.ObjectPoolEntry { 27 class ObjectPoolEntryMock implements M.ObjectPoolEntry {
32 final int offset; 28 final int offset;
33 final M.ObjectPoolEntryKind kind; 29 final M.ObjectPoolEntryKind kind;
34 final M.ObjectRef asObject; 30 final M.ObjectRef asObject;
35 final int asInteger; 31 final int asInteger;
36 32
37 const ObjectPoolEntryMock( 33 const ObjectPoolEntryMock({this.offset: 0,
38 {this.offset: 0, 34 this.kind: M.ObjectPoolEntryKind.object,
39 this.kind: M.ObjectPoolEntryKind.object, 35 this.asObject: const InstanceRefMock(),
40 this.asObject: const InstanceRefMock(), 36 this.asInteger: null});
41 this.asInteger: null});
42 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698