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

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/repositories/heap_snapshot.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 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/repositories/heap_snapshot.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/repositories/heap_snapshot.dart b/runtime/observatory/tests/observatory_ui/mocks/repositories/heap_snapshot.dart
index d79ea9f983ad84ff78c989385db80b5731607eb0..42f93e3cbbc981d82f07298f0ada988af38723f9 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/repositories/heap_snapshot.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/repositories/heap_snapshot.dart
@@ -20,31 +20,28 @@ class HeapSnapshotLoadingProgressMock implements M.HeapSnapshotLoadingProgress {
final Duration loadingTime;
final M.HeapSnapshot snapshot;
- const HeapSnapshotLoadingProgressMock(
- {this.status: M.HeapSnapshotLoadingStatus.fetching,
- this.progress: 0.0,
- this.stepDescription: '',
- this.fetchingTime,
- this.loadingTime,
+ const HeapSnapshotLoadingProgressMock({
+ this.status : M.HeapSnapshotLoadingStatus.fetching, this.progress: 0.0,
+ this.stepDescription: '', this.fetchingTime, this.loadingTime,
this.snapshot});
}
-typedef Stream<
- M
- .HeapSnapshotLoadingProgressEvent> HeapSnapshotRepositoryMockCallback(
- M.IsolateRef cls, bool gc);
+typedef Stream<M.HeapSnapshotLoadingProgressEvent>
+ HeapSnapshotRepositoryMockCallback(M.IsolateRef cls, bool gc);
-class HeapSnapshotRepositoryMock implements M.HeapSnapshotRepository {
+class HeapSnapshotRepositoryMock
+ implements M.HeapSnapshotRepository {
final HeapSnapshotRepositoryMockCallback _get;
Stream<M.HeapSnapshotLoadingProgressEvent> get(M.IsolateRef isolate,
- {bool gc: false}) {
+ {bool gc: false}) {
if (_get != null) {
return _get(isolate, gc);
}
return null;
}
- HeapSnapshotRepositoryMock({HeapSnapshotRepositoryMockCallback getter})
- : _get = getter;
+ HeapSnapshotRepositoryMock(
+ {HeapSnapshotRepositoryMockCallback getter})
+ : _get = getter;
}

Powered by Google App Engine
This is Rietveld 408576698