| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 unittest.test.io; | 5 library unittest.test.io; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
| 9 | 9 |
| 10 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 /// Returns the path to the library named [libraryName]. | 43 /// Returns the path to the library named [libraryName]. |
| 44 /// | 44 /// |
| 45 /// The library name must be globally unique, or the wrong library path may be | 45 /// The library name must be globally unique, or the wrong library path may be |
| 46 /// returned. | 46 /// returned. |
| 47 String _libraryPath(Symbol libraryName) { | 47 String _libraryPath(Symbol libraryName) { |
| 48 var lib = currentMirrorSystem().findLibrary(libraryName); | 48 var lib = currentMirrorSystem().findLibrary(libraryName); |
| 49 return p.fromUri(lib.uri); | 49 return p.fromUri(lib.uri); |
| 50 } | 50 } |
| 51 | |
| 52 | |
| OLD | NEW |