anchor.diff:      fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
       residentRunner = ColdRunner(
         <FlutterDevice>[
  -        mockFlutterDevice,
  +        flutterDevice,
         ],
         stayResident: false,
         debuggingOptions: DebuggingOptions.enabled(BuildInfo.release),
         target: 'main.dart',
         devtoolsHandler: createNoOpHandler,
       );
  -    when(mockFlutterDevice.runCold(
  -      coldRunner: anyNamed('coldRunner'),
  -      route: anyNamed('route'),
  -    )).thenAnswer((Invocation invocation) async {
  -      throw Exception('BAD STUFF');
  -    });
  +    flutterDevice.runColdError = Exception('BAD STUFF');
  +
   
       expect(await residentRunner.run(), 1);
       // Completing this future ensures that the daemon can exit correctly.
  
positive.code:       enableDevTools: true,
      ));
      await futureAppStart.future;
      when(mockFlutterDevice.updateDevFS(
        mainUri: anyNamed('mainUri'),
        target: anyNamed('target'),
        bundle: anyNamed('bundle'),
        firstBuildTime: anyNamed('firstBuildTime'),
        bundleFirstUpload: anyNamed('bundleFirstUpload'),
        bundleDirty: anyNamed('bundleDirty'),
        fullRestart: anyNamed('fullRestart'),
        projectRootPath: anyNamed('projectRootPath'),
        pathToReload: anyNamed('pathToReload'),
        invalidatedFiles: anyNamed('invalidatedFiles'),
        dillOutputPath: anyNamed('dillOutputPath'),
        packageConfig: anyNamed('packageConfig'),
      )).thenThrow(vm_service.RPCError('something bad happened', 666, ''));
  
      final OperationResult result = await residentRunner.restart(fullRestart: false);
      expect(result.fatal, true);
  
negative.code:       );
      };
      final TestFlutterDevice flutterDevice = TestFlutterDevice(
        device,
        observatoryUris: Stream<Uri>.value(testUri),
      );
      bool caught = false;
  