compositor: move tests quirks initialization to weston_compositor_create()
Until now we had the test quirks initialization in wet_main(), just after calling weston_compositor_create(). But there are some cases that require the quirks during struct weston_compositor creation time. Move test quirks initialization to weston_compositor_create() in order to cover more use cases for the test quirks mechanism. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
bb7ed37a89
commit
cdb7218daf
@@ -197,6 +197,14 @@ struct weston_testsuite_quirks {
|
||||
};
|
||||
|
||||
/** Weston test suite data that is given to compositor
|
||||
*
|
||||
* It contains two members:
|
||||
*
|
||||
* 1. The struct weston_testsuite_quirks, which can be used by the tests to
|
||||
* change certain behavior of Weston when running these tests.
|
||||
* 2. The void *test_private_data member which can be used by the testsuite of
|
||||
* projects that uses libweston in order to give arbitrary test data to the
|
||||
* compositor. Its type should be defined by the testsuite of the project.
|
||||
*
|
||||
* \sa compositor_setup
|
||||
* \ingroup testharness
|
||||
@@ -1798,11 +1806,9 @@ weston_compositor_destroy(struct weston_compositor *ec);
|
||||
|
||||
struct weston_compositor *
|
||||
weston_compositor_create(struct wl_display *display,
|
||||
struct weston_log_context *log_ctx, void *user_data);
|
||||
struct weston_log_context *log_ctx, void *user_data,
|
||||
const struct weston_testsuite_data *test_data);
|
||||
|
||||
void
|
||||
weston_compositor_test_data_init(struct weston_compositor *ec,
|
||||
const struct weston_testsuite_data *test_data);
|
||||
void *
|
||||
weston_compositor_get_test_data(struct weston_compositor *ec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user