anchor.diff:            outputPreferences: OutputPreferences.test(),
           );
   
  -        mockCmakeProject = MockCmakeProject();
  -        when(mockCmakeProject.managedCmakeFile).thenReturn(managedCmakeFile);
  +        mockCmakeProject = FakeCmakeProject(managedCmakeFile);
         });
   
         testWithoutContext('skipped if files are missing', () {
  
positive.code: import 'package:flutter_tools/src/migrations/cmake_custom_command_migration.dart';
  import 'package:flutter_tools/src/project.dart';
  import 'package:meta/meta.dart';
  import 'package:mockito/mockito.dart';
  
  import '../../src/common.dart';
  
  
negative.code:   });
  }
  
  class FakeCmakeProject extends Fake implements CmakeBasedProject {
    FakeCmakeProject(this.managedCmakeFile);
  
    @override
    final File managedCmakeFile;
  }
  
  class FakeCmakeMigrator extends ProjectMigrator {
    FakeCmakeMigrator({@required this.succeeds})
  