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

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/objects/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/objects/heap_snapshot.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart
index d0b268d6a5300f567e47c108874cdd220258715c..1763ba3bb6976b13cae321a85f36b0afb1e5a56d 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart
@@ -12,11 +12,8 @@ class HeapSnapshotMock implements M.HeapSnapshot {
final M.HeapSnapshotDominatorNode dominatorTree;
final Iterable<M.HeapSnapshotClassReferences> classReferences;
- const HeapSnapshotMock(
- {this.timestamp,
- this.objects: 0,
- this.references: 0,
- this.size: 0,
+ const HeapSnapshotMock({this.timestamp, this.objects: 0,
+ this.references: 0, this.size: 0,
this.dominatorTree: const HeapSnapshotDominatorNodeMock(),
this.classReferences: const []});
}
@@ -27,11 +24,9 @@ class HeapSnapshotDominatorNodeMock implements M.HeapSnapshotDominatorNode {
final Future<M.ObjectRef> object;
final Iterable<M.HeapSnapshotDominatorNode> children;
- const HeapSnapshotDominatorNodeMock(
- {this.shallowSize: 1,
- this.retainedSize: 1,
- this.object,
- this.children: const []});
+ const HeapSnapshotDominatorNodeMock({this.shallowSize: 1,
+ this.retainedSize: 1,
+ this.object, this.children: const []});
}
class HeapSnapshotClassReferencesMock implements M.HeapSnapshotClassReferences {
@@ -42,13 +37,11 @@ class HeapSnapshotClassReferencesMock implements M.HeapSnapshotClassReferences {
final Iterable<M.HeapSnapshotClassInbound> inbounds;
final Iterable<M.HeapSnapshotClassOutbound> outbounds;
- const HeapSnapshotClassReferencesMock(
- {this.clazz: const ClassRefMock(),
- this.instances: 1,
- this.shallowSize: 1,
- this.retainedSize: 2,
- this.inbounds: const [],
- this.outbounds: const []});
+ const HeapSnapshotClassReferencesMock({this.clazz: const ClassRefMock(),
+ this.instances: 1, this.shallowSize: 1,
+ this.retainedSize: 2,
+ this.inbounds: const [],
+ this.outbounds: const []});
}
class HeapSnapshotClassInboundMock implements M.HeapSnapshotClassInbound {
@@ -57,11 +50,9 @@ class HeapSnapshotClassInboundMock implements M.HeapSnapshotClassInbound {
final int shallowSize;
final int retainedSize;
- const HeapSnapshotClassInboundMock(
- {this.source: const ClassRefMock(),
- this.count: 1,
- this.shallowSize: 1,
- this.retainedSize: 2});
+ const HeapSnapshotClassInboundMock({this.source: const ClassRefMock(),
+ this.count: 1, this.shallowSize: 1,
+ this.retainedSize: 2});
}
class HeapSnapshotClassOutboundMock implements M.HeapSnapshotClassOutbound {
@@ -69,9 +60,7 @@ class HeapSnapshotClassOutboundMock implements M.HeapSnapshotClassOutbound {
final int count;
final int shallowSize;
final int retainedSize;
- const HeapSnapshotClassOutboundMock(
- {this.target: const ClassRefMock(),
- this.count: 1,
- this.shallowSize: 1,
- this.retainedSize: 2});
+ const HeapSnapshotClassOutboundMock({this.target: const ClassRefMock(),
+ this.count: 1, this.shallowSize: 1,
+ this.retainedSize: 2});
}

Powered by Google App Engine
This is Rietveld 408576698