fidl_fuchsia_ui_focus_test_helpers/
test_helpers.rsuse fidl_fuchsia_ui_focus::FocusChain;
use fidl_fuchsia_ui_views::ViewRefControl;
use fuchsia_scenic::ViewRefPair;
pub fn make_focus_chain(length: usize) -> (FocusChain, Vec<ViewRefControl>) {
let mut view_refs = vec![];
let mut control_refs = vec![];
for _ in 0..length {
let ViewRefPair { control_ref, view_ref } = ViewRefPair::new().expect("making ViewRefPair");
view_refs.push(view_ref);
control_refs.push(control_ref);
}
let focus_chain = FocusChain { focus_chain: Some(view_refs), ..Default::default() };
(focus_chain, control_refs)
}