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

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

Issue 2286503002: Converted Observatory error-view element (Closed)
Patch Set: 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/error.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/error.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/error.dart
index 1a8701607b065099294a558312bc47750efabb15..f3a47986ec691af506d27ef2760524989bf0607b 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/error.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/error.dart
@@ -8,7 +8,10 @@ class ErrorRefMock implements M.ErrorRef {
final String id;
final M.ErrorKind kind;
final String message;
- const ErrorRefMock({this.id, this.kind, this.message});
+
+ const ErrorRefMock({this.id: 'error-ref',
+ this.kind: M.ErrorKind.internalError,
+ this.message: 'Error Message'});
}
class ErrorMock implements M.Error {
@@ -17,5 +20,8 @@ class ErrorMock implements M.Error {
final int size;
final M.ErrorKind kind;
final String message;
- const ErrorMock({this.id, this.clazz, this.size, this.kind, this.message});
+
+ const ErrorMock({this.id: 'error-id', this.clazz: const ClassMock(),
+ this.size: 0, this.kind: M.ErrorKind.internalError,
+ this.message: 'Error Message'});
}

Powered by Google App Engine
This is Rietveld 408576698