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_consumer2_test; | 7 library slow_consumer2_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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // heap-space. | 112 // heap-space. |
113 | 113 |
114 new DataProvider(800 * MB, 100 * MB, 1 * MB) | 114 new DataProvider(800 * MB, 100 * MB, 1 * MB) |
115 .stream | 115 .stream |
116 .pipe(new SlowConsumer(200 * MB, 5 * MB)) | 116 .pipe(new SlowConsumer(200 * MB, 5 * MB)) |
117 .then((count) { | 117 .then((count) { |
118 Expect.equals(100 * MB, count); | 118 Expect.equals(100 * MB, count); |
119 asyncEnd(); | 119 asyncEnd(); |
120 }); | 120 }); |
121 } | 121 } |
OLD | NEW |