[empathy] libempathy, tests: Wrap new function arguments properly.



commit 14baa8d05d72d94431b3422bf455835bd065707e
Author: Stef Walter <stefw collabora co uk>
Date:   Mon Dec 13 17:42:15 2010 +0000

    libempathy, tests: Wrap new function arguments properly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636258#c3

 libempathy/empathy-tls-verifier.c |   16 +++++++++++-----
 tests/empathy-tls-test.c          |   35 ++++++++++++++++++++++++-----------
 2 files changed, 35 insertions(+), 16 deletions(-)
---
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index 2f33afa..c7460e1 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -113,8 +113,10 @@ verification_output_to_reason (gint res,
 
 static void
 build_certificate_list_for_gnutls (GcrCertificateChain *chain,
-        gnutls_x509_crt_t **list, guint *n_list,
-        gnutls_x509_crt_t **anchors, guint *n_anchors)
+        gnutls_x509_crt_t **list,
+        guint *n_list,
+        gnutls_x509_crt_t **anchors,
+        guint *n_anchors)
 {
   GcrCertificate *cert;
   guint idx, length;
@@ -173,7 +175,8 @@ build_certificate_list_for_gnutls (GcrCertificateChain *chain,
 }
 
 static void
-free_certificate_list_for_gnutls (gnutls_x509_crt_t *list, guint n_list)
+free_certificate_list_for_gnutls (gnutls_x509_crt_t *list,
+        guint n_list)
 {
   guint idx;
 
@@ -237,7 +240,8 @@ debug_certificate_chain (GcrCertificateChain *chain)
 }
 
 static void
-perform_verification (EmpathyTLSVerifier *self, GcrCertificateChain *chain)
+perform_verification (EmpathyTLSVerifier *self,
+        GcrCertificateChain *chain)
 {
   gboolean ret = FALSE;
   EmpTLSCertificateRejectReason reason =
@@ -312,7 +316,9 @@ perform_verification (EmpathyTLSVerifier *self, GcrCertificateChain *chain)
 }
 
 static void
-perform_verification_cb (GObject *object, GAsyncResult *res, gpointer user_data)
+perform_verification_cb (GObject *object,
+        GAsyncResult *res,
+        gpointer user_data)
 {
   GError *error = NULL;
 
diff --git a/tests/empathy-tls-test.c b/tests/empathy-tls-test.c
index f508b36..1149166 100644
--- a/tests/empathy-tls-test.c
+++ b/tests/empathy-tls-test.c
@@ -66,8 +66,10 @@ mock_tls_certificate_init (MockTLSCertificate *self)
 }
 
 static void
-mock_tls_certificate_get_property (GObject *object, guint property_id,
-    GValue *value, GParamSpec *pspec)
+mock_tls_certificate_get_property (GObject *object,
+        guint property_id,
+        GValue *value,
+        GParamSpec *pspec)
 {
   MockTLSCertificate *self = MOCK_TLS_CERTIFICATE (object);
 
@@ -178,7 +180,8 @@ mock_tls_certificate_accept (TpSvcAuthenticationTLSCertificate *base,
 
 static void
 mock_tls_certificate_reject (TpSvcAuthenticationTLSCertificate *base,
-        const GPtrArray *in_Rejections, DBusGMethodInvocation *context)
+        const GPtrArray *in_Rejections,
+        DBusGMethodInvocation *context)
 {
   MockTLSCertificate *self = MOCK_TLS_CERTIFICATE (base);
   self->state = TP_TLS_CERTIFICATE_STATE_REJECTED;
@@ -187,7 +190,8 @@ mock_tls_certificate_reject (TpSvcAuthenticationTLSCertificate *base,
 }
 
 static void
-mock_tls_certificate_iface_init (gpointer g_iface, gpointer iface_data)
+mock_tls_certificate_iface_init (gpointer g_iface,
+        gpointer iface_data)
 {
   TpSvcAuthenticationTLSCertificateClass *klass =
     (TpSvcAuthenticationTLSCertificateClass*)g_iface;
@@ -233,7 +237,9 @@ mock_tls_certificate_assert_rejected (MockTLSCertificate *self,
 #endif
 
 static MockTLSCertificate*
-mock_tls_certificate_new_and_register (TpDBusDaemon *dbus, const gchar *path, ...)
+mock_tls_certificate_new_and_register (TpDBusDaemon *dbus,
+        const gchar *path,
+        ...)
 {
   MockTLSCertificate *cert;
   GError *error = NULL;
@@ -322,7 +328,8 @@ teardown (Test *test, gconstpointer data)
 }
 
 static void
-add_pkcs11_module_for_testing (Test *test, const gchar *filename,
+add_pkcs11_module_for_testing (Test *test,
+        const gchar *filename,
         const gchar *subdir)
 {
   GError *error = NULL;
@@ -361,7 +368,9 @@ add_pkcs11_module_for_testing (Test *test, const gchar *filename,
 }
 
 static void
-fetch_callback_result (GObject *object, GAsyncResult *res, gpointer user_data)
+fetch_callback_result (GObject *object,
+        GAsyncResult *res,
+        gpointer user_data)
 {
   Test *test = user_data;
   g_assert (!test->result);
@@ -393,7 +402,8 @@ ensure_certificate_proxy (Test *test)
 
 /* A simple test to make sure the test infrastructure is working */
 static void
-test_certificate_mock_basics (Test *test, gconstpointer data G_GNUC_UNUSED)
+test_certificate_mock_basics (Test *test,
+        gconstpointer data G_GNUC_UNUSED)
 {
   GError *error = NULL;
 
@@ -482,7 +492,8 @@ test_certificate_verify_success_with_full_chain (Test *test,
 }
 
 static void
-test_certificate_verify_root_not_found (Test *test, gconstpointer data G_GNUC_UNUSED)
+test_certificate_verify_root_not_found (Test *test,
+        gconstpointer data G_GNUC_UNUSED)
 {
   EmpTLSCertificateRejectReason reason = 0;
   GError *error = NULL;
@@ -511,7 +522,8 @@ test_certificate_verify_root_not_found (Test *test, gconstpointer data G_GNUC_UN
 }
 
 static void
-test_certificate_verify_root_not_anchored (Test *test, gconstpointer data G_GNUC_UNUSED)
+test_certificate_verify_root_not_anchored (Test *test,
+        gconstpointer data G_GNUC_UNUSED)
 {
   EmpTLSCertificateRejectReason reason = 0;
   GError *error = NULL;
@@ -540,7 +552,8 @@ test_certificate_verify_root_not_anchored (Test *test, gconstpointer data G_GNUC
 }
 
 static void
-test_certificate_verify_hostname_invalid (Test *test, gconstpointer data G_GNUC_UNUSED)
+test_certificate_verify_hostname_invalid (Test *test,
+        gconstpointer data G_GNUC_UNUSED)
 {
   EmpTLSCertificateRejectReason reason = 0;
   GError *error = NULL;



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