[tracker/tracker-0.8] libtracker-common tests: proper file indentation
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] libtracker-common tests: proper file indentation
- Date: Fri, 16 Jul 2010 10:13:32 +0000 (UTC)
commit 3044a0d5fad2329653f1ba0bd4d98c4d3b2ff7e4
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Jul 8 09:15:03 2010 +0200
libtracker-common tests: proper file indentation
tests/libtracker-common/mock-dbus.c | 82 +++++++++++++++++-----------------
1 files changed, 41 insertions(+), 41 deletions(-)
---
diff --git a/tests/libtracker-common/mock-dbus.c b/tests/libtracker-common/mock-dbus.c
index 0a6b986..95fc5fc 100644
--- a/tests/libtracker-common/mock-dbus.c
+++ b/tests/libtracker-common/mock-dbus.c
@@ -29,11 +29,11 @@
static gint connection_counter = 0;
-DBusGConnection *
+DBusGConnection *
dbus_g_bus_get (DBusBusType type, GError **error)
{
- connection_counter += 1;
- return (DBusGConnection *)g_strdup ("hi");
+ connection_counter += 1;
+ return (DBusGConnection *)g_strdup ("hi");
}
DBusGProxy *
@@ -42,26 +42,26 @@ dbus_g_proxy_new_for_name (DBusGConnection *conn,
const gchar *path,
const gchar *interface)
{
- return (DBusGProxy *)mock_dbus_gproxy_new ();
+ return (DBusGProxy *)mock_dbus_gproxy_new ();
}
DBusGConnection *
dbus_g_connection_ref (DBusGConnection *conn)
{
- connection_counter += 1;
- return conn;
+ connection_counter += 1;
+ return conn;
}
void
dbus_g_connection_unref (DBusGConnection *connection)
{
- connection_counter -= 1;
+ connection_counter -= 1;
}
gchar *
dbus_g_method_get_sender (DBusGMethodInvocation *context)
{
- return g_strdup ("hardcoded sender");
+ return g_strdup ("hardcoded sender");
}
gboolean
@@ -70,42 +70,42 @@ dbus_g_proxy_call (DBusGProxy *proxy,
GError **error,
GType first_arg_type, ...)
{
- va_list args;
- GType arg_type;
- gchar *local_error = NULL;
+ va_list args;
+ GType arg_type;
+ gchar *local_error = NULL;
+
+ va_start (args, first_arg_type);
+ if (g_strcmp0 (function_name, "GetConnectionUnixProcessID") == 0) {
+ /*
+ * G_TYPE_STRING, sender
+ * G_TYPE_INVALID,
+ * G_TYPE_UINT, pid
+ * G_TYPE_INVALID,
+ */
+ GValue value = { 0, };
+
+ /* Input string (ignore) */
+ g_value_init (&value, G_TYPE_STRING);
+ G_VALUE_COLLECT (&value, args, 0, &local_error);
+ g_value_unset (&value);
- va_start (args, first_arg_type);
- if (g_strcmp0 (function_name, "GetConnectionUnixProcessID") == 0) {
- /*
- * G_TYPE_STRING, sender
- * G_TYPE_INVALID,
- * G_TYPE_UINT, pid
- * G_TYPE_INVALID,
- */
- GValue value = { 0, };
+ arg_type = va_arg (args, GType);
+ g_assert (arg_type == G_TYPE_INVALID);
- /* Input string (ignore) */
- g_value_init (&value, G_TYPE_STRING);
- G_VALUE_COLLECT (&value, args, 0, &local_error);
- g_value_unset (&value);
+ arg_type = va_arg (args, GType);
+ g_assert (arg_type == G_TYPE_UINT);
- arg_type = va_arg (args, GType);
- g_assert (arg_type == G_TYPE_INVALID);
+ g_value_init (&value, arg_type);
+ g_value_set_uint (&value, (guint)getpid ());
+ G_VALUE_LCOPY (&value,
+ args, 0,
+ &local_error);
+ g_value_unset (&value);
- arg_type = va_arg (args, GType);
- g_assert (arg_type == G_TYPE_UINT);
- g_value_init (&value, arg_type);
- g_value_set_uint (&value, (guint)getpid ());
- G_VALUE_LCOPY (&value,
- args, 0,
- &local_error);
- g_value_unset (&value);
-
-
- } else {
- g_critical ("dbus_g_proxy_call '%s' unsupported", function_name);
- }
- va_end (args);
- return TRUE;
+ } else {
+ g_critical ("dbus_g_proxy_call '%s' unsupported", function_name);
+ }
+ va_end (args);
+ return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]