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

Unified Diff: tests/compiler/dart2js/serialization/helper.dart

Issue 2024783003: Support references to unserialized libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: tests/compiler/dart2js/serialization/helper.dart
diff --git a/tests/compiler/dart2js/serialization/helper.dart b/tests/compiler/dart2js/serialization/helper.dart
index a7d185c50cd941fa903774dd1fb853e8082c1372..3f2b42973917d8c67ce58b1a623808c7046befc8 100644
--- a/tests/compiler/dart2js/serialization/helper.dart
+++ b/tests/compiler/dart2js/serialization/helper.dart
@@ -88,6 +88,9 @@ class Arguments {
if (test.preserializedSourceFiles != null) {
sourceFiles.addAll(test.preserializedSourceFiles);
}
+ if (test.unserializedSourceFiles != null) {
+ sourceFiles.addAll(test.unserializedSourceFiles);
+ }
List<Uri> resolutionInputs = <Uri>[];
for (SerializedData data in dataList) {
data.expandMemorySourceFiles(sourceFiles);
@@ -196,9 +199,13 @@ Future<List<SerializedData>> preserializeData(
for (String key in test.preserializedSourceFiles.keys) {
uriList.add(Uri.parse('memory:$key'));
}
+ Map<String, String> sourceFiles = serializedData.toMemorySourceFiles();
+ sourceFiles.addAll(test.preserializedSourceFiles);
+ if (test.unserializedSourceFiles != null) {
+ sourceFiles.addAll(test.unserializedSourceFiles);
+ }
Compiler compiler = compilerFor(
- memorySourceFiles:
- serializedData.toMemorySourceFiles(test.preserializedSourceFiles),
+ memorySourceFiles: sourceFiles,
resolutionInputs: serializedData.toUris(),
options: [Flags.analyzeOnly, Flags.analyzeMain]);
compiler.librariesToAnalyzeWhenRun = uriList;
« no previous file with comments | « tests/compiler/dart2js/serialization/equivalence_test.dart ('k') | tests/compiler/dart2js/serialization/test_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698