summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-05-20 15:11:55 +0100
committerRoss Burton <ross@linux.intel.com>2009-05-20 15:11:55 +0100
commitedd9cdbe70f04d88f4483a9a7d9e94a42258557c (patch)
treeecb040105342721b476132d727d066a9a315da73
parentfa34345d113f47d7d54b1fe38c2c13cade05b88c (diff)
Test the new accessors
-rw-r--r--tests/flickr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/flickr.c b/tests/flickr.c
index 56e9c86..1c794df 100644
--- a/tests/flickr.c
+++ b/tests/flickr.c
@@ -24,6 +24,8 @@
#include <rest/rest-xml-parser.h>
#include <stdio.h>
+#define API_KEY "cf4e02fc57240a9b07346ad26e291080"
+#define SHARED_SECRET "cdfa2329cb206e50"
#define ROSS_ID "35468147630@N01"
int
main (int argc, char **argv)
@@ -38,7 +40,12 @@ main (int argc, char **argv)
g_type_init ();
/* Create the proxy */
- proxy = flickr_proxy_new ("cf4e02fc57240a9b07346ad26e291080", "cdfa2329cb206e50");
+ proxy = flickr_proxy_new (API_KEY, SHARED_SECRET);
+
+ g_assert_cmpstr (flickr_proxy_get_api_key (FLICKR_PROXY (proxy)),
+ ==, API_KEY);
+ g_assert_cmpstr (flickr_proxy_get_shared_secret (FLICKR_PROXY (proxy)),
+ ==, SHARED_SECRET);
/*
* Sadly can't unit test authentication.