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

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

Issue 12609004: Change all File APIs to make the mode and encoding arguments named (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments and changed other use places Created 7 years, 9 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 9e4ff73b2e302e7a007db9072b4b4d04dbf7e301..b210bff22a3f6ea6d7b3266537c1eef0e1729cd8 100644
--- a/tests/standalone/io/file_fuzz_test.dart
+++ b/tests/standalone/io/file_fuzz_test.dart
@@ -27,7 +27,7 @@ fuzzSyncMethods() {
doItSync(f.readAsStringSync);
doItSync(f.readAsLinesSync);
typeMapping.forEach((k2, v2) {
- doItSync(() => f.openSync(v2));
+ doItSync(() => f.openSync(mode: v2));
doItSync(() => f.openWrite(mode: v2));
doItSync(() => f.readAsStringSync(v2));
doItSync(() => f.readAsLinesSync(v2));
@@ -70,7 +70,7 @@ fuzzSyncRandomAccessMethods() {
file.createSync();
var modes = [ FileMode.READ, FileMode.WRITE, FileMode.APPEND ];
for (var m in modes) {
- var opened = file.openSync(m);
+ var opened = file.openSync(mode: m);
typeMapping.forEach((k, v) {
doItSync(() => opened.setPositionSync(v));
doItSync(() => opened.truncateSync(v));
@@ -97,7 +97,7 @@ fuzzAsyncRandomAccessMethods() {
var futures = [];
var openedFiles = [];
for (var m in modes) {
- var opened = file.openSync(m);
+ var opened = file.openSync(mode: m);
openedFiles.add(opened);
typeMapping.forEach((k, v) {
futures.add(doItAsync(() => opened.setPosition(v)));
« 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