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; |
} |