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

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/objects/script.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/script.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/script.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/script.dart
index 86e139ff7c907d80f2ba0f715c0e899a86f23abd..c6d2769a76eeaa5f2112e21f8b9498f85aef388e 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/script.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/script.dart
@@ -16,6 +16,7 @@ typedef int TokenToInt(int token);
class ScriptMock implements M.Script {
final String id;
final M.ClassRef clazz;
+ final String vmName;
final int size;
final String uri;
final String source;
@@ -33,10 +34,12 @@ class ScriptMock implements M.Script {
int tokenToLine(int token) => _tokenToLine(token);
int tokenToCol(int token) => _tokenToCol(token);
- const ScriptMock({this.id, this.clazz, this.size, this.uri, this.source,
- this.library: const LibraryRefMock(), TokenToInt tokenToLine,
- TokenToInt tokenToCol, this.loadTime, this.firstTokenPos,
- this.lastTokenPos, this.lineOffset, this.columnOffset})
+ const ScriptMock({this.id: 'script-id', this.vmName: 'script-vmNmae',
+ this.clazz, this.size, this.uri, this.source,
+ this.library: const LibraryRefMock(),
+ TokenToInt tokenToLine, TokenToInt tokenToCol,
+ this.loadTime, this.firstTokenPos, this.lastTokenPos,
+ this.lineOffset, this.columnOffset})
: _tokenToLine = tokenToLine,
_tokenToCol = tokenToCol;
}

Powered by Google App Engine
This is Rietveld 408576698