| Index: tests/compiler/dart2js/serialization/helper.dart | 
| diff --git a/tests/compiler/dart2js/serialization/helper.dart b/tests/compiler/dart2js/serialization/helper.dart | 
| index e5fab486dbe477004c5b2b49bc99dddef7167b70..b6d77e7191ce09e6699a9235840fe6ebb8a70776 100644 | 
| --- a/tests/compiler/dart2js/serialization/helper.dart | 
| +++ b/tests/compiler/dart2js/serialization/helper.dart | 
| @@ -153,16 +153,15 @@ Future<SerializationResult> serialize(Uri entryPoint, | 
| if (dataUri == null) { | 
| dataUri = Uri.parse('memory:${DEFAULT_DATA_FILE_NAME}'); | 
| } | 
| +  OutputCollector outputCollector = new OutputCollector(); | 
| Compiler compiler = compilerFor( | 
| -      options: [Flags.analyzeAll], | 
| +      options: [Flags.resolveOnly], | 
| memorySourceFiles: memorySourceFiles, | 
| -      resolutionInputs: resolutionInputs); | 
| -  compiler.serialization.supportSerialization = true; | 
| +      resolutionInputs: resolutionInputs, | 
| +      outputProvider: outputCollector); | 
| await compiler.run(entryPoint); | 
| -  BufferedEventSink sink = new BufferedEventSink(); | 
| -  compiler.serialization.serializeToSink( | 
| -      sink, compiler.libraryLoader.libraries); | 
| -  SerializedData serializedData = new SerializedData(dataUri, sink.text); | 
| +  SerializedData serializedData = new SerializedData( | 
| +      dataUri, outputCollector.getOutput('', 'data')); | 
| return new SerializationResult(compiler, serializedData); | 
| } | 
|  | 
|  |