anchor.diff:  // BSD-style license that can be found in the LICENSE file.
   
   import 'dart:async';
  +import 'dart:io';
   
   import 'package:analysis_server/protocol/protocol_generated.dart';
   import 'package:analysis_server/src/status/diagnostics.dart';
  
positive.code:    * The server is automatically started before every test.
     */
    @override
    Future setUp() {
      onAnalysisErrors.listen((AnalysisErrorsParams params) {
        currentAnalysisErrors[params.file] = params.errors;
      });
  
negative.code:   Future subscribeToStatusNotifications() async {
      await sendServerSetSubscriptions([ServerService.STATUS]);
    }
  
    static Future<int> _findAvailableSocketPort() async {
      var socket = await ServerSocket.bind(InternetAddress.loopbackIPv4, 0);
      try {
        return socket.port;
      } finally {
        await socket.close();
      }
    }
  }
  