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

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

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
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 a6ab04f2b631ce3d925b41550643a01afffddbcd..6131b005d7385718fe9da3d46a0b82902b974eb1 100644
--- a/tests/standalone/io/file_fuzz_test.dart
+++ b/tests/standalone/io/file_fuzz_test.dart
@@ -62,12 +62,11 @@ fuzzAsyncMethods() {
Future.wait(futures).then((_) => asyncEnd());
}
-
fuzzSyncRandomAccessMethods() {
var temp = Directory.systemTemp.createTempSync('dart_file_fuzz');
var file = new File('${temp.path}/x');
file.createSync();
- var modes = [ FileMode.READ, FileMode.WRITE, FileMode.APPEND ];
+ var modes = [FileMode.READ, FileMode.WRITE, FileMode.APPEND];
for (var m in modes) {
var opened = file.openSync(mode: m);
typeMapping.forEach((k, v) {
@@ -91,16 +90,16 @@ fuzzAsyncRandomAccessMethods() {
var temp = Directory.systemTemp.createTempSync('dart_file_fuzz');
var file = new File('${temp.path}/x');
file.createSync();
- var modes = [ FileMode.READ, FileMode.WRITE, FileMode.APPEND ];
+ var modes = [FileMode.READ, FileMode.WRITE, FileMode.APPEND];
var futures = [];
var openedFiles = [];
for (var m in modes) {
var opened = file.openSync(mode: m);
openedFiles.add(opened);
typeMapping.forEach((k, v) {
- futures.add(doItAsync(() => opened.setPosition(v)));
- futures.add(doItAsync(() => opened.truncate(v)));
- futures.add(doItAsync(() => opened.writeByte(v)));
+ futures.add(doItAsync(() => opened.setPosition(v)));
+ futures.add(doItAsync(() => opened.truncate(v)));
+ futures.add(doItAsync(() => opened.writeByte(v)));
});
for (var p in typePermutations(2)) {
futures.add(doItAsync(() => opened.writeString(p[0], encoding: p[1])));

Powered by Google App Engine
This is Rietveld 408576698