| 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 /// Pub-specific scheduled_test descriptors. | 5 /// Pub-specific scheduled_test descriptors. |
| 6 library descriptor; | |
| 7 | |
| 8 import 'package:oauth2/oauth2.dart' as oauth2; | 6 import 'package:oauth2/oauth2.dart' as oauth2; |
| 9 import 'package:pub/src/io.dart'; | 7 import 'package:pub/src/io.dart'; |
| 10 import 'package:pub/src/utils.dart'; | 8 import 'package:pub/src/utils.dart'; |
| 11 import 'package:scheduled_test/descriptor.dart'; | 9 import 'package:scheduled_test/descriptor.dart'; |
| 12 import 'package:scheduled_test/scheduled_server.dart'; | 10 import 'package:scheduled_test/scheduled_server.dart'; |
| 13 | 11 |
| 14 import 'descriptor/git.dart'; | 12 import 'descriptor/git.dart'; |
| 15 import 'descriptor/tar.dart'; | 13 import 'descriptor/tar.dart'; |
| 16 import 'descriptor/packages.dart'; | 14 import 'descriptor/packages.dart'; |
| 17 import 'test_pub.dart'; | 15 import 'test_pub.dart'; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 /// are located on disk. If the strings are semantic versions, then the packages | 189 /// are located on disk. If the strings are semantic versions, then the packages |
| 192 /// are located in the system cache; otherwise, the strings are interpreted as | 190 /// are located in the system cache; otherwise, the strings are interpreted as |
| 193 /// relative `file:` URLs. | 191 /// relative `file:` URLs. |
| 194 /// | 192 /// |
| 195 /// Validation checks that the `.packages` file exists, has the expected | 193 /// Validation checks that the `.packages` file exists, has the expected |
| 196 /// entries (one per key in [dependencies]), each with a path that contains | 194 /// entries (one per key in [dependencies]), each with a path that contains |
| 197 /// either the version string (for a reference to the pub cache) or a | 195 /// either the version string (for a reference to the pub cache) or a |
| 198 /// path to a path dependency, relative to the application directory. | 196 /// path to a path dependency, relative to the application directory. |
| 199 Descriptor packagesFile([Map dependencies]) => | 197 Descriptor packagesFile([Map dependencies]) => |
| 200 new PackagesFileDescriptor(dependencies); | 198 new PackagesFileDescriptor(dependencies); |
| OLD | NEW |