WIP: Start restructuring executor

This commit is contained in:
Antonio Scandurra 2022-01-24 18:45:14 +01:00
parent 96b66dcce1
commit b7314ef2aa
6 changed files with 136 additions and 211 deletions

View file

@ -77,8 +77,8 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
#namespace::TestAppContext::new(
foreground_platform.clone(),
cx.platform().clone(),
cx.foreground().clone(),
cx.background().clone(),
deterministic.build_foreground(#ix),
deterministic.build_background(),
cx.font_cache().clone(),
#first_entity_id,
),
@ -115,7 +115,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
#num_iterations as u64,
#starting_seed as u64,
#max_retries,
&mut |cx, foreground_platform, seed| cx.foreground().run(#inner_fn_name(#inner_fn_args))
&mut |cx, foreground_platform, deterministic, seed| cx.foreground().run(#inner_fn_name(#inner_fn_args))
);
}
}
@ -147,7 +147,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
#num_iterations as u64,
#starting_seed as u64,
#max_retries,
&mut |cx, _, seed| #inner_fn_name(#inner_fn_args)
&mut |cx, _, _, seed| #inner_fn_name(#inner_fn_args)
);
}
}