Eliminate direct invocations of idevice_id for iOS (#10777)
All invocations should go via the IMobileDevice class in mac.dart.
This commit is contained in:
@@ -201,11 +201,6 @@ void main() {
|
||||
when(xcode.isInstalledAndMeetsVersionCheck).thenReturn(true);
|
||||
when(xcode.eulaSigned).thenReturn(true);
|
||||
|
||||
when(processManager.runSync(argThat(contains('idevice_id'))))
|
||||
.thenReturn(exitsHappy);
|
||||
when(processManager.run(argThat(contains('idevice_id')), workingDirectory: any, environment: any))
|
||||
.thenReturn(exitsHappy);
|
||||
|
||||
final ValidationResult result = await new IOSWorkflowTestTarget().validate();
|
||||
expect(result.type, ValidationType.partial);
|
||||
}, overrides: <Type, Generator>{
|
||||
@@ -222,11 +217,6 @@ void main() {
|
||||
when(xcode.isInstalledAndMeetsVersionCheck).thenReturn(true);
|
||||
when(xcode.eulaSigned).thenReturn(true);
|
||||
|
||||
when(processManager.runSync(argThat(contains('idevice_id'))))
|
||||
.thenReturn(exitsHappy);
|
||||
when(processManager.run(argThat(contains('idevice_id')), workingDirectory: any, environment: any))
|
||||
.thenReturn(exitsHappy);
|
||||
|
||||
ensureDirectoryExists(fs.path.join(homeDirPath, '.cocoapods', 'repos', 'master', 'README.md'));
|
||||
|
||||
final ValidationResult result = await new IOSWorkflowTestTarget().validate();
|
||||
|
||||
Reference in New Issue
Block a user