summaryrefslogtreecommitdiff
path: root/tests/twisted
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-11-20 17:10:40 -0500
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-29 19:28:33 +0000
commitc0b9663101092257873410d92e2c02219d109353 (patch)
tree7cf39705996a5380c96fe90a97ce69a56df7c679 /tests/twisted
parent097db6919cc185342e6b3fed347ba15dae9d004d (diff)
Be consistent in the constness of arguments in storage virtual methods
We usually don't pass const objects Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
Diffstat (limited to 'tests/twisted')
-rw-r--r--tests/twisted/dbus-account-plugin.c22
-rw-r--r--tests/twisted/mcp-account-diversion.c16
2 files changed, 19 insertions, 19 deletions
diff --git a/tests/twisted/dbus-account-plugin.c b/tests/twisted/dbus-account-plugin.c
index 2e66179e..446a2ad7 100644
--- a/tests/twisted/dbus-account-plugin.c
+++ b/tests/twisted/dbus-account-plugin.c
@@ -748,8 +748,8 @@ parameters_changed_cb (GDBusConnection *bus,
}
static GList *
-test_dbus_account_plugin_list (const McpAccountStorage *storage,
- const McpAccountManager *am)
+test_dbus_account_plugin_list (McpAccountStorage *storage,
+ McpAccountManager *am)
{
TestDBusAccountPlugin *self = TEST_DBUS_ACCOUNT_PLUGIN (storage);
GError *error = NULL;
@@ -858,8 +858,8 @@ test_dbus_account_plugin_list (const McpAccountStorage *storage,
}
static void
-test_dbus_account_plugin_ready (const McpAccountStorage *storage,
- const McpAccountManager *am)
+test_dbus_account_plugin_ready (McpAccountStorage *storage,
+ McpAccountManager *am)
{
TestDBusAccountPlugin *self = TEST_DBUS_ACCOUNT_PLUGIN (storage);
@@ -873,8 +873,8 @@ test_dbus_account_plugin_ready (const McpAccountStorage *storage,
}
static gchar *
-test_dbus_account_plugin_create (const McpAccountStorage *storage,
- const McpAccountManager *am,
+test_dbus_account_plugin_create (McpAccountStorage *storage,
+ McpAccountManager *am,
const gchar *manager,
const gchar *protocol,
const gchar *identifier,
@@ -1286,8 +1286,8 @@ update_parameters_cb (GObject *source_object,
}
static gboolean
-test_dbus_account_plugin_commit (const McpAccountStorage *storage,
- const McpAccountManager *am,
+test_dbus_account_plugin_commit (McpAccountStorage *storage,
+ McpAccountManager *am,
const gchar *account_name)
{
TestDBusAccountPlugin *self = TEST_DBUS_ACCOUNT_PLUGIN (storage);
@@ -1436,7 +1436,7 @@ test_dbus_account_plugin_commit (const McpAccountStorage *storage,
}
static void
-test_dbus_account_plugin_get_identifier (const McpAccountStorage *storage,
+test_dbus_account_plugin_get_identifier (McpAccountStorage *storage,
const gchar *account_name,
GValue *identifier)
{
@@ -1455,7 +1455,7 @@ test_dbus_account_plugin_get_identifier (const McpAccountStorage *storage,
}
static GHashTable *
-test_dbus_account_plugin_get_additional_info (const McpAccountStorage *storage,
+test_dbus_account_plugin_get_additional_info (McpAccountStorage *storage,
const gchar *account_name)
{
TestDBusAccountPlugin *self = TEST_DBUS_ACCOUNT_PLUGIN (storage);
@@ -1476,7 +1476,7 @@ test_dbus_account_plugin_get_additional_info (const McpAccountStorage *storage,
}
static guint
-test_dbus_account_plugin_get_restrictions (const McpAccountStorage *storage,
+test_dbus_account_plugin_get_restrictions (McpAccountStorage *storage,
const gchar *account_name)
{
TestDBusAccountPlugin *self = TEST_DBUS_ACCOUNT_PLUGIN (storage);
diff --git a/tests/twisted/mcp-account-diversion.c b/tests/twisted/mcp-account-diversion.c
index 02775b4c..466d3ee3 100644
--- a/tests/twisted/mcp-account-diversion.c
+++ b/tests/twisted/mcp-account-diversion.c
@@ -250,8 +250,8 @@ _get_parameter (McpAccountStorage *self,
return ret;
}
-static gboolean _commit (const McpAccountStorage *self,
- const McpAccountManager *am,
+static gboolean _commit (McpAccountStorage *self,
+ McpAccountManager *am,
const gchar *account_name);
static void
@@ -292,8 +292,8 @@ delete_finish (McpAccountStorage *storage,
}
static gboolean
-_commit (const McpAccountStorage *self,
- const McpAccountManager *am,
+_commit (McpAccountStorage *self,
+ McpAccountManager *am,
const gchar *account_name G_GNUC_UNUSED)
{
gsize n;
@@ -321,8 +321,8 @@ _commit (const McpAccountStorage *self,
}
static GList *
-_list (const McpAccountStorage *self,
- const McpAccountManager *am)
+_list (McpAccountStorage *self,
+ McpAccountManager *am)
{
gsize i;
gsize n;
@@ -348,8 +348,8 @@ _list (const McpAccountStorage *self,
}
static gchar *
-create (const McpAccountStorage *self,
- const McpAccountManager *am,
+create (McpAccountStorage *self,
+ McpAccountManager *am,
const gchar *manager,
const gchar *protocol,
const gchar *identification,