Chromium Code Reviews| Index: pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
| diff --git a/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart b/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
| index 561dc42ae2d29c0c1ea46ba2707d2a20fb2f994d..2c4b85a3a73d6af40612c7e3f7ed308850ea148e 100644 |
| --- a/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
| +++ b/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
| @@ -15,6 +15,7 @@ import 'package:analyzer/src/summary/resynthesize.dart'; |
| import 'package:front_end/compiler_options.dart'; |
| import 'package:front_end/file_system.dart'; |
| import 'package:front_end/src/base/performace_logger.dart'; |
| +import 'package:front_end/src/base/libraries_spec.dart'; |
| import 'package:front_end/src/base/processed_options.dart'; |
| import 'package:front_end/src/fasta/uri_translator_impl.dart'; |
| import 'package:front_end/src/incremental/byte_store.dart'; |
| @@ -74,13 +75,16 @@ class ResynthesizeKernelStrongTest extends ResynthesizeTest { |
| Uri testUri = testFile.toUri(); |
| String testUriStr = testUri.toString(); |
| - Map<String, Uri> dartLibraries = {}; |
| + Map<String, LibraryInfo> dartLibraries = {}; |
| MockSdk.FULL_URI_MAP.forEach((dartUri, path) { |
| - dartLibraries[Uri.parse(dartUri).path] = Uri.parse('file://$path'); |
| + var name = Uri.parse(dartUri).path; |
| + dartLibraries[name] = |
| + new LibraryInfo(name, Uri.parse('file://$path'), const []); |
|
ahe
2017/08/03 11:58:15
This isn't a real file URI. Please don't use file
Siggi Cherem (dart-lang)
2017/08/05 00:41:01
Note: we are tracking doing so here: https://githu
|
| }); |
| - var uriTranslator = |
| - new UriTranslatorImpl(dartLibraries, {}, Packages.noPackages); |
| + var uriTranslator = new UriTranslatorImpl( |
| + new TargetLibrariesSpecification('none', dartLibraries), |
| + Packages.noPackages); |
| var options = new ProcessedOptions(new CompilerOptions() |
| ..target = new NoneTarget(new TargetFlags(strongMode: isStrongMode)) |
| ..reportMessages = false |