Skip to content
Snippets Groups Projects
Commit 82b598ed authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

tests/si-*: use new WpObjectManager API

parent bd9ae98c
No related branches found
No related tags found
No related merge requests found
......@@ -185,19 +185,15 @@ test_si_audio_softdsp_endpoint_export (TestFixture * f, gconstpointer user_data)
/* find self_client, to be used for verifying endpoint.client.id */
clients_om = wp_object_manager_new ();
wp_object_manager_add_interest (clients_om, WP_TYPE_CLIENT, NULL,
WP_PROXY_FEATURE_BOUND);
wp_object_manager_add_interest_1 (clients_om, WP_TYPE_CLIENT, NULL);
wp_object_manager_request_proxy_features (clients_om,
WP_TYPE_CLIENT, WP_PROXY_FEATURE_BOUND);
g_signal_connect_swapped (clients_om, "objects-changed",
G_CALLBACK (g_main_loop_quit), f->base.loop);
wp_core_install_object_manager (f->base.core, clients_om);
g_main_loop_run (f->base.loop);
{
g_autoptr (WpIterator) it = wp_object_manager_iterate (clients_om);
g_auto (GValue) val = G_VALUE_INIT;
g_assert_true (wp_iterator_next (it, &val));
g_assert_nonnull (self_client = g_value_dup_object (&val));
}
g_assert_nonnull (self_client =
wp_object_manager_lookup (clients_om, WP_TYPE_CLIENT, NULL));
/* create item */
......
......@@ -235,19 +235,15 @@ test_si_simple_node_endpoint_export (TestFixture * f, gconstpointer user_data)
/* find self_client, to be used for verifying endpoint.client.id */
clients_om = wp_object_manager_new ();
wp_object_manager_add_interest (clients_om, WP_TYPE_CLIENT, NULL,
WP_PROXY_FEATURE_BOUND);
wp_object_manager_add_interest_1 (clients_om, WP_TYPE_CLIENT, NULL);
wp_object_manager_request_proxy_features (clients_om,
WP_TYPE_CLIENT, WP_PROXY_FEATURE_BOUND);
g_signal_connect_swapped (clients_om, "objects-changed",
G_CALLBACK (g_main_loop_quit), f->base.loop);
wp_core_install_object_manager (f->base.core, clients_om);
g_main_loop_run (f->base.loop);
{
g_autoptr (WpIterator) it = wp_object_manager_iterate (clients_om);
g_auto (GValue) val = G_VALUE_INIT;
g_assert_true (wp_iterator_next (it, &val));
g_assert_nonnull (self_client = g_value_dup_object (&val));
}
g_assert_nonnull (self_client = wp_object_manager_lookup (clients_om,
WP_TYPE_CLIENT, NULL));
/* create item */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment