MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / chrome_profile

Method chrome_profile

packages/server/src/native/bridge.rs:429–437  ·  view source on GitHub ↗
(&self, udid: &str)

Source from the content-addressed store, hash-verified

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,

Callers 1

chrome_profileFunction · 0.45

Calls 2

string_from_rawFunction · 0.85

Tested by

no test coverage detected