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

Side by Side Diff: runtime/observatory/tests/observatory_ui/mocks/objects/persistent_handles.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 PersistentHandlesMock implements M.PersistentHandles { 7 class PersistentHandlesMock implements M.PersistentHandles {
8 final Iterable<M.PersistentHandle> elements; 8 final Iterable<M.PersistentHandle> elements;
9 final Iterable<M.WeakPersistentHandle> weakElements; 9 final Iterable<M.WeakPersistentHandle> weakElements;
10 10
11 const PersistentHandlesMock({this.elements: const [], 11 const PersistentHandlesMock(
12 this.weakElements: const []}); 12 {this.elements: const [], this.weakElements: const []});
13 } 13 }
14 14
15 class PersistentHandleMock implements M.PersistentHandle { 15 class PersistentHandleMock implements M.PersistentHandle {
16 final M.ObjectRef object; 16 final M.ObjectRef object;
17 17
18 const PersistentHandleMock({this.object: const InstanceRefMock()}); 18 const PersistentHandleMock({this.object: const InstanceRefMock()});
19 } 19 }
20 20
21 class WeakPersistentHandleMock implements M.WeakPersistentHandle { 21 class WeakPersistentHandleMock implements M.WeakPersistentHandle {
22 final M.ObjectRef object; 22 final M.ObjectRef object;
23 final int externalSize; 23 final int externalSize;
24 final String peer; 24 final String peer;
25 final String callbackSymbolName; 25 final String callbackSymbolName;
26 final String callbackAddress; 26 final String callbackAddress;
27 27
28 const WeakPersistentHandleMock({this.object: const InstanceRefMock(), 28 const WeakPersistentHandleMock(
29 this.externalSize: 0, this.peer: '0x0', 29 {this.object: const InstanceRefMock(),
30 this.callbackSymbolName: 'dart::Something()', 30 this.externalSize: 0,
31 this.callbackAddress: '0x123456'}); 31 this.peer: '0x0',
32 this.callbackSymbolName: 'dart::Something()',
33 this.callbackAddress: '0x123456'});
32 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698