anchor.diff:      globals.fs.file(globals.fs.path.join('lib', 'main.dart')).createSync(recursive: true);
       residentRunner = HotRunner(
         <FlutterDevice>[
  -        mockFlutterDevice,
  +        flutterDevice,
         ],
         stayResident: false,
         dillOutputPath: 'test',
  
positive.code:     fakeVmServiceHost = null;
      residentRunner = ColdRunner(
        <FlutterDevice>[
          mockFlutterDevice,
        ],
        stayResident: false,
        debuggingOptions: DebuggingOptions.disabled(BuildInfo.release),
  
negative.code:     globals.fs.file(globals.fs.path.join('lib', 'main.dart'))
        .createSync(recursive: true);
      fakeVmServiceHost = FakeVmServiceHost(requests: <VmServiceExpectation>[]);
      final FakeResidentCompiler residentCompiler = FakeResidentCompiler()
        ..nextOutput = const CompilerOutput('foo', 1 ,<Uri>[]);
      residentRunner = HotRunner(
        <FlutterDevice>[
          flutterDevice,
        ],
        stayResident: false,
        debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug),
        target: 'main.dart',
        devtoolsHandler: createNoOpHandler,
      );
      flutterDevice.generator = residentCompiler;
  
      expect(await residentRunner.run(), 1);
      // Completing this future ensures that the daemon can exit correctly.
  