ui-call-data: Store origin id and adapt to changes

This commit is contained in:
Evangelos Ribeiro Tzaras
2022-02-03 18:52:52 +01:00
parent 16b86c29b2
commit 30c4e90499
5 changed files with 53 additions and 7 deletions

View File

@@ -53,11 +53,12 @@ test_cui_call_properties (void)
g_assert_true (CALLS_IS_CALL (mock_call));
call = CALLS_CALL (mock_call);
ui_call = calls_ui_call_data_new (call);
ui_call = calls_ui_call_data_new (call, "test-id");
g_assert_true (CUI_IS_CALL (ui_call));
cui_call = CUI_CALL (ui_call);
g_assert_cmpstr (calls_ui_call_data_get_origin_id (ui_call), ==, "test-id");
g_assert_true (calls_call_get_id (call) == cui_call_get_id (cui_call));
g_assert_true (calls_call_get_name (call) == cui_call_get_display_name (cui_call));
g_assert_true (calls_call_state_to_cui_call_state (calls_call_get_state (call)) ==