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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (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/allocation_profile.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/allocation_profile.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/allocation_profile.dart
index 7b13ef0e0773b48ea2784d56f6afd4719bdbe2ae..7e90a5cc818f1a4f4e0a3f77b5d8a9666fc9439d 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/allocation_profile.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/allocation_profile.dart
@@ -11,13 +11,14 @@ class AllocationProfileMock implements M.AllocationProfile {
final M.HeapSpace oldSpace;
final Iterable<M.ClassHeapStats> members;
- const AllocationProfileMock({this.lastServiceGC, this.lastAccumulatorReset,
- this.newSpace: const HeapSpaceMock(),
- this.oldSpace: const HeapSpaceMock(),
- this.members: const []});
+ const AllocationProfileMock(
+ {this.lastServiceGC,
+ this.lastAccumulatorReset,
+ this.newSpace: const HeapSpaceMock(),
+ this.oldSpace: const HeapSpaceMock(),
+ this.members: const []});
}
-
class ClassHeapStatsMock implements M.ClassHeapStats {
final M.ClassRef clazz;
final M.Allocations newSpace;
@@ -25,18 +26,21 @@ class ClassHeapStatsMock implements M.ClassHeapStats {
final int promotedInstances;
final int promotedBytes;
- const ClassHeapStatsMock({this.clazz: const ClassRefMock(),
- this.newSpace: const AllocationsMock(),
- this.oldSpace: const AllocationsMock(),
- this.promotedInstances: 0, this.promotedBytes: 0});
+ const ClassHeapStatsMock(
+ {this.clazz: const ClassRefMock(),
+ this.newSpace: const AllocationsMock(),
+ this.oldSpace: const AllocationsMock(),
+ this.promotedInstances: 0,
+ this.promotedBytes: 0});
}
class AllocationsMock implements M.Allocations {
final M.AllocationCount accumulated;
final M.AllocationCount current;
- const AllocationsMock({this.accumulated: const AllocationCountMock(),
- this.current: const AllocationCountMock()});
+ const AllocationsMock(
+ {this.accumulated: const AllocationCountMock(),
+ this.current: const AllocationCountMock()});
}
class AllocationCountMock implements M.AllocationCount {

Powered by Google App Engine
This is Rietveld 408576698