diff -r 57078c8dab3a -r c842a56b9967 libpurple/protocols/jabber/tests/test_jabber_caps.c --- a/libpurple/protocols/jabber/tests/test_jabber_caps.c Wed Sep 28 15:45:37 2016 -0500 +++ b/libpurple/protocols/jabber/tests/test_jabber_caps.c Thu Sep 29 20:09:55 2016 -0500 @@ -1,7 +1,6 @@ #include #include "xmlnode.h" -#include "ciphers/sha1hash.h" #include "protocols/jabber/caps.h" static void @@ -24,13 +23,12 @@ } static void -_test_jabber_caps_match(PurpleHash *hash, const gchar *in, const gchar *expected) { +_test_jabber_caps_match(GChecksumType hash_type, const gchar *in, const gchar *expected) { PurpleXmlNode *query = purple_xmlnode_from_str(in, -1); JabberCapsClientInfo *info = jabber_caps_parse_client_info(query); gchar *got = NULL; - got = jabber_caps_calculate_hash(info, hash); - g_object_unref(G_OBJECT(hash)); + got = jabber_caps_calculate_hash(info, hash_type); g_assert_cmpstr(expected, ==, got); g_free(got); @@ -39,7 +37,7 @@ static void test_jabber_caps_calculate_from_xmlnode(void) { _test_jabber_caps_match( - purple_sha1_hash_new(), + G_CHECKSUM_SHA1, "urn:xmpp:dataforms:softwareinfoTkabber ( 8.5.5 )ATmega640-16AU", "GNjxthSckUNvAIoCCJFttjl6VL8=" );