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.stream_pool_test; | 5 library barback.test.stream_pool_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
| 9 import 'package:barback/src/stream_pool.dart'; |
9 import 'package:barback/src/utils.dart'; | 10 import 'package:barback/src/utils.dart'; |
10 import 'package:barback/src/utils/stream_pool.dart'; | |
11 import 'package:scheduled_test/scheduled_test.dart'; | 11 import 'package:scheduled_test/scheduled_test.dart'; |
12 | 12 |
13 import 'utils.dart'; | 13 import 'utils.dart'; |
14 | 14 |
15 main() { | 15 main() { |
16 initConfig(); | 16 initConfig(); |
17 | 17 |
18 group("buffered", () { | 18 group("buffered", () { |
19 test("buffers events from multiple inputs", () { | 19 test("buffers events from multiple inputs", () { |
20 var pool = new StreamPool<String>(); | 20 var pool = new StreamPool<String>(); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 return pumpEventQueue(); | 210 return pumpEventQueue(); |
211 }).then((_) { | 211 }).then((_) { |
212 pool.remove(broadcastController.stream); | 212 pool.remove(broadcastController.stream); |
213 broadcastController.add("fourth"); | 213 broadcastController.add("fourth"); |
214 pool.close(); | 214 pool.close(); |
215 }), completes); | 215 }), completes); |
216 }); | 216 }); |
217 }); | 217 }); |
218 } | 218 } |
219 } | 219 } |
OLD | NEW |