plugin-manager: Add API to unload all plugins
And add tests for it. Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu> Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/796>
This commit is contained in:
@@ -66,6 +66,9 @@ on_idle_quit (gpointer user_data)
|
||||
g_application_quit (app);
|
||||
|
||||
g_assert_true (calls_plugin_manager_has_any_plugins (plugins));
|
||||
g_assert_true (calls_plugin_manager_unload_all_plugins (plugins, &error));
|
||||
g_assert_no_error (error);
|
||||
g_assert_false (calls_plugin_manager_has_any_plugins (plugins));
|
||||
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user