[calls] tests: Rename functions



commit 31a11b0abcd0e2173ab281e30b9e6e7a8fabcd42
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Mon Sep 19 19:19:28 2022 +0200

    tests: Rename functions
    
    This is done as a follow up commit after the cancellation test was
    removed in order to (slightly) ease review.

 tests/test-ringer.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/tests/test-ringer.c b/tests/test-ringer.c
index c14a59f6..8f475664 100644
--- a/tests/test-ringer.c
+++ b/tests/test-ringer.c
@@ -192,9 +192,9 @@ test_ringing_hang_up_call (void **state)
 }
 
 
-/* t4: test_ringing_silence_call */
+/* t3: test_ringing_silence_call */
 static void
-t4_on_ringer_call_silence (CallsRinger *ringer,
+t3_on_ringer_call_silence (CallsRinger *ringer,
                            GParamSpec  *pspec,
                            gpointer     user_data)
 {
@@ -226,7 +226,7 @@ test_ringing_silence_call (void **state)
 
   g_signal_connect (data->ringer,
                     "notify::ringing",
-                    G_CALLBACK (t4_on_ringer_call_silence),
+                    G_CALLBACK (t3_on_ringer_call_silence),
                     data);
 
   calls_call_set_state (CALLS_CALL (data->call_one), CALLS_CALL_STATE_INCOMING);
@@ -240,9 +240,9 @@ test_ringing_silence_call (void **state)
 }
 
 
-/* t5: test_ringing_multiple_call */
+/* t4: test_ringing_multiple_call */
 static gboolean
-t5_remove_calls (gpointer user_data)
+t4_remove_calls (gpointer user_data)
 {
   static guint test_phase = 0;
   TestData *data = user_data;
@@ -261,7 +261,7 @@ t5_remove_calls (gpointer user_data)
 
 
 static void
-t5_on_ringer_multiple_calls (CallsRinger *ringer,
+t4_on_ringer_multiple_calls (CallsRinger *ringer,
                              GParamSpec  *pspec,
                              gpointer     user_data)
 {
@@ -272,7 +272,7 @@ t5_on_ringer_multiple_calls (CallsRinger *ringer,
   case 0: /* add second call, and schedule call removal */
     assert_true (calls_ringer_get_is_ringing (ringer));
     add_call (data->manager, data->ui_call_two);
-    g_timeout_add (25, t5_remove_calls, data);
+    g_timeout_add (25, t4_remove_calls, data);
     break;
   case 1: /* both calls should be removed now */
     assert_false (calls_ringer_get_is_ringing (ringer));
@@ -293,7 +293,7 @@ test_ringing_multiple_calls (void **state)
 
   g_signal_connect (data->ringer,
                     "notify::ringing",
-                    G_CALLBACK (t5_on_ringer_multiple_calls),
+                    G_CALLBACK (t4_on_ringer_multiple_calls),
                     data);
 
   calls_call_set_state (CALLS_CALL (data->call_one), CALLS_CALL_STATE_INCOMING);
@@ -307,7 +307,7 @@ test_ringing_multiple_calls (void **state)
 
 
 static void
-t6_on_ringer_multiple_calls_with_restart (CallsRinger *ringer,
+t5_on_ringer_multiple_calls_with_restart (CallsRinger *ringer,
                                           GParamSpec  *pspec,
                                           gpointer     user_data)
 {
@@ -353,7 +353,7 @@ test_ringing_multiple_calls_with_restart (void **state)
 
   g_signal_connect (data->ringer,
                     "notify::ringing",
-                    G_CALLBACK (t6_on_ringer_multiple_calls_with_restart),
+                    G_CALLBACK (t5_on_ringer_multiple_calls_with_restart),
                     data);
 
   calls_call_set_state (CALLS_CALL (data->call_one), CALLS_CALL_STATE_INCOMING);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]