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

Unified Diff: tests/lib/async/slow_consumer3_test.dart

Issue 23522012: Replace ReceivePorts with asyncStart|End in some tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove bad comment. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/async/slow_consumer2_test.dart ('k') | tests/lib/async/slow_consumer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/slow_consumer3_test.dart
diff --git a/tests/lib/async/slow_consumer3_test.dart b/tests/lib/async/slow_consumer3_test.dart
index 5bb3f99f9ba0afd575680f9bb78e44952988ce57..be12e12ef2418f81753e574e8d1805b4bd0e7018 100644
--- a/tests/lib/async/slow_consumer3_test.dart
+++ b/tests/lib/async/slow_consumer3_test.dart
@@ -6,9 +6,9 @@
library slow_consumer3_test;
+import 'package:async_helper/async_helper.dart';
import "package:expect/expect.dart";
import 'dart:async';
-import 'dart:isolate';
const int KB = 1024;
const int MB = KB * KB;
@@ -71,7 +71,7 @@ Stream<List> dataGenerator(int bytesTotal, int chunkSize) {
}
main() {
- var port = new ReceivePort();
+ asyncStart();
// The data provider can deliver 800MBs of data as fast as it is
// requested. The data is sent in 0.5MB chunks. The consumer has a buffer of
// 3MB. That is, it can accept a few packages without pausing its input.
@@ -88,7 +88,7 @@ main() {
dataGenerator(100 * MB, 512 * KB)
.pipe(new SlowConsumer(200 * MB, 3 * MB))
.then((count) {
- port.close();
Expect.equals(100 * MB, count);
+ asyncEnd();
});
}
« no previous file with comments | « tests/lib/async/slow_consumer2_test.dart ('k') | tests/lib/async/slow_consumer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698