(&self, udid: &str)
| 774 | } |
| 775 | |
| 776 | pub fn rotate_left(&self, udid: &str) -> Result<(), AppError> { |
| 777 | if self.simulator_has_fixed_orientation(udid).unwrap_or(false) { |
| 778 | return Err(fixed_orientation_error()); |
| 779 | } |
| 780 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 781 | unsafe { |
| 782 | let mut error = ptr::null_mut(); |
| 783 | bool_result( |
| 784 | ffi::xcw_native_rotate_left(udid.as_ptr(), &mut error), |
| 785 | error, |
| 786 | ) |
| 787 | } |
| 788 | } |
| 789 | |
| 790 | pub fn erase_simulator(&self, udid: &str) -> Result<(), AppError> { |
| 791 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
no test coverage detected