| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // OtherResources=file_lock_script.dart |
| 6 |
| 5 import 'dart:async'; | 7 import 'dart:async'; |
| 6 import 'dart:io'; | 8 import 'dart:io'; |
| 7 | 9 |
| 8 import "package:async_helper/async_helper.dart"; | 10 import "package:async_helper/async_helper.dart"; |
| 9 import "package:expect/expect.dart"; | 11 import "package:expect/expect.dart"; |
| 10 import "package:path/path.dart"; | 12 import "package:path/path.dart"; |
| 11 | 13 |
| 12 // Check whether the file is locked or not. | 14 // Check whether the file is locked or not. |
| 13 check(String path, int start, int end, FileLock mode, {bool locked}) { | 15 check(String path, int start, int end, FileLock mode, {bool locked}) { |
| 14 // Client process returns either 'LOCK FAILED' or 'LOCK SUCCEEDED'. | 16 // Client process returns either 'LOCK FAILED' or 'LOCK SUCCEEDED'. |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 testLockWholeFileAsync(); | 318 testLockWholeFileAsync(); |
| 317 testLockRange(); | 319 testLockRange(); |
| 318 testLockRangeAsync(); | 320 testLockRangeAsync(); |
| 319 testLockEnd(); | 321 testLockEnd(); |
| 320 testLockEndAsync(); | 322 testLockEndAsync(); |
| 321 testLockShared(); | 323 testLockShared(); |
| 322 testLockSharedAsync(); | 324 testLockSharedAsync(); |
| 323 testLockAfterLength(); | 325 testLockAfterLength(); |
| 324 testLockAfterLengthAsync(); | 326 testLockAfterLengthAsync(); |
| 325 } | 327 } |
| OLD | NEW |