1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 05:15:36 +00:00
Purism-Calls/tests
Evangelos Ribeiro Tzaras 01ca267c10 ringer: Never cancel async DBus calls and refactor
Previously our code assumed that g_cancellable_cancel() the async DBus
calls to libfeedback would guarantee that the underlying operation would
not be performed (i.e. triggering or ending a feedback).

However the endless ringing exhibited in #470 shows this assumption not
to hold. Therefore we avoid using g_cancellable_cancel () completely and
default to waiting for the async operation to finish.

update_ring () now sets the target state by inspecting managed calls and
the main logic will now step towards the target state:
Changing from regular/loud to soft/quiet ringing (or vice versa)
requires we first end feedback before (re)triggering it.

Additionally the "is-quiet" and "is-ringing" properties are replaced by
a new "state" property to allow changing the combination atomically.

Closes: #470
2022-12-03 20:55:37 +01:00
..
mock mock-lfb-event: Emit "feedback-ended" signal 2022-12-03 20:55:25 +01:00
meson.build build: drop libmocka dependency 2022-12-03 20:54:55 +01:00
mock-call.c call: Move name property to base class 2021-12-20 12:25:19 +01:00
mock-call.h call: Move name property to base class 2021-12-20 12:25:19 +01:00
mock-contacts-provider.h settings: Convert to the singleton pattern 2022-05-13 19:58:07 +02:00
mock-libfeedback.h tests: Add ringer tests 2021-12-05 09:50:25 +01:00
test-contacts.c settings: Convert to the singleton pattern 2022-05-13 19:58:07 +02:00
test-manager.c Move provider plugins into a dedicated directory 2022-08-19 08:43:57 +00:00
test-plugins.c Move provider plugins into a dedicated directory 2022-08-19 08:43:57 +00:00
test-ringer.c ringer: Never cancel async DBus calls and refactor 2022-12-03 20:55:37 +01:00
test-settings.c tests: Add testing for sideeffects of using CallsSettings 2022-05-13 19:58:07 +02:00
test-ui-call.c call: Remove waiting state 2022-09-01 17:48:02 +02:00
test-util.c util: Add API to check address family of IP address 2022-12-03 20:55:25 +01:00