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 library pub_cache_test; | |
6 | |
7 import 'package:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
8 | 6 |
9 import '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
10 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
11 | 9 |
12 main() { | 10 main() { |
13 hostedDir(package) { | 11 hostedDir(package) { |
14 return path.join(sandboxDir, cachePath, "hosted", | 12 return path.join(sandboxDir, cachePath, "hosted", |
15 "pub.dartlang.org", package); | 13 "pub.dartlang.org", package); |
16 } | 14 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 ]) | 66 ]) |
69 ]).create(); | 67 ]).create(); |
70 | 68 |
71 schedulePub(args: ['cache', 'list'], outputJson: { | 69 schedulePub(args: ['cache', 'list'], outputJson: { |
72 "packages": { | 70 "packages": { |
73 "foo": {"1.2.3": {"location": hostedDir('foo-1.2.3')}} | 71 "foo": {"1.2.3": {"location": hostedDir('foo-1.2.3')}} |
74 } | 72 } |
75 }); | 73 }); |
76 }); | 74 }); |
77 } | 75 } |
OLD | NEW |