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

Unified Diff: tests/standalone/io/file_fuzz_test.dart

Issue 23886004: Update dart:io tests to use asyncStart/asyncEnd (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 3 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/standalone/io/file_error_test.dart ('k') | tests/standalone/io/file_input_stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_fuzz_test.dart
diff --git a/tests/standalone/io/file_fuzz_test.dart b/tests/standalone/io/file_fuzz_test.dart
index f90030ed0ecf4f6a359797f7e2d9a61c30eb4b11..b34797bc9e02589a03bb700b7cf45ba942a764f7 100644
--- a/tests/standalone/io/file_fuzz_test.dart
+++ b/tests/standalone/io/file_fuzz_test.dart
@@ -7,10 +7,11 @@
import 'dart:async';
import 'dart:io';
-import 'dart:isolate';
import 'fuzz_support.dart';
+import "package:async_helper/async_helper.dart";
+
fuzzSyncMethods() {
typeMapping.forEach((k, v) {
doItSync(() {
@@ -36,7 +37,7 @@ fuzzSyncMethods() {
}
fuzzAsyncMethods() {
- var port = new ReceivePort();
+ asyncStart();
var futures = [];
typeMapping.forEach((k, v) {
doItSync(() {
@@ -58,7 +59,7 @@ fuzzAsyncMethods() {
});
});
});
- Future.wait(futures).then((ignore) => port.close());
+ Future.wait(futures).then((_) => asyncEnd());
}
« no previous file with comments | « tests/standalone/io/file_error_test.dart ('k') | tests/standalone/io/file_input_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698