Remove dead code IMobileDevice.isWorking (#50084)
This commit is contained in:
@@ -56,16 +56,6 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
testUsingContext('isWorking returns false if libimobiledevice is not installed', () async {
|
||||
when(mockProcessManager.runSync(
|
||||
<String>[ideviceIdPath, '-h'], environment: anyNamed('environment'),
|
||||
)).thenReturn(ProcessResult(123, 1, '', ''));
|
||||
expect(await globals.iMobileDevice.isWorking, false);
|
||||
}, overrides: <Type, Generator>{
|
||||
ProcessManager: () => mockProcessManager,
|
||||
Artifacts: () => mockArtifacts,
|
||||
});
|
||||
|
||||
testUsingContext('getAvailableDeviceIDs throws ToolExit when libimobiledevice is not installed', () async {
|
||||
when(mockProcessManager.run(
|
||||
<String>[ideviceIdPath, '-l'],
|
||||
|
||||
Reference in New Issue
Block a user