(&self, udid: &str)
| 370 | } |
| 371 | |
| 372 | pub fn boot_simulator(&self, udid: &str) -> Result<(), AppError> { |
| 373 | unsafe { |
| 374 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 375 | let mut error = ptr::null_mut(); |
| 376 | bool_result( |
| 377 | ffi::xcw_native_boot_simulator(udid.as_ptr(), &mut error), |
| 378 | error, |
| 379 | ) |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | pub fn shutdown_simulator(&self, udid: &str) -> Result<(), AppError> { |
| 384 | unsafe { |
no test coverage detected