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

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

Issue 2244433003: Converted Observatory refs elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master 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/sentinel.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/source_location.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/sentinel.dart
similarity index 52%
copy from runtime/observatory/tests/observatory_ui/mocks/objects/source_location.dart
copy to runtime/observatory/tests/observatory_ui/mocks/objects/sentinel.dart
index a795589f8b8d1fcaaba35fb71fb49a01d4b81cfb..1d77a3589eb04176008a4e9a8a216d7ddd79c642 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/source_location.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/sentinel.dart
@@ -4,10 +4,10 @@
part of mocks;
-class SourceLocationMock implements M.SourceLocation {
- final M.ScriptRef script;
- final int tokenPos;
- final int endTokenPos;
+class Sentinel implements M.Sentinel {
+ final M.SentinelKind kind;
+ final String valueAsString;
- const SourceLocationMock({this.script, this.tokenPos, this.endTokenPos});
+ const Sentinel({this.kind: M.SentinelKind.collected,
+ this.valueAsString: 'sentinel-value'});
}

Powered by Google App Engine
This is Rietveld 408576698