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

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

Issue 2004833003: Support multiple resolution inputs from command line. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix after rebase 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/impact_test.dart
diff --git a/tests/compiler/dart2js/serialization/impact_test.dart b/tests/compiler/dart2js/serialization/impact_test.dart
index 5b062fef79c859c1b680a2a9403e8217626c438a..3858f70421c426ae41c1474308a68c6f74bddfb3 100644
--- a/tests/compiler/dart2js/serialization/impact_test.dart
+++ b/tests/compiler/dart2js/serialization/impact_test.dart
@@ -16,7 +16,8 @@ import 'test_helper.dart';
main(List<String> args) {
Arguments arguments = new Arguments.from(args);
asyncTest(() async {
- String serializedData = await serializeDartCore(arguments: arguments);
+ SerializedData serializedData =
+ await serializeDartCore(arguments: arguments);
if (arguments.filename != null) {
Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename));
await check(serializedData, entryPoint);
@@ -30,7 +31,7 @@ main(List<String> args) {
}
Future check(
- String serializedData,
+ SerializedData serializedData,
Uri entryPoint,
{Map<String, String> sourceFiles: const <String, String>{},
bool verbose: false}) async {
@@ -42,10 +43,10 @@ Future check(
await compilerNormal.run(entryPoint);
Compiler compilerDeserialized = compilerFor(
- memorySourceFiles: sourceFiles,
+ memorySourceFiles: serializedData.toMemorySourceFiles(sourceFiles),
+ resolutionInputs: serializedData.toUris(),
options: [Flags.analyzeAll]);
compilerDeserialized.resolution.retainCachesForTesting = true;
- compilerDeserialized.serialization.deserializeFromText(serializedData);
await compilerDeserialized.run(entryPoint);
checkAllImpacts(compilerNormal, compilerDeserialized, verbose: verbose);
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | tests/compiler/dart2js/serialization/library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698