Refactor the testing backend

Move code around and gate the internal functions used in our own tests
so we can make the testing backend public
This commit is contained in:
Olivier Goffart 2024-04-18 11:29:51 +02:00
parent 583eadbdbc
commit 8030732f46
12 changed files with 335 additions and 324 deletions

View file

@ -138,7 +138,7 @@ pub unsafe extern "C" fn slint_register_bitmap_font(
window_adapter.renderer().register_bitmap_font(font_data);
}
#[cfg(feature = "testing")]
#[cfg(feature = "internal-testing")]
#[no_mangle]
pub unsafe extern "C" fn slint_testing_init_backend() {
i_slint_backend_testing::init();