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

Side by Side Diff: tests/lib_2/async/slow_consumer2_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_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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698