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

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

Issue 2270013002: Converted Observatory context-view element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed access to instance function 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/context.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/context.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/context.dart
index 2ac5e5e4f884d521af4aed51cedbb1520594f1b7..0ece44511d03cd5b3b84e5bd5da392048473d070 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/context.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/context.dart
@@ -8,7 +8,7 @@ class ContextRefMock implements M.ContextRef {
final String id;
final int length;
- const ContextRefMock({this.id, this.length: 0});
+ const ContextRefMock({this.id: 'context-id', this.length});
}
class ContextMock implements M.Context {
@@ -17,7 +17,16 @@ class ContextMock implements M.Context {
final int size;
final int length;
final M.Context parentContext;
+ final Iterable<M.ContextElement> variables;
- const ContextMock({this.id, this.clazz, this.size, this.length: 0,
- this.parentContext});
+ const ContextMock({this.id: 'context-id', this.clazz: const ClassMock(),
+ this.size: 0, this.length, this.parentContext,
+ this.variables: const []});
+}
+
+class ContextElementMock implements M.ContextElement {
+ final GuardedMock<M.InstanceRef> value;
+
+ const ContextElementMock({this.value: const GuardedMock.fromValue(
+ const InstanceRefMock())});
}

Powered by Google App Engine
This is Rietveld 408576698