OLD | NEW |
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 pub_update_test; | 5 library pub_update_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import '../../../pkg/unittest/lib/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
11 | 11 |
12 import '../../pub/lock_file.dart'; | 12 import '../../pub/lock_file.dart'; |
13 import '../../pub/package.dart'; | 13 import '../../pub/package.dart'; |
14 import '../../pub/pubspec.dart'; | 14 import '../../pub/pubspec.dart'; |
15 import '../../pub/source.dart'; | 15 import '../../pub/source.dart'; |
16 import '../../pub/source_registry.dart'; | 16 import '../../pub/source_registry.dart'; |
17 import '../../pub/system_cache.dart'; | 17 import '../../pub/system_cache.dart'; |
18 import '../../pub/utils.dart'; | 18 import '../../pub/utils.dart'; |
19 import '../../pub/version.dart'; | 19 import '../../pub/version.dart'; |
20 import '../../pub/version_solver.dart'; | 20 import '../../pub/version_solver.dart'; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 }; | 545 }; |
546 | 546 |
547 var match = new RegExp(r"(.*) from (.*)").firstMatch(description); | 547 var match = new RegExp(r"(.*) from (.*)").firstMatch(description); |
548 if (match != null) { | 548 if (match != null) { |
549 name = match[1]; | 549 name = match[1]; |
550 source = sourceNames[match[2]]; | 550 source = sourceNames[match[2]]; |
551 } | 551 } |
552 | 552 |
553 callback(isDev, name, source); | 553 callback(isDev, name, source); |
554 } | 554 } |
OLD | NEW |