anchor.diff:    });
   
     testWithoutContext('AndroidWorkflow handles a null adb', () {
  -    final MockAndroidSdk androidSdk = MockAndroidSdk();
  -    when(androidSdk.adbPath).thenReturn(null);
  +    final FakeAndroidSdk androidSdk = FakeAndroidSdk();
  +    androidSdk.adbPath = null;
       final AndroidWorkflow androidWorkflow = AndroidWorkflow(
         featureFlags: TestFeatureFlags(),
         androidSdk: androidSdk,
  
positive.code:     );
      final LicensesAccepted result = await licenseValidator.licensesAccepted;
  
      expect(result, equals(LicensesAccepted.all));
    });
  
    testWithoutContext('licensesAccepted works for some licenses accepted', () async {
      when(sdk.sdkManagerPath).thenReturn('/foo/bar/sdkmanager');
      processManager.processFactory = processMetaFactory(<String>[
        '[=======================================] 100% Computing updates...             ',
        '2 of 5 SDK package licenses not accepted.',
        'Review licenses that have not been accepted (y/N)?',
      ]);
  
      final AndroidLicenseValidator licenseValidator = AndroidLicenseValidator(
        androidSdk: sdk,
  
negative.code:   });
  
    testWithoutContext('licensesAccepted returns LicensesAccepted.unknown if cannot run sdkmanager', () async {
      sdk.sdkManagerPath = '/foo/bar/sdkmanager';
      processManager.excludedExecutables.add('/foo/bar/sdkmanager');
      final AndroidLicenseValidator licenseValidator = AndroidLicenseValidator(
        androidSdk: sdk,
        fileSystem: fileSystem,
  