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

Unified Diff: sdk/lib/_internal/pub_generated/test/lock_file_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/test/lock_file_test.dart
diff --git a/sdk/lib/_internal/pub/test/lock_file_test.dart b/sdk/lib/_internal/pub_generated/test/lock_file_test.dart
similarity index 88%
copy from sdk/lib/_internal/pub/test/lock_file_test.dart
copy to sdk/lib/_internal/pub_generated/test/lock_file_test.dart
index a2ce2f7a1f4b809b555049f2ce2760096ae87c43..de144c2a5b4f24f59cb0deff98df4441e9766f16 100644
--- a/sdk/lib/_internal/pub/test/lock_file_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/lock_file_test.dart
@@ -20,17 +20,17 @@ import 'test_pub.dart';
class MockSource extends Source {
final String name = 'mock';
- Future<Pubspec> doDescribe(PackageId id) => throw new UnsupportedError(
- "Cannot describe mock packages.");
+ Future<Pubspec> doDescribe(PackageId id) =>
+ throw new UnsupportedError("Cannot describe mock packages.");
- Future get(PackageId id, String symlink) => throw new UnsupportedError(
- "Cannot get a mock package.");
+ Future get(PackageId id, String symlink) =>
+ throw new UnsupportedError("Cannot get a mock package.");
- Future<String> getDirectory(PackageId id) => throw new UnsupportedError(
- "Cannot get the directory for mock packages.");
+ Future<String> getDirectory(PackageId id) =>
+ throw new UnsupportedError("Cannot get the directory for mock packages.");
dynamic parseDescription(String filePath, String description,
- {bool fromLockFile: false}) {
+ {bool fromLockFile: false}) {
if (!description.endsWith(' desc')) throw new FormatException();
return description;
}
@@ -204,10 +204,10 @@ packages:
});
test('dumps the lockfile to YAML', () {
- lockfile.packages['foo'] = new PackageId(
- 'foo', mockSource.name, new Version.parse('1.2.3'), 'foo desc');
- lockfile.packages['bar'] = new PackageId(
- 'bar', mockSource.name, new Version.parse('3.2.1'), 'bar desc');
+ lockfile.packages['foo'] =
+ new PackageId('foo', mockSource.name, new Version.parse('1.2.3'), 'foo desc');
+ lockfile.packages['bar'] =
+ new PackageId('bar', mockSource.name, new Version.parse('3.2.1'), 'bar desc');
expect(loadYaml(lockfile.serialize(null, sources)), equals({
'packages': {

Powered by Google App Engine
This is Rietveld 408576698