C++ testing API: Intreoduce the ElementHandle

This commit is contained in:
Olivier Goffart 2024-04-19 18:18:35 +02:00
parent 13fe59cc2e
commit 475ced0a62
15 changed files with 225 additions and 25 deletions

View file

@ -2,19 +2,13 @@
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
#pragma once
#include "slint.h"
#include <concepts>
#include "slint-testing.h"
#include <iostream>
// this file contains function useful for internal testing
namespace slint::private_api::testing {
inline void init()
{
cbindgen_private::slint_testing_init_backend();
}
inline void mock_elapsed_time(int64_t time_in_ms)
{
cbindgen_private::slint_mock_elapsed_time(time_in_ms);