(&self, udid: &str)
| 427 | } |
| 428 | |
| 429 | pub fn chrome_profile(&self, udid: &str) -> Result<ChromeProfile, AppError> { |
| 430 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 431 | let json = unsafe { |
| 432 | let mut error = ptr::null_mut(); |
| 433 | let raw = ffi::xcw_native_get_chrome_profile(udid.as_ptr(), &mut error); |
| 434 | string_from_raw(raw, error)? |
| 435 | }; |
| 436 | serde_json::from_str(&json).map_err(|e| AppError::internal(e.to_string())) |
| 437 | } |
| 438 | |
| 439 | pub fn chrome_png_with_buttons( |
| 440 | &self, |
no test coverage detected