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

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/objects/class.dart

Issue 2294073003: Converted Observatory class-view element (Closed)
Patch Set: Addressed comments Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
index 42209d65e4bcb247251483b065074c28701c2ce4..bcb465e79f4126584db557ec5cb96510055fd26b 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/class.dart
@@ -13,6 +13,7 @@ class ClassRefMock implements M.ClassRef {
class ClassMock implements M.Class {
final String id;
final String name;
+ final String vmName;
final M.ClassRef clazz;
final int size;
final M.ErrorRef error;
@@ -24,11 +25,21 @@ class ClassMock implements M.Class {
final M.ClassRef superclass;
final M.InstanceRef superType;
final Iterable<M.InstanceRef> interfaces;
+ final Iterable<M.FieldRef> fields;
+ final Iterable<M.FunctionRef> functions;
final M.InstanceRef mixin;
final Iterable<M.ClassRef> subclasses;
- const ClassMock({this.id: 'c-id', this.name: 'c-name', this.clazz, this.size,
- this.error, this.isAbstract: false, this.isConst: false,
- this.isPatch: false, this.library, this.location, this.superclass,
- this.superType, this.interfaces: const [], this.mixin,
- this.subclasses: const []});
+ final M.Allocations newSpace;
+ final M.Allocations oldSpace;
+ final bool hasAllocations;
+ bool get hasNoAllocations => !hasAllocations;
+ final bool traceAllocations;
+ const ClassMock({this.id: 'c-id', this.name: 'c-name', this.vmName: 'c-name',
+ this.clazz, this.size, this.error, this.isAbstract: false,
+ this.isConst: false, this.isPatch: false, this.library,
+ this.location, this.superclass, this.superType,
+ this.interfaces: const [], this.fields: const [],
+ this.functions: const [], this.mixin,
+ this.subclasses: const [], this.hasAllocations: false,
+ this.newSpace, this.oldSpace, this.traceAllocations: false});
}
« no previous file with comments | « runtime/observatory/observatory_sources.gypi ('k') | runtime/observatory/tests/observatory_ui/mocks/objects/code.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698