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

Side by Side Diff: packages/barback/test/transformer/mock.dart

Issue 3014633002: Roll to pickup pool changes (Closed)
Patch Set: Created 3 years, 2 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library barback.test.transformer.mock; 5 library barback.test.transformer.mock;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
10 import 'package:barback/src/utils.dart'; 10 import 'package:barback/src/utils.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 /// the [Transform]. 42 /// the [Transform].
43 final _getInput = new Map<AssetId, Completer>(); 43 final _getInput = new Map<AssetId, Completer>();
44 44
45 /// Completer for pausing the transformer before it accesses [primaryInput]. 45 /// Completer for pausing the transformer before it accesses [primaryInput].
46 Completer _primaryInput; 46 Completer _primaryInput;
47 47
48 /// A completer that completes once this transformer begins running. 48 /// A completer that completes once this transformer begins running.
49 /// 49 ///
50 /// Once this transformer finishes running, this is reset to a new completer, 50 /// Once this transformer finishes running, this is reset to a new completer,
51 /// so it can be used multiple times. 51 /// so it can be used multiple times.
52 var _started = new Completer(); 52 var _started = new Completer<Null>();
53 53
54 /// `true` if any transforms are currently running. 54 /// `true` if any transforms are currently running.
55 /// 55 ///
56 /// This is scheduled. The Future will complete at the point in the schedule 56 /// This is scheduled. The Future will complete at the point in the schedule
57 /// that this is called. 57 /// that this is called.
58 Future<bool> get isRunning => schedule(() => _runningTransforms > 0); 58 Future<bool> get isRunning => schedule(() => _runningTransforms > 0);
59 59
60 /// If this is set to `true`, the transformer will consume its primary input 60 /// If this is set to `true`, the transformer will consume its primary input
61 /// during [apply]. 61 /// during [apply].
62 bool consumePrimary = false; 62 bool consumePrimary = false;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 /// This may return a `Future<bool>` or, if it's entirely synchronous, a 190 /// This may return a `Future<bool>` or, if it's entirely synchronous, a
191 /// `bool`. 191 /// `bool`.
192 doIsPrimary(AssetId id); 192 doIsPrimary(AssetId id);
193 193
194 /// The wrapped version of [doApply] for subclasses to override. 194 /// The wrapped version of [doApply] for subclasses to override.
195 /// 195 ///
196 /// If this does asynchronous work, it should return a [Future] that completes 196 /// If this does asynchronous work, it should return a [Future] that completes
197 /// once it's finished. 197 /// once it's finished.
198 doApply(Transform transform); 198 doApply(Transform transform);
199 } 199 }
OLDNEW
« no previous file with comments | « packages/barback/test/transformer/log.dart ('k') | packages/barback/test/transformer/mock_aggregate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698