| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |