diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-09-28 15:34:18 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-09-29 10:18:33 -0300 |
commit | fa0f3beb4f63b99c07a3dd1fcd7a0a2c98d3faa5 (patch) | |
tree | e9d9d7ecfcd542e73ddcec84c1f0679d39b243d4 | |
parent | e12788f88ed6b01601510802136a784fb27f603d (diff) |
contacts-conn example cm: Add a backdoor to check how many times RefreshContactInfo is called.
-rw-r--r-- | tests/lib/glib/contacts-conn.c | 2 | ||||
-rw-r--r-- | tests/lib/glib/contacts-conn.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/glib/contacts-conn.c b/tests/lib/glib/contacts-conn.c index c49d268a..3491c1fa 100644 --- a/tests/lib/glib/contacts-conn.c +++ b/tests/lib/glib/contacts-conn.c @@ -1154,6 +1154,8 @@ my_refresh_contact_info (TpSvcConnectionInterfaceContactInfo *obj, return; } + self->refresh_contact_info_called++; + for (i = 0; i < contacts->len; i++) { TpHandle handle = g_array_index (contacts, guint, i); diff --git a/tests/lib/glib/contacts-conn.h b/tests/lib/glib/contacts-conn.h index 832c2ba3..e848b4f6 100644 --- a/tests/lib/glib/contacts-conn.h +++ b/tests/lib/glib/contacts-conn.h @@ -40,6 +40,8 @@ struct _TpTestsContactsConnection { TpPresenceMixin presence_mixin; TpContactsMixin contacts_mixin; + guint refresh_contact_info_called; + TpTestsContactsConnectionPrivate *priv; }; |