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

Side by Side Diff: test/descriptor.dart

Issue 1153643002: Use "package:" imports for pub. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Created 5 years, 7 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
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 /// Pub-specific scheduled_test descriptors. 5 /// Pub-specific scheduled_test descriptors.
6 library descriptor; 6 library descriptor;
7 7
8 import 'package:oauth2/oauth2.dart' as oauth2; 8 import 'package:oauth2/oauth2.dart' as oauth2;
9 import 'package:pub/src/io.dart';
9 import 'package:scheduled_test/scheduled_server.dart'; 10 import 'package:scheduled_test/scheduled_server.dart';
10 import 'package:scheduled_test/descriptor.dart'; 11 import 'package:scheduled_test/descriptor.dart';
11 12
Bob Nystrom 2015/05/22 00:05:17 Ditto.
nweiz 2015/05/22 00:14:23 Done.
12 import '../lib/src/io.dart'; 13 import 'package:pub/src/utils.dart';
13 import '../lib/src/utils.dart';
14 import 'descriptor/git.dart'; 14 import 'descriptor/git.dart';
15 import 'descriptor/tar.dart'; 15 import 'descriptor/tar.dart';
16 import 'test_pub.dart'; 16 import 'test_pub.dart';
17 17
18 export 'package:scheduled_test/descriptor.dart'; 18 export 'package:scheduled_test/descriptor.dart';
19 export 'descriptor/git.dart'; 19 export 'descriptor/git.dart';
20 export 'descriptor/tar.dart'; 20 export 'descriptor/tar.dart';
21 21
22 /// Creates a new [GitRepoDescriptor] with [name] and [contents]. 22 /// Creates a new [GitRepoDescriptor] with [name] and [contents].
23 GitRepoDescriptor git(String name, [Iterable<Descriptor> contents]) => 23 GitRepoDescriptor git(String name, [Iterable<Descriptor> contents]) =>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ['https://www.googleapis.com/auth/userinfo.email'], 175 ['https://www.googleapis.com/auth/userinfo.email'],
176 expiration).toJson()) 176 expiration).toJson())
177 ]); 177 ]);
178 })); 178 }));
179 } 179 }
180 180
181 /// Describes the application directory, containing only a pubspec specifying 181 /// Describes the application directory, containing only a pubspec specifying
182 /// the given [dependencies]. 182 /// the given [dependencies].
183 DirectoryDescriptor appDir([Map dependencies]) => 183 DirectoryDescriptor appDir([Map dependencies]) =>
184 dir(appPath, [appPubspec(dependencies)]); 184 dir(appPath, [appPubspec(dependencies)]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698