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

Side by Side Diff: utils/tests/pub/descriptor.dart

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « utils/tests/pub/command_line_config.dart ('k') | utils/tests/pub/descriptor/git.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 '../../../pkg/oauth2/lib/oauth2.dart' as oauth2; 8 import 'package:oauth2/oauth2.dart' as oauth2;
9 import '../../../pkg/scheduled_test/lib/scheduled_server.dart'; 9 import 'package:scheduled_test/scheduled_server.dart';
10 import '../../../pkg/scheduled_test/lib/scheduled_test.dart'; 10 import 'package:scheduled_test/scheduled_test.dart';
11 import '../../../pkg/scheduled_test/lib/descriptor.dart'; 11 import 'package:scheduled_test/descriptor.dart';
12 12
13 import '../../pub/utils.dart'; 13 import '../../pub/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 '../../../pkg/scheduled_test/lib/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]) =>
24 new GitRepoDescriptor(name, contents == null ? <Descriptor>[] : contents); 24 new GitRepoDescriptor(name, contents == null ? <Descriptor>[] : contents);
25 25
26 /// Creates a new [TarRepoDescriptor] with [name] and [contents]. 26 /// Creates a new [TarRepoDescriptor] with [name] and [contents].
27 TarFileDescriptor tar(String name, [Iterable<Descriptor> contents]) => 27 TarFileDescriptor tar(String name, [Iterable<Descriptor> contents]) =>
28 new TarFileDescriptor(name, contents == null ? <Descriptor>[] : contents); 28 new TarFileDescriptor(name, contents == null ? <Descriptor>[] : contents);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 ['https://www.googleapis.com/auth/userinfo.email'], 169 ['https://www.googleapis.com/auth/userinfo.email'],
170 expiration).toJson()) 170 expiration).toJson())
171 ]); 171 ]);
172 })); 172 }));
173 } 173 }
174 174
175 /// Describes the application directory, containing only a pubspec specifying 175 /// Describes the application directory, containing only a pubspec specifying
176 /// the given [dependencies]. 176 /// the given [dependencies].
177 DirectoryDescriptor appDir(List dependencies) => 177 DirectoryDescriptor appDir(List dependencies) =>
178 dir(appPath, [appPubspec(dependencies)]); 178 dir(appPath, [appPubspec(dependencies)]);
OLDNEW
« no previous file with comments | « utils/tests/pub/command_line_config.dart ('k') | utils/tests/pub/descriptor/git.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698