diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2021-05-06 23:34:36 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2021-07-15 11:42:40 +0200 |
commit | 4a6e22311a46792b74bed0f6d7b0bd664db7cab7 (patch) | |
tree | 78d0f38ae6428c33a340775d3bcd60bfea940ec2 /src/tests/meta-test-utils.h | |
parent | f74d311d61b5fc4df8bc0a398ef395be9dc2ca87 (diff) | |
download | mutter-4a6e22311a46792b74bed0f6d7b0bd664db7cab7.tar.gz |
tests/utils: Prefix TestClient with Meta
Soon we'll expose it via a libmutter-test library.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
Diffstat (limited to 'src/tests/meta-test-utils.h')
-rw-r--r-- | src/tests/meta-test-utils.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/tests/meta-test-utils.h b/src/tests/meta-test-utils.h index 0895cc864..d5bbf827d 100644 --- a/src/tests/meta-test-utils.h +++ b/src/tests/meta-test-utils.h @@ -26,19 +26,19 @@ #include "meta/window.h" -#define TEST_RUNNER_ERROR test_runner_error_quark () +#define META_TEST_CLIENT_ERROR meta_test_client_error_quark () -typedef enum +typedef enum _MetaClientError { - TEST_RUNNER_ERROR_BAD_COMMAND, - TEST_RUNNER_ERROR_RUNTIME_ERROR, - TEST_RUNNER_ERROR_ASSERTION_FAILED -} TestRunnerError; + META_TEST_CLIENT_ERROR_BAD_COMMAND, + META_TEST_CLIENT_ERROR_RUNTIME_ERROR, + META_TEST_CLIENT_ERROR_ASSERTION_FAILED +} MetaClientError; -GQuark test_runner_error_quark (void); +GQuark meta_test_client_error_quark (void); typedef struct _AsyncWaiter AsyncWaiter; -typedef struct _TestClient TestClient; +typedef struct _MetaTestClient MetaTestClient; void test_init (int *argc, char ***argv); @@ -53,34 +53,34 @@ AsyncWaiter * async_waiter_new (void); void async_waiter_destroy (AsyncWaiter *waiter); -char * test_client_get_id (TestClient *client); +char * meta_test_client_get_id (MetaTestClient *client); -gboolean test_client_alarm_filter (MetaX11Display *x11_display, - XSyncAlarmNotifyEvent *event, - gpointer data); +gboolean meta_test_client_process_x11_event (MetaTestClient *client, + MetaX11Display *x11_display, + XSyncAlarmNotifyEvent *event); -gboolean test_client_wait (TestClient *client, - GError **error); +gboolean meta_test_client_wait (MetaTestClient *client, + GError **error); -gboolean test_client_do (TestClient *client, - GError **error, - ...) G_GNUC_NULL_TERMINATED; +gboolean meta_test_client_do (MetaTestClient *client, + GError **error, + ...) G_GNUC_NULL_TERMINATED; -MetaWindow * test_client_find_window (TestClient *client, - const char *window_id, - GError **error); +MetaWindow * meta_test_client_find_window (MetaTestClient *client, + const char *window_id, + GError **error); -void test_client_wait_for_window_shown (TestClient *client, - MetaWindow *window); +void meta_test_client_wait_for_window_shown (MetaTestClient *client, + MetaWindow *window); -gboolean test_client_quit (TestClient *client, - GError **error); +gboolean meta_test_client_quit (MetaTestClient *client, + GError **error); -TestClient * test_client_new (const char *id, - MetaWindowClientType type, - GError **error); +MetaTestClient * meta_test_client_new (const char *id, + MetaWindowClientType type, + GError **error); -void test_client_destroy (TestClient *client); +void meta_test_client_destroy (MetaTestClient *client); const char * test_get_plugin_name (void); @@ -89,4 +89,4 @@ void test_wait_for_x11_display (void); void meta_ensure_test_client_path (int argc, char **argv); -#endif /* META_TEST_UTILS_H */ +#endif /* TEST_UTILS_H */ |