| 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);
|
|
|