anchor.diff:    });
   
     testUsingContext('Successfully turns AppConnectionException into ToolExit', () async {
  -    final ResidentRunner residentWebRunner = setUpResidentRunner(mockFlutterDevice);
  +    final ResidentRunner residentWebRunner = setUpResidentRunner(flutterDevice);
       fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
       _setupMocks();
       webDevFS.exception = AppConnectionException('');
  
positive.code: 
    testUsingContext('printHelp without details shows hot restart help message', () async {
      final BufferLogger logger = BufferLogger.test();
      final ResidentRunner residentWebRunner = setUpResidentRunner(mockFlutterDevice, logger: logger);
      fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
      residentWebRunner.printHelp(details: false);
  
  
negative.code:   });
  
    testUsingContext('cleans up Chrome if tab is closed', () async {
      final ResidentRunner residentWebRunner = setUpResidentRunner(flutterDevice);
      fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[
        ...kAttachExpectations,
      ]);
      _setupMocks();
      final Completer<DebugConnectionInfo> connectionInfoCompleter = Completer<DebugConnectionInfo>();
      final Future<int> result = residentWebRunner.run(
        connectionInfoCompleter: connectionInfoCompleter,
      );
      await connectionInfoCompleter.future;
      debugConnection.completer.complete();
  
      await result;
      expect(fakeVmServiceHost.hasRemainingExpectations, false);
  