| OLD | NEW |
| 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; |
| 6 |
| 5 import 'dart:async'; | 7 import 'dart:async'; |
| 6 | 8 |
| 7 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
| 8 import 'package:barback/src/utils.dart'; | 10 import 'package:barback/src/utils.dart'; |
| 9 | 11 |
| 10 /// The abstract base class for transformers used to test barback. | 12 /// The abstract base class for transformers used to test barback. |
| 11 /// | 13 /// |
| 12 /// This adds the ability to pause and resume different components of the | 14 /// This adds the ability to pause and resume different components of the |
| 13 /// transformers, and to tell whether they're running, when they start running, | 15 /// transformers, and to tell whether they're running, when they start running, |
| 14 /// and how many times they've run. | 16 /// and how many times they've run. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 if (_runningTransforms == 0) _started = new Completer(); | 125 if (_runningTransforms == 0) _started = new Completer(); |
| 124 }); | 126 }); |
| 125 } | 127 } |
| 126 | 128 |
| 127 /// The wrapped version of [isPrimary] for subclasses to override. | 129 /// The wrapped version of [isPrimary] for subclasses to override. |
| 128 Future<bool> doIsPrimary(Asset asset); | 130 Future<bool> doIsPrimary(Asset asset); |
| 129 | 131 |
| 130 /// The wrapped version of [doApply] for subclasses to override. | 132 /// The wrapped version of [doApply] for subclasses to override. |
| 131 Future doApply(Transform transform); | 133 Future doApply(Transform transform); |
| 132 } | 134 } |
| OLD | NEW |