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

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

Issue 24487003: Don't test writing 1 byte 65k times. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'package:path/path.dart'; 6 import 'package:path/path.dart';
7 import "dart:io"; 7 import "dart:io";
8 8
9 test(int blockCount, 9 test(int blockCount,
10 int stdoutBlockSize, 10 int stdoutBlockSize,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 test(10, 100, 10, 0); 43 test(10, 100, 10, 0);
44 test(10, 10, 100, 0); 44 test(10, 10, 100, 0);
45 test(100, 1, 10, 0); 45 test(100, 1, 10, 0);
46 test(100, 10, 1, 0); 46 test(100, 10, 1, 0);
47 test(100, 1, 1, 0); 47 test(100, 1, 1, 0);
48 test(1, 100000, 100000, 0); 48 test(1, 100000, 100000, 0);
49 49
50 // The buffer size used in process.h. 50 // The buffer size used in process.h.
51 var kBufferSize = 16 * 1024; 51 var kBufferSize = 16 * 1024;
52 test(1, kBufferSize, kBufferSize, 0); 52 test(1, kBufferSize, kBufferSize, 0);
53 test(1, kBufferSize - 1, kBufferSize + 1, 0); 53 test(1, kBufferSize - 1, kBufferSize - 1, 0);
54 test(kBufferSize - 1, 1, 1, 0); 54 test(1, kBufferSize + 1, kBufferSize + 1, 0);
55 test(kBufferSize, 1, 1, 0);
56 test(kBufferSize + 1, 1, 1, 0);
57 55
58 test(10, 10, 10, 1); 56 test(10, 10, 10, 1);
59 test(10, 10, 10, 255); 57 test(10, 10, 10, 255);
60 test(10, 10, 10, -1, 255); 58 test(10, 10, 10, -1, 255);
61 test(10, 10, 10, -255, 1); 59 test(10, 10, 10, -255, 1);
62 } 60 }
63 61
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698