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:  */
  class AnalysisServerMemoryUsageTest
      extends AbstractAnalysisServerIntegrationTest {
    static const int vmServicePort = 12345;
  
    Future<int> getMemoryUsage() async {
      Uri uri = Uri.parse('ws://127.0.0.1:$vmServicePort/ws');
      final ServiceProtocol service = await ServiceProtocol.connect(uri);
      final Map vm = await service.call('getVM');
  
  
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();
      }
    }
  }
  