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

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

Issue 2294073003: Converted Observatory class-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 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 int size; 18 final int size;
18 final int length; 19 final int length;
19 final Iterable<M.ObjectPoolEntry> entries; 20 final Iterable<M.ObjectPoolEntry> entries;
20 21
21 const ObjectPoolMock({this.id: 'objectpool-id', 22 const ObjectPoolMock({this.id: 'objectpool-id', this.vmName: 'objpool-vmName',
22 this.clazz: const ClassRefMock(), this.size: 1, 23 this.clazz: const ClassRefMock(), this.size: 1,
23 this.length: 0, this.entries: const []}); 24 this.length: 0, this.entries: const []});
24 } 25 }
25 26
26 class ObjectPoolEntryMock implements M.ObjectPoolEntry { 27 class ObjectPoolEntryMock implements M.ObjectPoolEntry {
27 final int offset; 28 final int offset;
28 final M.ObjectPoolEntryKind kind; 29 final M.ObjectPoolEntryKind kind;
29 final M.ObjectRef asObject; 30 final M.ObjectRef asObject;
30 final int asInteger; 31 final int asInteger;
31 32
32 const ObjectPoolEntryMock({this.offset: 0, 33 const ObjectPoolEntryMock({this.offset: 0,
33 this.kind: M.ObjectPoolEntryKind.object, 34 this.kind: M.ObjectPoolEntryKind.object,
34 this.asObject: const InstanceRefMock(), 35 this.asObject: const InstanceRefMock(),
35 this.asInteger: null}); 36 this.asInteger: null});
36 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698