diff options
author | Ross Burton <ross@linux.intel.com> | 2009-08-03 17:00:11 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2009-08-03 17:00:11 +0100 |
commit | 503af51871ef9f4dd23cf7634b5f82c01031d3f2 (patch) | |
tree | 72ad3351610ff98dea4e6b5ef2aab8da75c59adf /tests | |
parent | 3baab1d497b5b587cfc6117f09dc94486074ea26 (diff) |
Port the oauth test to the new API
Diffstat (limited to 'tests')
-rw-r--r-- | tests/oauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/oauth.c b/tests/oauth.c index 6ce1219..02be3f2 100644 --- a/tests/oauth.c +++ b/tests/oauth.c @@ -45,13 +45,13 @@ main (int argc, char **argv) priv = PROXY_GET_PRIVATE (oproxy); /* First stage authentication, this gets a request token */ - oauth_proxy_auth_step (oproxy, "request_token.php", &error); + oauth_proxy_request_token (oproxy, "request_token.php", NULL, &error); g_assert_no_error (error); g_assert_cmpstr (priv->token, ==, "requestkey"); g_assert_cmpstr (priv->token_secret, ==, "requestsecret"); /* Second stage authentication, this gets an access token */ - oauth_proxy_auth_step (OAUTH_PROXY (proxy), "access_token", &error); + oauth_proxy_access_token (OAUTH_PROXY (proxy), "access_token", NULL, &error); g_assert_no_error (error); g_assert_cmpstr (priv->token, ==, "accesskey"); |