(
State(state): State<AppState>,
Path(udid): Path<String>,
)
| 3279 | } |
| 3280 | |
| 3281 | async fn screen_mask_png( |
| 3282 | State(state): State<AppState>, |
| 3283 | Path(udid): Path<String>, |
| 3284 | ) -> Result<(StatusCode, HeaderMap, Vec<u8>), AppError> { |
| 3285 | if android::is_android_id(&udid) { |
| 3286 | return Err(AppError::not_found( |
| 3287 | "Android emulators do not expose screen mask assets.", |
| 3288 | )); |
| 3289 | } |
| 3290 | let png = run_bridge_action(state, move |bridge| bridge.screen_mask_png(&udid)).await?; |
| 3291 | let headers = chrome_asset_headers(); |
| 3292 | Ok((StatusCode::OK, headers, png)) |
| 3293 | } |
| 3294 | |
| 3295 | async fn accessibility_tree( |
| 3296 | State(state): State<AppState>, |
nothing calls this directly
no test coverage detected