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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart

Issue 2986303003: Switch FE to use the libraries.json format. (Closed)
Patch Set: fix issues found on bots Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cb43e6d3e376c40fea32b2c0d06f204a074380b8..e7ec0cebf272f569fade9b4ae35a4c0369293461 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_specification.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 []);
});
- 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698