@@ -96,20 +96,20 @@ class IOSDevice extends Device {
96
96
@override
97
97
bool get supportsStartPaused => false ;
98
98
99
- static List <IOSDevice > getAttachedDevices ([ IOSDevice mockIOS] ) {
99
+ static List <IOSDevice > getAttachedDevices () {
100
100
if (! doctor.iosWorkflow.hasIDeviceId)
101
101
return < IOSDevice > [];
102
102
103
103
final List <IOSDevice > devices = < IOSDevice > [];
104
- for (String id in _getAttachedDeviceIDs (mockIOS )) {
105
- final String name = IOSDevice ._getDeviceInfo (id, 'DeviceName' , mockIOS );
104
+ for (String id in _getAttachedDeviceIDs ()) {
105
+ final String name = IOSDevice ._getDeviceInfo (id, 'DeviceName' );
106
106
devices.add (new IOSDevice (id, name: name));
107
107
}
108
108
return devices;
109
109
}
110
110
111
- static Iterable <String > _getAttachedDeviceIDs ([ IOSDevice mockIOS] ) {
112
- final String listerPath = (mockIOS != null ) ? mockIOS.listerPath : _checkForCommand ('idevice_id' );
111
+ static Iterable <String > _getAttachedDeviceIDs () {
112
+ final String listerPath = _checkForCommand ('idevice_id' );
113
113
try {
114
114
final String output = runSync (< String > [listerPath, '-l' ]);
115
115
return output.trim ().split ('\n ' ).where ((String s) => s != null && s.isNotEmpty);
@@ -118,10 +118,8 @@ class IOSDevice extends Device {
118
118
}
119
119
}
120
120
121
- static String _getDeviceInfo (String deviceID, String infoKey, [IOSDevice mockIOS]) {
122
- final String informerPath = (mockIOS != null )
123
- ? mockIOS.informerPath
124
- : _checkForCommand ('ideviceinfo' );
121
+ static String _getDeviceInfo (String deviceID, String infoKey) {
122
+ final String informerPath = _checkForCommand ('ideviceinfo' );
125
123
return runSync (< String > [informerPath, '-k' , infoKey, '-u' , deviceID]).trim ();
126
124
}
127
125
0 commit comments