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

Side by Side Diff: sdk/lib/_internal/pub/test/lock_file_test.dart

Issue 602253002: Use pub_semver package in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 lock_file_test; 5 library lock_file_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:pub_semver/pub_semver.dart';
9 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
10 import 'package:yaml/yaml.dart'; 11 import 'package:yaml/yaml.dart';
11 12
12 import '../lib/src/lock_file.dart'; 13 import '../lib/src/lock_file.dart';
13 import '../lib/src/package.dart'; 14 import '../lib/src/package.dart';
14 import '../lib/src/pubspec.dart'; 15 import '../lib/src/pubspec.dart';
15 import '../lib/src/source.dart'; 16 import '../lib/src/source.dart';
16 import '../lib/src/source_registry.dart'; 17 import '../lib/src/source_registry.dart';
17 import '../lib/src/version.dart';
18 import 'test_pub.dart'; 18 import 'test_pub.dart';
19 19
20 class MockSource extends Source { 20 class MockSource extends Source {
21 final String name = 'mock'; 21 final String name = 'mock';
22 22
23 Future<Pubspec> doDescribe(PackageId id) => throw new UnsupportedError( 23 Future<Pubspec> doDescribe(PackageId id) => throw new UnsupportedError(
24 "Cannot describe mock packages."); 24 "Cannot describe mock packages.");
25 25
26 Future get(PackageId id, String symlink) => throw new UnsupportedError( 26 Future get(PackageId id, String symlink) => throw new UnsupportedError(
27 "Cannot get a mock package."); 27 "Cannot get a mock package.");
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 'version': '3.2.1', 220 'version': '3.2.1',
221 'source': 'mock', 221 'source': 'mock',
222 'description': 'bar desc' 222 'description': 'bar desc'
223 } 223 }
224 } 224 }
225 })); 225 }));
226 }); 226 });
227 }); 227 });
228 }); 228 });
229 } 229 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/implicit_dependency_test.dart ('k') | sdk/lib/_internal/pub/test/preprocess_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698