From 42d19a8cf47dd228f6ce9566fd67fbe880c96cf5 Mon Sep 17 00:00:00 2001 From: nowrep Date: Fri, 24 May 2013 19:10:35 +0200 Subject: [PATCH] [GnomeKeyring] Removed test.cpp file --- src/plugins/GnomeKeyringPasswords/test.cpp | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/plugins/GnomeKeyringPasswords/test.cpp diff --git a/src/plugins/GnomeKeyringPasswords/test.cpp b/src/plugins/GnomeKeyringPasswords/test.cpp deleted file mode 100644 index 29e67081f..000000000 --- a/src/plugins/GnomeKeyringPasswords/test.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include - -extern "C" { -#include "gnome-keyring.h" -} - -int main() -{ - guint32 itemId; - GnomeKeyringAttributeList* attributes = gnome_keyring_attribute_list_new(); - - gnome_keyring_attribute_list_append_string(attributes, "key", "value"); - - GnomeKeyringResult result = gnome_keyring_item_create_sync(GNOME_KEYRING_DEFAULT, - GNOME_KEYRING_ITEM_GENERIC_SECRET, - "display-name", - attributes, - "passwrd-123", - TRUE, // Update if exists - &itemId); - - if (result == GNOME_KEYRING_RESULT_OK) { - printf("OK, id=%d\n", itemId); - } - - return 0; -}