[network-manager-applet] test: implement fake_keyring_clear()
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] test: implement fake_keyring_clear()
- Date: Mon, 4 Apr 2011 21:53:31 +0000 (UTC)
commit fd9e20597fe10760bbac93f4c82ad032c06079d9
Author: Dan Williams <dcbw redhat com>
Date: Mon Apr 4 15:58:11 2011 -0500
test: implement fake_keyring_clear()
src/gconf-helpers/tests/fake-keyring.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gconf-helpers/tests/fake-keyring.c b/src/gconf-helpers/tests/fake-keyring.c
index 57fd43a..944d58c 100644
--- a/src/gconf-helpers/tests/fake-keyring.c
+++ b/src/gconf-helpers/tests/fake-keyring.c
@@ -26,6 +26,7 @@
#include <glib.h>
#include <gnome-keyring.h>
+#include "fake-keyring.h"
static GSList *secrets = NULL;
@@ -194,6 +195,14 @@ gnome_keyring_item_delete_sync (const char *keyring, guint32 id)
return GNOME_KEYRING_RESULT_OK;
}
+void
+fake_keyring_clear (void)
+{
+ g_slist_foreach (secrets, (GFunc) secret_free, NULL);
+ g_slist_free (secrets);
+ secrets = NULL;
+}
+
/* Copied from gnome-keyring */
static GnomeKeyringAttributeList *
make_attribute_list_va (va_list args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]