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

Side by Side Diff: tests/lib_2/async/slow_consumer_test.dart

Issue 3001793002: Migrated test block 171 to Dart 2.0. (Closed)
Patch Set: Created 3 years, 4 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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698