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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file 3 // BSD-style license that can be found in the LICENSE file
4 4
5 part of mocks; 5 part of mocks;
6 6
7 class AllocationProfileMock implements M.AllocationProfile { 7 class AllocationProfileMock implements M.AllocationProfile {
8 final DateTime lastServiceGC; 8 final DateTime lastServiceGC;
9 final DateTime lastAccumulatorReset; 9 final DateTime lastAccumulatorReset;
10 final M.HeapSpace newSpace; 10 final M.HeapSpace newSpace;
11 final M.HeapSpace oldSpace; 11 final M.HeapSpace oldSpace;
12 final Iterable<M.ClassHeapStats> members; 12 final Iterable<M.ClassHeapStats> members;
13 13
14 const AllocationProfileMock({this.lastServiceGC, this.lastAccumulatorReset, 14 const AllocationProfileMock(
15 this.newSpace: const HeapSpaceMock(), 15 {this.lastServiceGC,
16 this.oldSpace: const HeapSpaceMock(), 16 this.lastAccumulatorReset,
17 this.members: const []}); 17 this.newSpace: const HeapSpaceMock(),
18 this.oldSpace: const HeapSpaceMock(),
19 this.members: const []});
18 } 20 }
19 21
20
21 class ClassHeapStatsMock implements M.ClassHeapStats { 22 class ClassHeapStatsMock implements M.ClassHeapStats {
22 final M.ClassRef clazz; 23 final M.ClassRef clazz;
23 final M.Allocations newSpace; 24 final M.Allocations newSpace;
24 final M.Allocations oldSpace; 25 final M.Allocations oldSpace;
25 final int promotedInstances; 26 final int promotedInstances;
26 final int promotedBytes; 27 final int promotedBytes;
27 28
28 const ClassHeapStatsMock({this.clazz: const ClassRefMock(), 29 const ClassHeapStatsMock(
29 this.newSpace: const AllocationsMock(), 30 {this.clazz: const ClassRefMock(),
30 this.oldSpace: const AllocationsMock(), 31 this.newSpace: const AllocationsMock(),
31 this.promotedInstances: 0, this.promotedBytes: 0}); 32 this.oldSpace: const AllocationsMock(),
33 this.promotedInstances: 0,
34 this.promotedBytes: 0});
32 } 35 }
33 36
34 class AllocationsMock implements M.Allocations { 37 class AllocationsMock implements M.Allocations {
35 final M.AllocationCount accumulated; 38 final M.AllocationCount accumulated;
36 final M.AllocationCount current; 39 final M.AllocationCount current;
37 40
38 const AllocationsMock({this.accumulated: const AllocationCountMock(), 41 const AllocationsMock(
39 this.current: const AllocationCountMock()}); 42 {this.accumulated: const AllocationCountMock(),
43 this.current: const AllocationCountMock()});
40 } 44 }
41 45
42 class AllocationCountMock implements M.AllocationCount { 46 class AllocationCountMock implements M.AllocationCount {
43 final int instances; 47 final int instances;
44 final int bytes; 48 final int bytes;
45 49
46 const AllocationCountMock({this.instances: 0, this.bytes: 0}); 50 const AllocationCountMock({this.instances: 0, this.bytes: 0});
47 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698