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

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/objects/allocation_profile.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/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 7e90a5cc818f1a4f4e0a3f77b5d8a9666fc9439d..7b13ef0e0773b48ea2784d56f6afd4719bdbe2ae 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/allocation_profile.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/allocation_profile.dart
@@ -11,14 +11,13 @@ 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;
@@ -26,21 +25,18 @@ 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