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

Side by Side Diff: tests/standalone/io/file_fuzz_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
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 // 'fuzz' test the file APIs by providing unexpected type arguments. The test 5 // 'fuzz' test the file APIs by providing unexpected type arguments. The test
6 // passes if the VM does not crash. 6 // passes if the VM does not crash.
7 7
8 import "dart:io"; 8 import 'dart:async';
9 import "dart:isolate"; 9 import 'dart:io';
10 import 'dart:isolate';
10 11
11 import "fuzz_support.dart"; 12 import 'fuzz_support.dart';
12 13
13 fuzzSyncMethods() { 14 fuzzSyncMethods() {
14 typeMapping.forEach((k, v) { 15 typeMapping.forEach((k, v) {
15 doItSync(() { 16 doItSync(() {
16 var f = new File(v); 17 var f = new File(v);
17 doItSync(f.existsSync); 18 doItSync(f.existsSync);
18 doItSync(f.createSync); 19 doItSync(f.createSync);
19 doItSync(f.deleteSync); 20 doItSync(f.deleteSync);
20 doItSync(f.directorySync); 21 doItSync(f.directorySync);
21 doItSync(f.lengthSync); 22 doItSync(f.lengthSync);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 temp.deleteSync(recursive: true); 119 temp.deleteSync(recursive: true);
119 }); 120 });
120 } 121 }
121 122
122 main() { 123 main() {
123 fuzzSyncMethods(); 124 fuzzSyncMethods();
124 fuzzAsyncMethods(); 125 fuzzAsyncMethods();
125 fuzzSyncRandomAccessMethods(); 126 fuzzSyncRandomAccessMethods();
126 fuzzAsyncRandomAccessMethods(); 127 fuzzAsyncRandomAccessMethods();
127 } 128 }
OLDNEW
« 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