| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // VMOptions=--old_gen_heap_size=64 | 5 // VMOptions=--old_gen_heap_size=64 |
| 6 | 6 |
| 7 library slow_consumer_test; | 7 library slow_consumer_test; |
| 8 | 8 |
| 9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // heap-space. | 114 // heap-space. |
| 115 | 115 |
| 116 new DataProvider(800 * MB, 100 * MB, 1 * MB) | 116 new DataProvider(800 * MB, 100 * MB, 1 * MB) |
| 117 .stream | 117 .stream |
| 118 .pipe(new SlowConsumer(200 * MB)) | 118 .pipe(new SlowConsumer(200 * MB)) |
| 119 .then((count) { | 119 .then((count) { |
| 120 Expect.equals(100 * MB, count); | 120 Expect.equals(100 * MB, count); |
| 121 asyncEnd(); | 121 asyncEnd(); |
| 122 }); | 122 }); |
| 123 } | 123 } |
| OLD | NEW |