[calls] tests: manager: Switch to CallsUiCallData
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] tests: manager: Switch to CallsUiCallData
- Date: Tue, 1 Feb 2022 05:50:58 +0000 (UTC)
commit 6f9b071bbcd98f1eb2a453b7c223e952e282b24e
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Mon Jan 31 17:07:41 2022 +0100
tests: manager: Switch to CallsUiCallData
tests/test-manager.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/tests/test-manager.c b/tests/test-manager.c
index 9d4c71f9..b705fc44 100644
--- a/tests/test-manager.c
+++ b/tests/test-manager.c
@@ -6,19 +6,20 @@
#include "calls-manager.h"
+#include <cui-call.h>
#include <gtk/gtk.h>
#include <libpeas/peas.h>
-CallsCall *test_call = NULL;
+CuiCall *test_call = NULL;
static void
-call_add_cb (CallsManager *manager, CallsCall *call)
+call_add_cb (CallsManager *manager, CuiCall *call)
{
test_call = call;
}
static void
-call_remove_cb (CallsManager *manager, CallsCall *call)
+call_remove_cb (CallsManager *manager, CuiCall *call)
{
g_assert_true (call == test_call);
test_call = NULL;
@@ -79,8 +80,8 @@ test_calls_manager_dummy_provider (void)
g_assert_null (calls_manager_get_calls (manager));
test_call = NULL;
- g_signal_connect (manager, "call-add", G_CALLBACK (call_add_cb), NULL);
- g_signal_connect (manager, "call-remove", G_CALLBACK (call_remove_cb), NULL);
+ g_signal_connect (manager, "ui-call-added", G_CALLBACK (call_add_cb), NULL);
+ g_signal_connect (manager, "ui-call-removed", G_CALLBACK (call_remove_cb), NULL);
origin = g_list_model_get_item (origins, 0);
g_assert_true (CALLS_IS_ORIGIN (origin));
@@ -91,8 +92,8 @@ test_calls_manager_dummy_provider (void)
g_assert_true (g_list_store_find (G_LIST_STORE (origins_tel), origin, &position));
calls_origin_dial (origin, "+393422342");
- g_assert_true (CALLS_IS_CALL (test_call));
- calls_call_hang_up (test_call);
+ g_assert_true (CUI_IS_CALL (test_call));
+ cui_call_hang_up (test_call);
g_assert_null (test_call);
/* Add new call do check if we remove it when we unload the provider */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]